• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1%define name @PACKAGE@
2%define ver @VERSION@
3%define rel 1
4%define prefix %{_usr}
5%define docdir %{_defaultdocdir}
6
7Summary : LAME Ain't an MP3 Encoder... but it's the best.
8Summary(fr) : LAME n'est pas un encodeur MP3 ;->
9Name: %{name}
10Version: %{ver}
11Release: %{rel}
12License: LGPL
13Vendor: The LAME Project
14Packager: Yosi Markovich <yosim@bigfoot.com>
15URL: http://www.mp3dev.org
16Group: Applications/Multimedia
17Source: %{name}-%{version}.tar.gz
18BuildRoot: %{_tmppath}/%{name}-root
19Requires: ncurses >= 5.0
20BuildRequires: gcc => 3.0.1, /usr/bin/find, ncurses-devel
21%ifarch %{ix86} x86_64
22BuildRequires: nasm
23%endif
24Provides: mp3encoder
25
26%description
27LAME is an educational tool to be used for learning about MP3 encoding.  The
28goal of the LAME project is to use the open source model to improve the
29psycho acoustics, noise shaping and speed of MP3.
30
31%description -l fr
32LAME est un outil d'enseignement pour l'apprentissage de l'encodage MP3.
33Le but du projet LAME est d'utiliser un mod�le "open source" afin
34d'am�liorer la qualit� et la vitesse du MP3.
35
36
37
38%package devel
39Summary: Shared and static libraries for LAME.
40Group: Development/Libraries
41Requires: %{name} = %{version}
42
43%description devel
44LAME is an educational tool to be used for learning about MP3 encoding.
45This package contains both the shared and the static libraries from the
46LAME project.
47
48You will also need to install the main lame package in order to install
49these libraries.
50
51%prep
52%setup
53
54%build
55
56# Vorbis makes the build fail for now. . .
57rm -f config.cache
58
59%configure \
60%ifarch %{ix86} x86_64
61	--enable-nasm \
62%endif
63	--enable-decoder \
64	--without-vorbis \
65	--enable-analyzer=no \
66	--enable-brhist \
67	--disable-debug
68%{__make} %{?_smp_mflags} test CFLAGS="%{optflags}"
69
70%install
71%{__rm} -rf %{buildroot}
72%makeinstall
73
74### Some apps still expect to find <lame.h>
75%{__ln_s} -f lame/lame.h %{buildroot}%{_includedir}/lame.h
76
77
78find doc/html -name "Makefile*" | xargs rm -f
79### make install really shouldn't install these
80%{__rm} -rf %{buildroot}%{_docdir}/lame/
81
82
83%post
84/sbin/ldconfig 2>/dev/null
85
86%postun
87/sbin/ldconfig 2>/dev/null
88
89%clean
90%{__rm} -rf %{buildroot}
91
92%files
93%defattr (-,root,root)
94%doc COPYING ChangeLog README TODO USAGE doc/html
95%doc doc/html
96%{_bindir}/lame
97%{_libdir}/libmp3lame.so.*
98%{_mandir}/man1/lame.1*
99
100%files devel
101%defattr (-, root, root)
102%doc API HACKING STYLEGUIDE
103%{_libdir}/libmp3lame.a
104%{_libdir}/libmp3lame.la
105%{_libdir}/libmp3lame.so
106%{_includedir}/*
107
108%changelog
109
110* Sun May 14 2006 Kyle VanderBeek <kylev@kylev.com>
111- Remove requirements for specific gcc versions, since modern ones "just work".
112- Remove out-dated hyper-optimizations (some of which weren't valid compiler
113  flags anymore).
114- Update to current RPM techniques and macros (inspired by freshrpms.net spec).
115
116* Sat May 11 2002 Yosi Markovich <yosim@bigfoot.com>
117- Fixes to the spec file that include:
118- Making sure the compiler is gcc version 3.0.1. Lame compiled with a version
119  greater than 3.0.1 is broken.
120- Optimization flags for i686 will use i686 for march and mcpu, and not
121  athlon.
122- Fix the dates in this Changelog section.
123- Various small fixes merged from Matthias Saou.
124- Thanks Fred Maciel <fred-m@crl.hitachi.co.jp> for his useful comments.
125
126-
127* Tue Jan 22 2002 Mark Taylor <mt@mp3dev.org>
128- replaced lame.spec.in with Yosi's version.  Merged some stuff from
129  the prevous lame.spec.in file, and appended changelog below.
130
131* Tue Jan 22 2002 Yosi Markovich <yosim@bigfoot.com>
132- Rewrote lame.spec.in to create a correct and nice spec file.
133  imho, this spec file is not good for anyone who wants to build
134  daily cvs snapshots. Closes bug #495975
135
136* Tue Dec 11 2001 Yosi Markovich <yosim@bigfoot.com>
137- Shamelessly stole Matthias Saou's excellent spec file to create daily
138  CVS snapshots of Lame. Other than that, nothing is new.
139
140* Tue Oct 23 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
141- Fixed the %pre and %post that should have been %post and %postun, silly me!
142- Removed -malign-double (it's evil, Yosi told me and I tested, brrr ;-)).
143- Now build with gcc3, VBR encoding gets a hell of a boost, impressive!
144  I recommend you now use "lame --r3mix", it's the best.
145- Tried to re-enable vorbis, but it's a no-go.
146
147* Thu Jul 26 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
148- Build with kgcc to have VBR working.
149
150* Wed Jul 25 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
151- Update to 3.89beta : Must be built with a non-patched version of nasm
152  to work!
153
154* Mon May  7 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
155- Rebuilt for Red Hat 7.1.
156- Disabled the vorbis support since it fails to build with it.
157- Added a big optimisation section, thanks to Yosi Markovich
158  <senna@camelot.com> for this and other pointers.
159
160* Sun Feb 11 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
161- Split the package, there is now a -devel
162
163* Thu Nov 26 2000 Matthias Saou <matthias.saou@est.une.marmotte.net>
164- Initial RPM release for RedHat 7.0 from scratch
165
166* Wed Nov 21 2000 Eric Lassauge <lassauge@mail.dotcom.fr>
167- Updated and corrected RPM to 3.89beta.
168- Added french translations
169
170* Sat Aug 04 2000 Markus Linnala �maage@cs.tut.fi�
171- Build and include docs and libs correctly
172- Build extra programs
173
174* Tue Aug 01 2000 Stuart Young �cefiar1@optushome.com.au�
175- Updated RPM to 3.85beta.
176- Modified spec file (merged George and Keitaro's specs)
177- Added reasonable info to the specs to reflect the maintainer
178- Renamed lame.spec (plain spec is bad, mmkay?).
179
180* Fri Jun 30 2000 Keitaro Yosimura �ramsy@linux.or.jp�
181- Updated RPM to 3.84alpha.
182- Better attempt at an RPM, independant of 3.83 release.
183- (This is all surmise as there was no changelog).
184
185* Thu May 30 2000 Georges Seguin �crow@planete.net�
186- First RPM build around 3.83beta
187
188
189