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