Projects
Essentials
faad2
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 14
View file
faad2.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 8 23:58:28 UTC 2014 - crrodriguez@opensuse.org + +- faad2-visibility.patch Only public symbols should be + exported + fix broken C99 test + +------------------------------------------------------------------- Tue Apr 3 13:15:27 UTC 2012 - reddwarf@opensuse.org - Revert previous commit. It just broke something that worked.
View file
faad2.spec
Changed
@@ -38,9 +38,10 @@ %endif BuildRequires: id3lib-devel %endif -BuildRequires: glibc-devel +BuildRequires: libtool #Obsoletes: faad2-drm #Provides: faad2-drm +Patch0: faad2-visibility.patch %description FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely @@ -113,8 +114,9 @@ %setup -qn faad2-%{version} FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" frontend/main.c - +%patch0 -p1 %build +autoreconf -ifv export CFLAGS="%{optflags} -fPIC -fno-strict-aliasing" %configure \ %if %{with xmms}
View file
faad2-visibility.patch
Added
@@ -0,0 +1,91 @@ +--- faad2-2.7.orig/include/neaacdec.h ++++ faad2-2.7/include/neaacdec.h +@@ -31,6 +31,8 @@ + #ifndef __NEAACDEC_H__ + #define __NEAACDEC_H__ + ++#pragma GCC visibility push(default) ++ + #ifdef __cplusplus + extern "C" { + #endif /* __cplusplus */ +@@ -254,5 +256,5 @@ char NEAACDECAPI NeAACDecAudioSpecificCo + #ifdef __cplusplus + } + #endif /* __cplusplus */ +- ++#pragma GCC visibility pop + #endif +--- faad2-2.7.orig/libfaad/Makefile.am ++++ faad2-2.7/libfaad/Makefile.am +@@ -1,10 +1,10 @@ + lib_LTLIBRARIES = libfaad.la + +-AM_CFLAGS = -iquote $(top_srcdir)/include ++AM_CFLAGS = -fvisibility=hidden -iquote $(top_srcdir)/include + include_HEADERS = $(top_srcdir)/include/faad.h \ + $(top_srcdir)/include/neaacdec.h + +-libfaad_la_LDFLAGS = -version-info 2:0:0 ++libfaad_la_LDFLAGS = -no-undefined -version-info 2:0:0 + libfaad_la_LIBADD = -lm + + libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \ +--- faad2-2.7.orig/configure.in ++++ faad2-2.7/configure.in +@@ -15,7 +15,9 @@ AC_PROG_LIBTOOL + AC_SUBST(LIBTOOL_DEPS) + + dnl Checks for programs. +-AC_PROG_CC ++AC_PROG_CC_STDC ++AC_USE_SYSTEM_EXTENSIONS ++AC_SYS_LARGEFILE + AM_PROG_CC_C_O + AC_PROG_CPP + dnl disable for mpeg4ip plugin +@@ -74,43 +76,7 @@ AC_DEFUN([MY_CHECK_TYPEDEF_FROM_INCLUDE] + fi + ]) + +-dnl @synopsis AC_C99_FUNC_LRINTF +-dnl +-dnl Check whether C99's lrintf function is available. +-dnl @version 1.3 Feb 12 2002 +-dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com> +-dnl +-dnl Permission to use, copy, modify, distribute, and sell this file for any +-dnl purpose is hereby granted without fee, provided that the above copyright +-dnl and this permission notice appear in all copies. No representations are +-dnl made about the suitability of this software for any purpose. It is +-dnl provided "as is" without express or implied warranty. +-dnl +-AC_DEFUN([AC_C99_FUNC_LRINTF], +-[AC_CACHE_CHECK(for lrintf, +- ac_cv_c99_lrintf, +-[ +-lrintf_save_CFLAGS=$CFLAGS +-CFLAGS="-O -lm" +-AC_TRY_LINK([ +-#define _ISOC9X_SOURCE 1 +-#define _ISOC99_SOURCE 1 +-#define __USE_ISOC99 1 +-#define __USE_ISOC9X 1 +- +-#include <math.h> +-], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no) +- +-CFLAGS=$lrintf_save_CFLAGS +- +-]) +- +-if test "$ac_cv_c99_lrintf" = yes; then +- AC_DEFINE(HAVE_LRINTF, 1, +- [Define if you have C99's lrintf function.]) +-fi +-])# AC_C99_FUNC_LRINTF +-AC_C99_FUNC_LRINTF ++AC_SEARCH_LIBS([lrintf], [m], [AC_DEFINE([HAVE_LRINTF], [1], [Define if you have C99 lrintf function])]) + + MY_CHECK_TYPEDEF_FROM_INCLUDE([float32_t temp], + [#include <sys/types.h>,
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.