File lame.spec of Package libmp3lame
# vim: set ts=4 sw=4 et:
%define soname 0
%if %{suse_version} > 1120
%bcond_with gtk1
%else
%bcond_without gtk1
%endif
Summary: LAME Ain't an MP3 Encoder
Name: lame
Version: 3.98.4
Release: 5.3
License: GNU Library General Public License version 2 (LGPL v2)
URL: http://lame.sourceforge.net/
Group: Productivity/Multimedia/Sound/Editors and Convertors
# http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
Source: lame-%{version}.tar.bz2
Patch2: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/lame/files/lame-3.98-shared-frontend.patch
Patch4: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/lame/files/lame-3.98.2-get_audio.patch
Source99: lame-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc glibc-devel make pkgconfig ncurses-devel nasm
BuildRequires: libsndfile-devel flac-devel
%if %{with gtk1}
BuildRequires: gtk-devel
%endif
BuildRequires: autoconf automake libtool
Requires: libmp3lame%{soname} = %{version}
%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.
Another goal of the LAME project is to use these improvements for the basis of
a patent free audio compression codec for the GNU project.
%package doc
Summary: LAME Ain't an MP3 Encoder (Documentation)
Group: Productivity/Multimedia/Sound/Editors and Convertors
Requires: %{name} = %{version}
%description doc
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.
Another goal of the LAME project is to use these improvements for the basis of
a patent free audio compression codec for the GNU project.
This package contains additional documentation files in
%{_docdir}/%{name}/
%package -n libmp3lame%{soname}
Summary: LAME Ain't an MP3 Encoder
Group: System/Libraries
Provides: liblame = %{version}-%{release}
Provides: libmp3lame = %{version}-%{release}
%description -n libmp3lame%{soname}
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.
Another goal of the LAME project is to use these improvements for the basis of
a patent free audio compression codec for the GNU project.
%package -n libmp3lame-devel
Summary: LAME Ain't an MP3 Encoder
Group: Development/Libraries/C and C++
Requires: libmp3lame%{soname} = %{version}
Provides: liblame-devel = %{version}
%description -n libmp3lame-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.
Another goal of the LAME project is to use these improvements for the basis of
a patent free audio compression codec for the GNU project.
%package -n lame-mp3rtp
Summary: MP3 Encoder for RTP Streaming
Group: Productivity/Multimedia/Sound/Editors and Convertors
Requires: libmp3lame%{soname} = %{version}
Provides: mp3rtp = %{version}
%description -n lame-mp3rtp
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.
Another goal of the LAME project is to use these improvements for the basis of
a patent free audio compression codec for the GNU project.
This package includes "mp3rtp", an MP3 encoder with RTP streaming of the output.
%if %{with gtk1}
%package -n lame-mp3x
Summary: MP3 Frame Analyzer
Group: Productivity/Multimedia/Sound/Visualization
Requires: libmp3lame%{soname} = %{version}
Provides: mp3x = %{version}
%description -n lame-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.
Another goal of the LAME project is to use these improvements for the basis of
a patent free audio compression codec for the GNU project.
This package includes "mp3x", an MP3 frame analyzer with a graphical
frontend.
%endif
%prep
%setup -q
%patch2 -p1
%patch4
%if !%{with gtk1}
# dirty
sed -i -e 's/AM_PATH_GTK.*/HAVE_GTK=no/' configure.in
sed -i -e s/@GTK_CFLAGS@// frontend/Makefile.am
%endif
%build
autoreconf -fiv
LIBS="-lm" \
CFLAGS="%{optflags}" \
%configure \
--enable-nasm \
--enable-decoder \
--without-vorbis \
--enable-analyzer=no \
--enable-brhist \
--disable-debug \
--enable-mp3rtp \
%if %{with gtk1}
--enable-mp3x \
%endif
--with-fileio=sndfile \
--disable-static
%__make %{?_smp_flags}
%install
%makeinstall
%__rm -rf "%{buildroot}%{_datadir}/doc"
%__install -d "%{buildroot}%{_docdir}/%{name}"
DOC_MAIN="$PWD/lame.main.doc.lst"
DOC_DOC="$PWD/lame.doc.doc.lst"
echo -n >"$DOC_MAIN"
echo -n >"$DOC_DOC"
for f in LICENSE COPYING; do
echo "%doc %{_docdir}/%{name}/$f" >>"$DOC_MAIN"
%__install -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/"
done
for f in USAGE API TODO README* HACKING ChangeLog; do
echo "%doc %{_docdir}/%{name}/$f" >>"$DOC_DOC"
%__install -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/"
done
%post -n libmp3lame%{soname} -p /sbin/ldconfig
%postun -n libmp3lame%{soname} -p /sbin/ldconfig
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f lame.main.doc.lst
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%{_bindir}/lame
%doc %{_mandir}/man1/lame.1%{ext_man}
%files doc -f lame.doc.doc.lst
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%files -n libmp3lame%{soname}
%defattr(-,root,root)
%{_libdir}/libmp3lame.so.%{soname}
%{_libdir}/libmp3lame.so.%{soname}.*
%files -n libmp3lame-devel
%defattr(-,root,root)
%{_includedir}/lame
%{_libdir}/libmp3lame.so
%{_libdir}/libmp3lame.la
%files -n lame-mp3rtp
%defattr(-,root,root)
%{_bindir}/mp3rtp
%if %{with gtk1}
%files -n lame-mp3x
%defattr(-,root,root)
%{_bindir}/mp3x
%endif
%changelog
* Mon Mar 7 2011 pascal.bleser@opensuse.org
- add Gentoo patch that fixes reading from stdin
- add rpmlintrc
- split out documentation into subpackage
* Fri Jun 18 2010 lnussel@suse.de
- disable use of gtk in 11.3, was dropped
* Sat Mar 27 2010 pascal@links2linux.de
- update to 3.98.4:
* fix for #2973877, a problem regarding the new drain code
* Sun Feb 28 2010 pascal@links2linux.de
- update to 3.98.3:
* a very important interaction with the FhG decoder was fixed
* the hip audio decoding library is used to perform a better job
when reencoding MP3 files to MP3 files
* bugs were worked around to improve compatibility with ffmpeg
* many fixes were made regarding ID3 tags, including correct
specification of the length of the tracks
- dropped cvs patch, merged upstream
* Fri Aug 21 2009 Manfred.Tremmel@iiv.de
- cleanups cvs patch
- removed static library
* Sat May 30 2009 Manfred.Tremmel@iiv.de
- patch from cvs to fix buffer problems with ffmpeg
* Tue Sep 23 2008 guru@unixtech.be
- added Authors: in description blocks
- use libsndfile for fileio, as it seems to be the prefered default now
- update to 3.98.2:
* adds some quality improvements to the generated audio files
* enables the user to choose fractional variable bitrate qualities
* upgraded support for libsndfile1 (and, in turn, can use many file formats as input, including FLAC files)
* includes many bugfixes, including peripheral tools for user convenience
* Sun Jul 13 2008 guru@unixtech.be
- added ldconfig in post and postun
- changed release to 0.pm.1 (instead of 1)
- split off shared library and -devel packages (still Requires by lame for
backwards compatibility, may change later)
- fixed Group:
- added BuildRequires
- added debuginfo support
- revamped spec file
* Wed Dec 20 2006 henne@links2linux.de
- update to version 3.97
- build against libm for k3b
* Tue Feb 28 2006 henne@links2linux.de
- package missing include dir
* Sat Nov 27 2004 henne@links2linux.de
- make spec file lib/lib64 clean
* Sun Oct 17 2004 henne@links2linux.de
- updated to version 3.96.1
* Wed May 5 2004 henne@links2linux.de
- updated to version 3.95.1
* Sun Sep 28 2003 henne@links2linux.de
- updated to version 3.93.1
* Sun Aug 31 2003 henne@links2linux.de
- remove buildarch
* Sun Mar 23 2003 henne@links2linux.de
- compiled for 8.2
* Sun Sep 15 2002 henne@links2linux.de
- updated version to 3.92
* Mon Jan 28 2002 waldemar@links2linux.de
- new release
* Tue May 15 2001 waldemar@links2linux.de
- new beta
* Tue Jan 23 2001 waldemar@links2linux.de
- added mlame, script for multiple encoding with lame
* Thu Jan 11 2001 waldemar@links2linux.de
- compiled without ogg/vorbis support, because to buggy
* Wed Jan 3 2001 waldemar@links2linux.de
- first release