lame-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. Summary: LAME Ain't an MP3 Encoder... but it's the best.
  2. Name: lame
  3. Version: 3.99.5
  4. Release: 2%{?_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}
  50. %__sed -i -e '/xmmintrin\.h/d' configure
  51. %endif
  52. %ifarch %{ix86} x86_64
  53. export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
  54. %endif
  55. %configure \
  56. --disable-dependency-tracking \
  57. --disable-static \
  58. %ifarch %{ix86} x86_64
  59. --enable-nasm \
  60. %else
  61. --disable-nasm \
  62. %endif
  63. --enable-decoder \
  64. --without-vorbis \
  65. --enable-mp3x \
  66. --enable-mp3rtp \
  67. --enable-decode-layer1 \
  68. %{?enable_brhist:--enable-brhist}%{!?enable_brhist:--disable-brhist} \
  69. --disable-debug \
  70. ;
  71. %__make %{?_smp_mflags}
  72. %check
  73. %__make test
  74. %install
  75. %__rm -rf %{buildroot}
  76. %makeinstall
  77. %__rm -rf installed-docs
  78. %__mv -f %{buildroot}%{_datadir}/doc/%{name} installed-docs
  79. # some apps still expect to find <lame.h>
  80. %__ln_s -f lame/lame.h %{buildroot}%{_includedir}/lame.h
  81. # remove unpackaged files
  82. %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a}
  83. %post -p /sbin/ldconfig
  84. %postun -p /sbin/ldconfig
  85. %clean
  86. %__rm -rf %{buildroot}
  87. %files
  88. %defattr (-,root,root)
  89. %doc COPYING ChangeLog LICENSE README TODO USAGE
  90. %doc installed-docs/*
  91. %{_bindir}/lame
  92. %{_bindir}/mp3rtp
  93. %{_libdir}/lib*.so.*
  94. %{_mandir}/man1/lame.1*
  95. %files mp3x
  96. %defattr (-,root,root)
  97. %{_bindir}/mp3x
  98. %files devel
  99. %defattr (-,root,root)
  100. %doc API HACKING STYLEGUIDE
  101. %{_libdir}/lib*.so
  102. %{_includedir}/lame
  103. %{_includedir}/lame.h
  104. %changelog
  105. * Sun Jul 03 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.99.5-2
  106. - fix spec for i686
  107. * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.99.5
  108. - new upstream release
  109. * Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.99-1
  110. - new upstream release
  111. - applied lame-3.99-libs-termcap.patch
  112. * Sun Sep 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-2
  113. - change release to sync with self-build-lame
  114. * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-1
  115. - new upstream release
  116. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.3-1
  117. - new upstream release
  118. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-2
  119. - change release to sync with self-build-lame
  120. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-1
  121. - new upstream release
  122. - applied some patches from RPM Fusion development
  123. - added in %%configure:
  124. --enable-decode-layer1
  125. --disable-dependency-tracking
  126. --disable-static
  127. * Fri Jun 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-5
  128. - change release to sync with self-build-lame
  129. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-4
  130. - change release to sync with self-build-lame
  131. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-3
  132. - spec in utf8
  133. - remove *.la
  134. * Wed May 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-2
  135. - change %%{__make} option to -j1 <BTS:VineLinux:611>
  136. * Sat May 03 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-1
  137. - apply new versioning policy
  138. * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl3
  139. - fix typo
  140. * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl2
  141. - link libmp3lame with libm (patch1)
  142. * Sat Nov 11 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl1
  143. - initial build