Blame lame.spec.in

Packit 47f805
%define name @PACKAGE@
Packit 47f805
%define ver @VERSION@
Packit 47f805
%define rel 1
Packit 47f805
%define prefix %{_usr}
Packit 47f805
%define docdir %{_defaultdocdir}
Packit 47f805
Packit 47f805
Summary : LAME Ain't an MP3 Encoder... but it's the best.
Packit 47f805
Summary(fr) : LAME n'est pas un encodeur MP3 ;->
Packit 47f805
Name: %{name}
Packit 47f805
Version: %{ver}
Packit 47f805
Release: %{rel}
Packit 47f805
License: LGPL
Packit 47f805
Vendor: The LAME Project
Packit 47f805
Packager: Yosi Markovich <yosim@bigfoot.com>
Packit 47f805
URL: http://www.mp3dev.org
Packit 47f805
Group: Applications/Multimedia
Packit 47f805
Source: %{name}-%{version}.tar.gz
Packit 47f805
BuildRoot: %{_tmppath}/%{name}-root
Packit 47f805
Requires: ncurses >= 5.0
Packit 47f805
BuildRequires: gcc => 3.0.1, /usr/bin/find, ncurses-devel
Packit 47f805
%ifarch %{ix86} x86_64
Packit 47f805
BuildRequires: nasm
Packit 47f805
%endif
Packit 47f805
Provides: mp3encoder
Packit 47f805
Packit 47f805
%description
Packit 47f805
LAME is an educational tool to be used for learning about MP3 encoding.  The
Packit 47f805
goal of the LAME project is to use the open source model to improve the
Packit 47f805
psycho acoustics, noise shaping and speed of MP3. 
Packit 47f805
Packit 47f805
%description -l fr
Packit 47f805
LAME est un outil d'enseignement pour l'apprentissage de l'encodage MP3.
Packit 47f805
Le but du projet LAME est d'utiliser un mod�le "open source" afin
Packit 47f805
d'am�liorer la qualit� et la vitesse du MP3. 
Packit 47f805
Packit 47f805
Packit 47f805
Packit 47f805
%package devel
Packit 47f805
Summary: Shared and static libraries for LAME.
Packit 47f805
Group: Development/Libraries
Packit 47f805
Requires: %{name} = %{version}
Packit 47f805
Packit 47f805
%description devel
Packit 47f805
LAME is an educational tool to be used for learning about MP3 encoding.
Packit 47f805
This package contains both the shared and the static libraries from the
Packit 47f805
LAME project.
Packit 47f805
Packit 47f805
You will also need to install the main lame package in order to install
Packit 47f805
these libraries.
Packit 47f805
Packit 47f805
%prep
Packit 47f805
%setup
Packit 47f805
Packit 47f805
%build
Packit 47f805
Packit 47f805
# Vorbis makes the build fail for now. . .
Packit 47f805
rm -f config.cache
Packit 47f805
 
Packit 47f805
%configure \
Packit 47f805
%ifarch %{ix86} x86_64
Packit 47f805
	--enable-nasm \
Packit 47f805
%endif
Packit 47f805
	--enable-decoder \
Packit 47f805
	--without-vorbis \
Packit 47f805
	--enable-analyzer=no \
Packit 47f805
	--enable-brhist \
Packit 47f805
	--disable-debug
