%define __strip %{_mingw32_strip} %define __objdump %{_mingw32_objdump} %define _use_internal_dependency_generator 0 %define __find_requires %{_mingw32_findrequires} %define __find_provides %{_mingw32_findprovides} Name: faac Version: 1.28 Release: 1%{?dist} Summary: Encoder and encoding library for MPEG2/4 AAC Group: Applications/Multimedia License: LGPLv2+ URL: http://www.audiocoding.com/ Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2 Patch0: %{name}-libmp4v2.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: mingw32-filesystem >= 23 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils BuildRequires: mingw32-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} #%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 -p1 -b .mp4v2 touch -r configure.in.mp4v2 configure.in #fix permissions find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \; chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/* #fix encoding /usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && touch -r AUTHORS AUTHORS.conv && /bin/mv -f AUTHORS.conv AUTHORS %build %{_mingw32_configure} --disable-static # remove rpath from libtool sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT #%post -p /sbin/ldconfig #%postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/* %{_bindir}/* %{_libdir}/*.so.* %{_mandir}/man1/%{name}* #%files devel #%defattr(-,root,root,-) %exclude %{_libdir}/*.la %{_libdir}/*.so %{_includedir}/*.h %changelog * Wed May 28 2009 Zoltan Seress - 1.28-1 - Build for Windows * Thu Mar 12 2009 Dominik Mierzejewski - 1.28-1 - update to 1.28 - drop redundant BRs - fix Source URL and use bz2 tarball - fix rpath - include manpage - ship AUTHORS NEWS docs/* - integrated changes from Julian Sikorski -- Dropped dos2unix BR, not needed anymore -- Made Source0 use macros -- Fixed License tag -- Fixed file permissions -- Converted ChangeLog to utf-8 * Tue Nov 04 2008 Thorsten Leemhuis - 1.25-4 - update license tag * Sat Sep 17 2007 Thorsten Leemhuis - 1.25-3 - incorporate some minor adjustments from the freshrpms pacakge * Sun Dec 17 2006 Thorsten Leemhuis 1.25-2 - BR dos2unix * Sun Dec 17 2006 Thorsten Leemhuis 1.25-1 - Update to 1.25 - appy patch from to enable build against libmp4v2 from #1317 (thx to noa) * Sat Sep 30 2006 Thorsten Leemhuis 1.24-6 - rebuild for new libmp4v2-devel * Sun May 28 2006 Noa Resare 1.24-5 - libmp4v2 is now a separate package, updated BR - shortened summary string * Mon Mar 13 2006 Thorsten Leemhuis 1.24-4 - Drop Epoch completely * Thu Mar 09 2006 Andreas Bierfert - switch to new release field * Tue Feb 28 2006 Andreas Bierfert - add dist * Mon Oct 25 2004 Thorsten Leemhuis - 0:1.24-0.lvn.3 - BR automake autoconf (how could I have been that stupid and missed those? don't answer please) * Mon Oct 25 2004 Thorsten Leemhuis - 0:1.24-0.lvn.2 - BR libtool * Fri Oct 22 2004 Thorsten Leemhuis - 0:1.24-0.lvn.1 - Initial RPM release.