mpg123.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## mpg123.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 version
  25. %define V_opkg 0.60
  26. %define V_dist 0.60
  27. # package information
  28. Name: mpg123
  29. Summary: MP3 Decoder/Player
  30. URL: http://www.mpg123.org/
  31. Vendor: Michael Hipp
  32. Packager: OpenPKG
  33. Distribution: OpenPKG
  34. Class: EVAL
  35. Group: Audio
  36. License: GPL
  37. Version: %{V_opkg}
  38. Release: 20060830
  39. # list of sources
  40. Source0: http://www.mpg123.de/download/mpg123-%{V_dist}.tar.bz2
  41. Patch0: mpg123.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040130
  46. PreReq: OpenPKG, openpkg >= 20040130
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. mpg123 is a real time MPEG Audio Player for Layer 1,2 and Layer 3.
  51. %track
  52. prog mpg123 = {
  53. version = %{V_dist}
  54. url = http://www.mpg123.de/download.shtml
  55. regex = mpg123-(__VER__)\.tar\.bz2
  56. }
  57. %prep
  58. %setup -q -n mpg123-%{V_dist}
  59. %patch -p0
  60. %build
  61. CC="%{l_cc}" \
  62. CFLAGS="%{l_cflags -O}" \
  63. ./configure \
  64. --prefix=%{l_prefix}
  65. %{l_make} %{l_mflags -O}
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/bin \
  70. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  71. %{l_shtool} install -c -s -m 755 \
  72. src/mpg123 $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -m 644 \
  74. mpg123.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT