Summary: Library and frontend for decoding MPEG2/4 AAC Name: faad2 Version: 2.7 Release: 1 License: GPL Group: Applications/Multimedia URL: http://www.audiocoding.com/ Source0: http://dl.sf.net/faac/%{name}-%{version}.tar.bz2 Source1: libfaad.so.0-aix32 Source2: libfaad.so.0-aix64 Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: autoconf, automake, libtool BuildRequires: zlib-devel %description FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely written from scratch. Includes libmp4ff, a Quicktime library for UNIX in a freely redistributable, statically linkable library. %package devel Summary: Development libraries of the FAAD 2 AAC decoder Group: Development/Libraries Requires: %{name} = %{version} %description devel FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely written from scratch. This package contains development files and documentation for libfaad. %prep %setup -q %patch0 %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 --enable-static \ --with-drm \ --with-with-mpeg4ip make %{?_smp_mflags} cp libfaad/.libs/libfaad.so.2 . make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-shared --enable-static \ --with-drm \ --with-with-mpeg4ip make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q libfaad/.libs/libfaad.a ./libfaad.so.2 # Add the older 2.6.1 shared members for compatibility with older apps # (make sure they're set for LOADONLY with 'strip -e') /usr/bin/strip -X32 -e %{SOURCE1} /usr/bin/strip -X64 -e %{SOURCE2} cp %{SOURCE1} libfaad.so.0 ${AR} -q libfaad/.libs/libfaad.a libfaad.so.0 cp %{SOURCE2} libfaad.so.0 ${AR} -q libfaad/.libs/libfaad.a libfaad.so.0 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : %{__rm} ${RPM_BUILD_ROOT}%{_includedir}/mp4ff*.h %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libmp4ff.a %{__mv} ${RPM_BUILD_ROOT}%{_mandir}/manm ${RPM_BUILD_ROOT}%{_mandir}/man1 %{__mv} ${RPM_BUILD_ROOT}%{_mandir}/man1/faad.man ${RPM_BUILD_ROOT}%{_mandir}/man1/faad.1 ( 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 AUTHORS COPYING ChangeLog NEWS README* TODO %{_bindir}/* %{_libdir}/*.a %{_mandir}/man?/* /usr/bin/* /usr/lib/*.a %files devel %defattr(-,root,system,0755) %doc docs/* %{_includedir}/* %{_libdir}/*.la /usr/include/* /usr/lib/*.la %changelog * Tue Jul 14 2009 Michael Perzl - 2.7-1 - updated to version 2.7 * Wed Jan 23 2008 Michael Perzl - 2.6.1-1 - first version for AIX V5.1 and higher