Packit 47f805
%{__make} %{?_smp_mflags} test CFLAGS="%{optflags}"
Packit 47f805
Packit 47f805
%install
Packit 47f805
%{__rm} -rf %{buildroot}
Packit 47f805
%makeinstall
Packit 47f805
Packit 47f805
### Some apps still expect to find <lame.h>
Packit 47f805
%{__ln_s} -f lame/lame.h %{buildroot}%{_includedir}/lame.h
Packit 47f805
Packit 47f805
Packit 47f805
find doc/html -name "Makefile*" | xargs rm -f
Packit 47f805
### make install really shouldn't install these
Packit 47f805
%{__rm} -rf %{buildroot}%{_docdir}/lame/
Packit 47f805
Packit 47f805
Packit 47f805
%post
Packit 47f805
/sbin/ldconfig 2>/dev/null
Packit 47f805
Packit 47f805
%postun
Packit 47f805
/sbin/ldconfig 2>/dev/null
Packit 47f805
Packit 47f805
%clean
Packit 47f805
%{__rm} -rf %{buildroot}
Packit 47f805
Packit 47f805
%files
Packit 47f805
%defattr (-,root,root)
Packit 47f805
%doc COPYING ChangeLog README TODO USAGE doc/html
Packit 47f805
%doc doc/html
Packit 47f805
%{_bindir}/lame
Packit 47f805
%{_libdir}/libmp3lame.so.*
Packit 47f805
%{_mandir}/man1/lame.1*
Packit 47f805
Packit 47f805
%files devel
Packit 47f805
%defattr (-, root, root)
Packit 47f805
%doc API HACKING STYLEGUIDE
Packit 47f805
%{_libdir}/libmp3lame.a
Packit 47f805
%{_libdir}/libmp3lame.la
Packit 47f805
%{_libdir}/libmp3lame.so
Packit 47f805
%{_includedir}/*
Packit 47f805
Packit 47f805
%changelog
Packit 47f805
Packit 47f805
* Sun May 14 2006 Kyle VanderBeek <kylev@kylev.com>
Packit 47f805
- Remove requirements for specific gcc versions, since modern ones "just work".
Packit 47f805
- Remove out-dated hyper-optimizations (some of which weren't valid compiler
Packit 47f805
  flags anymore).
Packit 47f805
- Update to current RPM techniques and macros (inspired by freshrpms.net spec).
Packit 47f805
Packit 47f805
* Sat May 11 2002 Yosi Markovich <yosim@bigfoot.com>
Packit 47f805
- Fixes to the spec file that include:
Packit 47f805
- Making sure the compiler is gcc version 3.0.1. Lame compiled with a version
Packit 47f805
  greater than 3.0.1 is broken.
Packit 47f805
- Optimization flags for i686 will use i686 for march and mcpu, and not 
Packit 47f805
  athlon.
Packit 47f805
- Fix the dates in this Changelog section.
Packit 47f805
- Various small fixes merged from Matthias Saou.
Packit 47f805
- Thanks Fred Maciel <fred-m@crl.hitachi.co.jp> for his useful comments.
Packit 47f805
Packit 47f805
- 
Packit 47f805
* Tue Jan 22 2002 Mark Taylor <mt@mp3dev.org>
Packit 47f805
- replaced lame.spec.in with Yosi's version.  Merged some stuff from
Packit 47f805
  the prevous lame.spec.in file, and appended changelog below.
Packit 47f805
Packit 47f805
* Tue Jan 22 2002 Yosi Markovich <yosim@bigfoot.com>
Packit 47f805
- Rewrote lame.spec.in to create a correct and nice spec file.
Packit 47f805
  imho, this spec file is not good for anyone who wants to build
Packit 47f805
  daily cvs snapshots. Closes bug #495975
Packit 47f805
Packit 47f805
* Tue Dec 11 2001 Yosi Markovich <yosim@bigfoot.com>
Packit 47f805
- Shamelessly stole Matthias Saou's excellent spec file to create daily
Packit 47f805
  CVS snapshots of Lame. Other than that, nothing is new.
Packit 47f805
Packit 47f805
* Tue Oct 23 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
Packit 47f805
- Fixed the %pre and %post that should have been %post and %postun, silly me!
Packit 47f805
- Removed -malign-double (it's evil, Yosi told me and I tested, brrr ;-)).
Packit 47f805
- Now build with gcc3, VBR encoding gets a hell of a boost, impressive!
Packit 47f805
  I recommend you now use "lame --r3mix", it's the best.
Packit 47f805
- Tried to re-enable vorbis, but it's a no-go.
Packit 47f805
Packit 47f805
* Thu Jul 26 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
Packit 47f805
- Build with kgcc to have VBR working.
Packit 47f805
Packit 47f805
* Wed Jul 25 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
Packit 47f805
- Update to 3.89beta : Must be built with a non-patched version of nasm
Packit 47f805
  to work!
Packit 47f805
Packit 47f805
* Mon May  7 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
Packit 47f805
- Rebuilt for Red Hat 7.1.
Packit 47f805
- Disabled the vorbis support since it fails to build with it.
Packit 47f805
- Added a big optimisation section, thanks to Yosi Markovich
Packit 47f805
  <senna@camelot.com> for this and other pointers.
Packit 47f805
Packit 47f805
* Sun Feb 11 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
Packit 47f805
- Split the package, there is now a -devel
Packit 47f805
Packit 47f805
* Thu Nov 26 2000 Matthias Saou <matthias.saou@est.une.marmotte.net>
Packit 47f805
- Initial RPM release for RedHat 7.0 from scratch
Packit 47f805
Packit 47f805
* Wed Nov 21 2000 Eric Lassauge <lassauge@mail.dotcom.fr>
Packit 47f805
- Updated and corrected RPM to 3.89beta.
Packit 47f805
- Added french translations
Packit 47f805
Packit 47f805
* Sat Aug 04 2000 Markus Linnala �maage@cs.tut.fi�
Packit 47f805
- Build and include docs and libs correctly
Packit 47f805
- Build extra programs
Packit 47f805
Packit 47f805
* Tue Aug 01 2000 Stuart Young �cefiar1@optushome.com.au�
Packit 47f805
- Updated RPM to 3.85beta.
Packit 47f805
- Modified spec file (merged George and Keitaro's specs)
Packit 47f805
- Added reasonable info to the specs to reflect the maintainer
Packit 47f805
- Renamed lame.spec (plain spec is bad, mmkay?).
Packit 47f805
Packit 47f805
* Fri Jun 30 2000 Keitaro Yosimura �ramsy@linux.or.jp�
Packit 47f805
- Updated RPM to 3.84alpha.
Packit 47f805
- Better attempt at an RPM, independant of 3.83 release.
Packit 47f805
- (This is all surmise as there was no changelog).
Packit 47f805
Packit 47f805
* Thu May 30 2000 Georges Seguin �crow@planete.net� 
Packit 47f805
- First RPM build around 3.83beta
Packit 47f805
Packit 47f805