lame.spec.in 5.7 KB

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