lame-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. Summary: LAME Ain't an MP3 Encoder... but it's the best.
  2. Name: lame
  3. Version: 3.98.4
  4. Release: 2%{?_dist_release}
  5. License: LGPL
  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. Patch2: %{name}-pmake.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. %patch2 -p1 -b .pmake
  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. * Sun Sep 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-2
  103. - change release to sync with self-build-lame
  104. * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-1
  105. - new upstream release
  106. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.3-1
  107. - new upstream release
  108. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-2
  109. - change release to sync with self-build-lame
  110. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-1
  111. - new upstream release
  112. - applied some patches from RPM Fusion development
  113. - added in %%configure:
  114. --enable-decode-layer1
  115. --disable-dependency-tracking
  116. --disable-static
  117. * Fri Jun 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-5
  118. - change release to sync with self-build-lame
  119. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-4
  120. - change release to sync with self-build-lame
  121. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-3
  122. - spec in utf8
  123. - remove *.la
  124. * Wed May 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-2
  125. - change %%{__make} option to -j1 <BTS:VineLinux:611>
  126. * Sat May 03 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-1
  127. - apply new versioning policy
  128. * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl3
  129. - fix typo
  130. * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl2
  131. - link libmp3lame with libm (patch1)
  132. * Sat Nov 11 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl1
  133. - initial build