Summary: Reference encoder and encoding library for MPEG2/4 AAC Name: faac Version: 1.28 Release: 1 License: LGPL Group: Applications/Multimedia URL: http://www.audiocoding.com/ Source: http://dl.sf.net/faac/faac-%{version}.tar.bz2 Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libmp4v2-devel BuildRequires: autoconf >= 2.50, automake, libtool, tofrodos Requires: libmp4v2 %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 devel Summary: Development libraries of the FAAC AAC encoder Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libmp4v2-devel %description 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 development files and documentation for libfaac. %prep %setup -q %patch0 # Don't ask... find . -type f -exec fromdos {} \; find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; chmod 0755 configure install-sh %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-shared --disable-static \ --with-mp4v2 make %{?_smp_mflags} cp ./libfaac/.libs/libfaac.so.0 . cp frontend/.libs/faac faac64 make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-shared --disable-static \ --with-mp4v2 make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q ./libfaac/.libs/libfaac.a ./libfaac.so.0 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install cp faac64 ${RPM_BUILD_ROOT}%{_bindir}/ chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : ( cd ${RPM_BUILD_ROOT} for dir in bin include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc ChangeLog COPYING README TODO %{_bindir}/* %{_libdir}/*.a %{_mandir}/man?/* /usr/bin/* /usr/lib/*.a %files devel %defattr(-,root,system,0755) %{_includedir}/*.h %{_libdir}/*.la /usr/include/* /usr/lib/*.la %changelog * Tue Jul 14 2009 Michael Perzl - 1.28-1 - updated to version 1.28 and added 64-bit version * Wed Jan 30 2008 Michael Perzl - 1.26-1 - first version for AIX V5.1 and higher