lame-vl.spec 5.3 KB

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