Summary: LAME Ain't an MP3 Encoder... but it's the best. Name: lame Version: 3.98.4 Release: 1%{?_dist_release} License: LGPL Group: Applications/Multimedia URL: http://lame.sourceforge.net/ #Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz Patch1: %{name}-noexecstack.patch Patch2: %{name}-pmake.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: ncurses-devel BuildRequires: gtk+-devel %ifarch %{ix86} x86_64 BuildRequires: nasm %endif Requires: ncurses Requires(post): ldconfig Requires(postun): ldconfig %description LAME is an educational tool to be used for learning about MP3 encoding. The goal of the LAME project is to use the open source model to improve the psycho acoustics, noise shaping and speed of MP3. %package mp3x Summary: GTK frame analyzer for lame Group: Applications/Multimedia Requires: %{name} = %{version}-%{release} Requires: gtk+ %description mp3x LAME is an educational tool to be used for learning about MP3 encoding. The goal of the LAME project is to use the open source model to improve the psycho acoustics, noise shaping and speed of MP3. This package contains the GTK frame analyzer. %package devel Summary: Shared and static libraries for LAME. Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel LAME is an educational tool to be used for learning about MP3 encoding. The goal of the LAME project is to use the open source model to improve the psycho acoustics, noise shaping and speed of MP3. This package contains the libraries and includes files needed to develop applications with lame. %prep %setup -q %patch1 -p1 -b .noexec %patch2 -p1 -b .pmake %build %__sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure %ifarch %{ix86} x86_64 export CFLAGS="$RPM_OPT_FLAGS -ffast-math" %endif %configure \ --disable-dependency-tracking \ --disable-static \ %ifarch %{ix86} x86_64 --enable-nasm \ %else --disable-nasm \ %endif --enable-decoder \ --without-vorbis \ --enable-mp3x \ --enable-mp3rtp \ --enable-decode-layer1 \ --enable-brhist \ --disable-debug %__make %{?_smp_mflags} %check %__make test %install %__rm -rf %{buildroot} %makeinstall %__rm -rf installed-docs %__mv -f %{buildroot}%{_datadir}/doc/%{name} installed-docs # some apps still expect to find %__ln_s -f lame/lame.h %{buildroot}%{_includedir}/lame.h # remove unpackaged files %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean %__rm -rf %{buildroot} %files %defattr (-,root,root) %doc COPYING ChangeLog LICENSE README TODO USAGE %doc installed-docs/* %{_bindir}/lame %{_bindir}/mp3rtp %{_libdir}/lib*.so.* %{_mandir}/man1/lame.1* %files mp3x %defattr (-,root,root) %{_bindir}/mp3x %files devel %defattr (-,root,root) %doc API HACKING STYLEGUIDE %{_libdir}/lib*.so %{_includedir}/lame %{_includedir}/lame.h %changelog * Sat Mar 27 2010 Munehiro Yamamoto 3.98.4-1 - new upstream release * Sat Mar 20 2010 Munehiro Yamamoto 3.98.3-1 - new upstream release * Sat Sep 26 2009 Munehiro Yamamoto 3.98.2-2 - change release to sync with self-build-lame * Sat Sep 26 2009 Munehiro Yamamoto 3.98.2-1 - new upstream release - applied some patches from RPM Fusion development - added in %%configure: --enable-decode-layer1 --disable-dependency-tracking --disable-static * Fri Jun 05 2009 Munehiro Yamamoto 3.97-5 - change release to sync with self-build-lame * Tue May 26 2009 Munehiro Yamamoto 3.97-4 - change release to sync with self-build-lame * Sun Nov 02 2008 Munehiro Yamamoto 3.97-3 - spec in utf8 - remove *.la * Wed May 07 2008 Kazutaka HARADA 3.97-2 - change %%{__make} option to -j1 * Sat May 03 2008 Kazutaka HARADA 3.97-1 - apply new versioning policy * Sun Nov 12 2006 KAZUKI SHIMURA 3.97-0vl3 - fix typo * Sun Nov 12 2006 KAZUKI SHIMURA 3.97-0vl2 - link libmp3lame with libm (patch1) * Sat Nov 11 2006 KAZUKI SHIMURA 3.97-0vl1 - initial build