mp3info.spec 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##
  2. ## mp3info.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 information
  25. Name: mp3info
  26. Summary: MP3 Tag Utility
  27. URL: http://www.ibiblio.org/mp3info/
  28. Vendor: Cedric Tefft
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: EVAL
  32. Group: Audio
  33. License: GPL
  34. Version: 0.8.5a
  35. Release: 20061115
  36. # list of sources
  37. Source0: ftp://ftp.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-%{version}.tgz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130
  42. PreReq: OpenPKG, openpkg >= 20040130
  43. BuildPreReq: ncurses
  44. PreReq: ncurses
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. MP3Info is a little utility used to read and modify the ID3 tags
  49. of MP3 files. MP3Info can also display various techincal aspects of
  50. an MP3 file including playing time, bit-rate, sampling frequency and
  51. other attributes in a pre-defined or user-specifiable output format.
  52. %track
  53. prog mp3info = {
  54. version = %{version}
  55. url = ftp://ftp.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/
  56. regex = mp3info-(__VER__)\.tgz
  57. }
  58. %prep
  59. %setup -q
  60. %build
  61. %{l_make} %{l_mflags -O} mp3info \
  62. CC="%{l_cc}" \
  63. CFLAGS="%{l_cflags -O} %{l_cppflags ncurses .}" \
  64. LIBS="%{l_ldflags} -lncurses"
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. %{l_shtool} mkdir -f -p -m 755 \
  68. $RPM_BUILD_ROOT%{l_prefix}/bin \
  69. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  70. %{l_shtool} install -c -s -m 755 \
  71. mp3info $RPM_BUILD_ROOT%{l_prefix}/bin/
  72. %{l_shtool} install -c -m 644 \
  73. mp3info.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  74. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  75. %files -f files
  76. %clean
  77. rm -rf $RPM_BUILD_ROOT