michael@0: Name: lame michael@0: Version: 3.98.4 michael@0: Release: 1.4 michael@0: Summary: Free MP3 audio compressor michael@0: michael@0: Group: Applications/Multimedia michael@0: License: GPLv2+ michael@0: URL: http://lame.sourceforge.net/ michael@0: Source0: http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz michael@0: Patch1: %{name}-noexecstack.patch michael@0: Patch2: %{name}-pmake.patch michael@0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) michael@0: michael@0: BuildRequires: ncurses-devel michael@0: BuildRequires: gtk+-devel michael@0: # pkg-config should be pulled in by gtk+-devel but is not in EL-5 michael@0: BuildRequires: pkgconfig michael@0: %ifarch %{ix86} michael@0: BuildRequires: nasm michael@0: %endif michael@0: Requires: %{name}-libs = %{version}-%{release} michael@0: michael@0: %description michael@0: LAME is an open source MP3 encoder whose quality and speed matches michael@0: commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding michael@0: with both constant and variable bitrates. michael@0: michael@0: %package libs michael@0: Summary: LAME MP3 encoding library michael@0: Group: System Environment/Libraries michael@0: michael@0: %description libs michael@0: LAME MP3 encoding library. michael@0: michael@0: %package devel michael@0: Summary: Development files for %{name} michael@0: Group: Development/Libraries michael@0: Requires: %{name}-libs = %{version}-%{release} michael@0: michael@0: %description devel michael@0: This package development files for %{name}. michael@0: michael@0: %package mp3x michael@0: Summary: MP3 frame analyzer michael@0: Group: Applications/Multimedia michael@0: Requires: %{name} = %{version}-%{release} michael@0: michael@0: %description mp3x michael@0: This package contains the mp3x frame analyzer. michael@0: michael@0: michael@0: %prep michael@0: %setup -q michael@0: %patch1 -p1 -b .noexec michael@0: %patch2 -p1 -b .pmake michael@0: iconv -f ISO-8859-1 -t UTF8 ChangeLog > ChangeLog.tmp && touch -r ChangeLog ChangeLog.tmp && mv ChangeLog.tmp ChangeLog michael@0: michael@0: michael@0: %build michael@0: #sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure michael@0: #export CFLAGS="$RPM_OPT_FLAGS -ffast-math" michael@0: unset CFLAGS michael@0: unset CXXFLAGS michael@0: unset FFLAGS michael@0: unset LD_AS_NEEDED michael@0: %configure \ michael@0: --disable-dependency-tracking \ michael@0: --disable-static \ michael@0: %ifarch %{ix86} michael@0: --enable-nasm \ michael@0: %endif michael@0: --enable-mp3x \ michael@0: --enable-mp3rtp \ michael@0: --enable-decode-layer1 michael@0: michael@0: make michael@0: echo $CFLAGS michael@0: michael@0: %install michael@0: rm -rf $RPM_BUILD_ROOT michael@0: make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT michael@0: rm -f $RPM_BUILD_ROOT%{_libdir}/*.la michael@0: # Some apps still expect to find michael@0: ln -sf lame/lame.h $RPM_BUILD_ROOT%{_includedir}/lame.h michael@0: rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} michael@0: michael@0: michael@0: %check michael@0: make test michael@0: michael@0: michael@0: %post libs -p /sbin/ldconfig michael@0: michael@0: %postun libs -p /sbin/ldconfig michael@0: michael@0: michael@0: %clean michael@0: rm -rf $RPM_BUILD_ROOT michael@0: michael@0: michael@0: %files michael@0: %defattr (-,root,root,-) michael@0: %doc README TODO USAGE doc/html/*.html doc/html/*.css michael@0: %{_bindir}/lame michael@0: %{_bindir}/mp3rtp michael@0: %{_mandir}/man1/lame.1* michael@0: michael@0: %files libs michael@0: %defattr(-,root,root,-) michael@0: %doc ChangeLog COPYING LICENSE michael@0: %{_libdir}/libmp3lame.so.* michael@0: michael@0: %files devel michael@0: %defattr (-,root,root,-) michael@0: %doc API HACKING STYLEGUIDE michael@0: %{_libdir}/libmp3lame.so michael@0: %{_includedir}/lame/ michael@0: %{_includedir}/lame.h michael@0: michael@0: %files mp3x michael@0: %defattr (-,root,root,-) michael@0: %{_bindir}/mp3x michael@0: michael@0: %changelog michael@0: * Fri Oct 29 2010 Kozinov Ivan - 3.98.4-1 michael@0: - Build for 1.1