diff --git a/README.md b/README.md index df1f158..b044b8c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # faac +FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW MPEG-2 object types. +It also supports multichannel and gapless encoding. + diff --git a/faac-1.28-internal-mpeg4ip-gcc.patch b/faac-1.28-internal-mpeg4ip-gcc.patch new file mode 100644 index 0000000..ffe049b --- /dev/null +++ b/faac-1.28-internal-mpeg4ip-gcc.patch @@ -0,0 +1,17 @@ +--- faac-1.28.orig/common/mp4v2/mpeg4ip.h 2009-01-26 22:42:35.000000000 +0000 ++++ faac-1.28/common/mp4v2/mpeg4ip.h 2012-09-02 23:31:29.968723268 +0000 +@@ -120,14 +120,6 @@ + #endif + #include + +-#ifdef __cplusplus +-extern "C" { +-#endif +-char *strcasestr(const char *haystack, const char *needle); +-#ifdef __cplusplus +-} +-#endif +- + #define OPEN_RDWR O_RDWR + #define OPEN_CREAT O_CREAT + #define OPEN_RDONLY O_RDONLY diff --git a/faac.spec b/faac.spec new file mode 100644 index 0000000..cc0ca2e --- /dev/null +++ b/faac.spec @@ -0,0 +1,112 @@ +%define libname lib%{name} + +Name: faac +Version: 1.28 +Release: 1mamba +Summary: Freeware Advanced Audio Coder +Group: Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.audiocoding.com/ +Source: http://downloads.sourceforge.net/faac/faac-%{version}.tar.gz +Patch0: faac-1.28-internal-mpeg4ip-gcc.patch +License: GPL +Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: hd2u +BuildRequires: autoconf +BuildRequires: libfaad2-devel >= 2.0 +%if "%{stage1}" != "1" +BuildRequires: libmp4v2-devel +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW MPEG-2 object types. +It also supports multichannel and gapless encoding. + +%package -n %{libname} +Summary: Reference encoder and encoding library for MPEG2/4 AAC +Group: System/Libraries + +%description -n %{libname} +FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW MPEG-2 object types. +It also supports multichannel and gapless encoding. + +%package -n %{libname}-devel +Summary: Static libraries and headers for %{libname} +Group: Development/Libraries +Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: %{name}-devel + +%description -n %{libname}-devel +FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW MPEG-2 object types. +It also supports multichannel and gapless encoding. + +This package contains static libraries and header files need for development. + +%prep +%setup -q +%if "%{stage1}" == "1" +%patch0 -p1 +%endif + +%build +#dos2unix configure.in +#autoreconf -vif +%configure \ +%if "%{stage1}" != "1" + --with-mp4v2 +%endif + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%{_bindir}/* +%doc AUTHORS ChangeLog COPYING NEWS README TODO + +%files -n %{libname} +%defattr(-, root, root) +%{_libdir}/*.so.* +%{_mandir}/man1/faac.1* + +%files -n %{libname}-devel +%defattr(-, root, root) +%{_includedir}/*.h +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so + +%changelog +* Thu Jul 09 2009 Automatic Build System 1.28-1mamba +- automatic update by autodist + +* Mon May 21 2007 Silvan Calarco 1.25-2mamba +- group entry fixed + +* Sun May 13 2007 Stefano Cotta Ramusino 1.25-1mamba +- update to 1.25 +- added faac package +- added missing build requirements + +* Sat Oct 02 2004 Davide Madrisan 1.24-2qilnx +- specfile fixed and modified to match QiLinux standards +- library name modified (was faac) +- added missing BuildRequires (libfaad2-devel) + +* Mon Sep 13 2004 Matteo Bernasconi 1.24-1qilnx +- first build