lame-vl.spec 4.7 KB

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