lame-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. Summary: LAME Ain't an MP3 Encoder... but it's the best.
  2. Name: lame
  3. Version: 3.99.5
  4. Release: 1%{?_dist_release}
  5. License: GPLv2+
  6. Group: Applications/Multimedia
  7. URL: http://lame.sourceforge.net/
  8. #Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
  9. Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
  10. Patch1: %{name}-noexecstack.patch
  11. Patch10: lame-3.99-libs-termcap.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. %{?enable_brhist:BuildRequires: ncurses-devel}
  14. BuildRequires: gtk+-devel
  15. BuildRequires: nasm
  16. %{?enable_brhist:Requires: ncurses}
  17. Requires(post): ldconfig
  18. Requires(postun): ldconfig
  19. %description
  20. LAME is an educational tool to be used for learning about MP3 encoding.
  21. The goal of the LAME project is to use the open source model to improve
  22. the psycho acoustics, noise shaping and speed of MP3.
  23. %package mp3x
  24. Summary: GTK frame analyzer for lame
  25. Group: Applications/Multimedia
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: gtk+
  28. %description mp3x
  29. LAME is an educational tool to be used for learning about MP3 encoding.
  30. The goal of the LAME project is to use the open source model to improve
  31. the psycho acoustics, noise shaping and speed of MP3.
  32. This package contains the GTK frame analyzer.
  33. %package devel
  34. Summary: Shared and static libraries for LAME.
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. %description devel
  38. LAME is an educational tool to be used for learning about MP3 encoding.
  39. The goal of the LAME project is to use the open source model to improve
  40. the psycho acoustics, noise shaping and speed of MP3.
  41. This package contains the libraries and includes files needed to develop
  42. applications with lame.
  43. %prep
  44. %setup -q
  45. %patch1 -p1 -b .noexec
  46. %patch10 -p1 -b .termcap
  47. %build
  48. %__sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure
  49. %ifarch %{ix86} x86_64
  50. export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
  51. %endif
  52. %configure \
  53. --disable-dependency-tracking \
  54. --disable-static \
  55. %ifarch %{ix86} x86_64
  56. --enable-nasm \
  57. %else
  58. --disable-nasm \
  59. %endif
  60. --enable-decoder \
  61. --without-vorbis \
  62. --enable-mp3x \
  63. --enable-mp3rtp \
  64. --enable-decode-layer1 \
  65. %{?enable_brhist:--enable-brhist}%{!?enable_brhist:--disable-brhist} \
  66. --disable-debug \
  67. ;
  68. %__make %{?_smp_mflags}
  69. %check
  70. %__make test
  71. %install
  72. %__rm -rf %{buildroot}
  73. %makeinstall
  74. %__rm -rf installed-docs
  75. %__mv -f %{buildroot}%{_datadir}/doc/%{name} installed-docs
  76. # some apps still expect to find <lame.h>
  77. %__ln_s -f lame/lame.h %{buildroot}%{_includedir}/lame.h
  78. # remove unpackaged files
  79. %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a}
  80. %post -p /sbin/ldconfig
  81. %postun -p /sbin/ldconfig
  82. %clean
  83. %__rm -rf %{buildroot}
  84. %files
  85. %defattr (-,root,root)
  86. %doc COPYING ChangeLog LICENSE README TODO USAGE
  87. %doc installed-docs/*
  88. %{_bindir}/lame
  89. %{_bindir}/mp3rtp
  90. %{_libdir}/lib*.so.*
  91. %{_mandir}/man1/lame.1*
  92. %files mp3x
  93. %defattr (-,root,root)
  94. %{_bindir}/mp3x
  95. %files devel
  96. %defattr (-,root,root)
  97. %doc API HACKING STYLEGUIDE
  98. %{_libdir}/lib*.so
  99. %{_includedir}/lame
  100. %{_includedir}/lame.h
  101. %changelog
  102. * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.99.5
  103. - new upstream release
  104. * Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.99-1
  105. - new upstream release
  106. - applied lame-3.99-libs-termcap.patch
  107. * Sun Sep 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-2
  108. - change release to sync with self-build-lame
  109. * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-1
  110. - new upstream release
  111. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.3-1
  112. - new upstream release
  113. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-2
  114. - change release to sync with self-build-lame
  115. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-1
  116. - new upstream release
  117. - applied some patches from RPM Fusion development
  118. - added in %%configure:
  119. --enable-decode-layer1
  120. --disable-dependency-tracking
  121. --disable-static
  122. * Fri Jun 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-5
  123. - change release to sync with self-build-lame
  124. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-4
  125. - change release to sync with self-build-lame
  126. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-3
  127. - spec in utf8
  128. - remove *.la
  129. * Wed May 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-2
  130. - change %%{__make} option to -j1 <BTS:VineLinux:611>
  131. * Sat May 03 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-1
  132. - apply new versioning policy
  133. * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl3
  134. - fix typo
  135. * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl2
  136. - link libmp3lame with libm (patch1)
  137. * Sat Nov 11 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl1
  138. - initial build