lame-vl.spec 4.3 KB

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