michael@0: Name: faac michael@0: Version: 1.28 michael@0: Release: 1%{?dist} michael@0: Summary: Encoder and encoding library for MPEG2/4 AAC michael@0: michael@0: Group: Applications/Multimedia michael@0: License: LGPLv2+ michael@0: URL: http://www.audiocoding.com/ michael@0: Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2 michael@0: Patch0: %{name}-libmp4v2.patch michael@0: michael@0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) michael@0: michael@0: BuildRequires: libmp4v2-devel michael@0: michael@0: michael@0: %description michael@0: FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW michael@0: COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports michael@0: multichannel and gapless encoding. michael@0: michael@0: %package devel michael@0: Summary: Development libraries of the FAAC AAC encoder michael@0: Group: Development/Libraries michael@0: Requires: %{name} = %{version}-%{release} michael@0: michael@0: %description devel michael@0: FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW michael@0: COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports michael@0: multichannel and gapless encoding. michael@0: michael@0: This package contains development files and documentation for libfaac. michael@0: michael@0: %prep michael@0: %setup -q michael@0: %patch0 -p1 -b .mp4v2 michael@0: touch -r configure.in.mp4v2 configure.in michael@0: #fix permissions michael@0: find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \; michael@0: chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/* michael@0: michael@0: #fix encoding michael@0: /usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && touch -r AUTHORS AUTHORS.conv && /bin/mv -f AUTHORS.conv AUTHORS michael@0: michael@0: %build michael@0: %configure --disable-static michael@0: # remove rpath from libtool michael@0: sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool michael@0: sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool michael@0: make %{?_smp_mflags} michael@0: michael@0: michael@0: %install michael@0: rm -rf $RPM_BUILD_ROOT michael@0: make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" michael@0: michael@0: michael@0: %clean michael@0: rm -rf $RPM_BUILD_ROOT michael@0: michael@0: michael@0: %post -p /sbin/ldconfig michael@0: michael@0: %postun -p /sbin/ldconfig michael@0: michael@0: michael@0: %files michael@0: %defattr(-,root,root,-) michael@0: %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/* michael@0: %{_bindir}/* michael@0: %{_libdir}/*.so.* michael@0: %{_mandir}/man1/%{name}* michael@0: michael@0: %files devel michael@0: %defattr(-,root,root,-) michael@0: %exclude %{_libdir}/*.la michael@0: %{_libdir}/*.so michael@0: %{_includedir}/*.h michael@0: michael@0: %changelog michael@0: * Fri Oct 29 2010 Kozinov Ivan - 1.25-1 michael@0: - Build for 1.1