lame.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ##
  2. ## lame.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package versions
  25. %define V_logic 3.97
  26. %define V_real 3.97b3_
  27. %define V_opkg 3.97b3
  28. # package information
  29. Name: lame
  30. Summary: MP3 Encoder
  31. URL: http://www.mp3dev.org/
  32. Vendor: Mike Cheng
  33. Packager: OpenPKG
  34. Distribution: OpenPKG
  35. Class: PLUS
  36. Group: Audio
  37. License: GPL
  38. Version: %{V_opkg}
  39. Release: 20060820
  40. # list of sources
  41. Source0: http://switch.dl.sourceforge.net/sourceforge/lame/lame-%{V_real}.tar.gz
  42. Patch0: lame.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
  47. PreReq: OpenPKG, openpkg >= 20040130
  48. BuildPreReq: ncurses
  49. PreReq: ncurses
  50. AutoReq: no
  51. AutoReqProv: no
  52. %description
  53. Following the great history of GNU naming, LAME originally stood
  54. for LAME Ain't an Mp3 Encoder. LAME started life as a GPL'd patch
  55. against the dist10 ISO demonstration source, and thus was incapable
  56. of producing an mp3 stream or even being compiled by itself. But in
  57. May 2000, the last remnants of the ISO source code were replaced,
  58. and now LAME is the source code for a fully GPL'd MP3 encoder, with
  59. speed and quality to rival all commercial competitors.
  60. %track
  61. prog lame = {
  62. version = %{version}
  63. url = http://prdownloads.sourceforge.net/lame/
  64. regex = lame-(__VER__)\.tar\.gz
  65. }
  66. %prep
  67. %setup -q -n lame-%{V_logic}
  68. %patch -p0
  69. %build
  70. CC="%{l_cc}" \
  71. CFLAGS="%{l_cflags -O}" \
  72. CPPFLAGS="%{l_cppflags}" \
  73. LDFLAGS="%{l_ldflags}" \
  74. ./configure \
  75. --prefix=%{l_prefix} \
  76. --disable-dependency-tracking \
  77. --with-fileio=lame
  78. %{l_make} %{l_mflags}
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  82. rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
  83. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
  84. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share
  85. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  86. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  87. %files -f files
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT