playmidi-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. Summary: A MIDI sound file player.
  2. Summary(ja): MIDI 音源ファイルプレーヤ
  3. Name: playmidi
  4. Version: 2.4
  5. Release: 14%{?_dist_release}
  6. Source: ftp://ftp.linpeople.org/pub/People/nathan/playmidi-2.4.tar.gz
  7. Source2: awe_voice.h
  8. License: GPL2
  9. Group: Applications/Multimedia
  10. Patch0: playmidi-2.3-hertz.patch
  11. Patch1: playmidi-2.3-awe2.patch
  12. Patch2: playmidi-2.4-make.patch
  13. Patch3: playmidi-2.4-midimap.patch
  14. BuildRequires: XOrg-devel ncurses-devel
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. Playmidi plays MIDI (Musicial Instrument Digital Interface) sound
  18. files through a sound card synthesizer. This package includes basic
  19. drum samples for use with simple FM synthesizers.
  20. Install playmidi if you want to play MIDI files using your computer's
  21. sound card.
  22. #'
  23. %package X11
  24. Summary: An X Window System Interface based MIDI sound file player.
  25. Requires: playmidi = %{version}
  26. Requires: XOrg-libs
  27. Group: Applications/Multimedia
  28. %description X11
  29. Playmidi-X11 provides an X Window System interface for playing MIDI
  30. (Musical Instrument Digital Interface) sound files through a sound
  31. card synthesizer. This package includes basic drum samples for use
  32. with simple FM synthesizers.
  33. Install playmidi-X11 if you want to use an X interface to play MIDI
  34. sound files using your computer's sound card.
  35. #'
  36. %prep
  37. %setup -q
  38. cp $RPM_SOURCE_DIR/awe_voice.h .
  39. %patch0 -p1 -b .consthertz
  40. %patch1 -p1 -b .awe2
  41. %patch2 -p1 -b .make
  42. %patch3 -p1 -b .midimap
  43. %build
  44. PATH=.:$PATH
  45. %ifarch x86_64
  46. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
  47. LIBX11="-L%{_libdir} -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE" \
  48. playmidi xplaymidi <<EOF
  49. 2
  50. EOF
  51. %else
  52. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" playmidi xplaymidi <<EOF
  53. 2
  54. EOF
  55. %endif
  56. %install
  57. rm -rf $RPM_BUILD_ROOT
  58. mkdir -p $RPM_BUILD_ROOT/etc/midi
  59. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  60. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  61. mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
  62. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  63. install -s -m 755 playmidi xplaymidi $RPM_BUILD_ROOT%{_bindir}
  64. install -m 644 XPlaymidi.ad $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/XPlaymidi
  65. install -m 644 playmidi.1 $RPM_BUILD_ROOT%{_mandir}/man1
  66. mkdir -p $RPM_BUILD_ROOT/etc/midi
  67. for n in std.o3 drums.o3 std.sb drums.sb
  68. do
  69. install -m 644 $n $RPM_BUILD_ROOT/etc/midi/$n
  70. done
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT
  73. %files
  74. %defattr(-,root,root)
  75. %doc BUGS COPYING QuickStart README* *.mid techref/
  76. %{_bindir}/playmidi
  77. %config /etc/midi/std.o3
  78. %config /etc/midi/std.sb
  79. %config /etc/midi/drums.o3
  80. %config /etc/midi/drums.sb
  81. %{_mandir}/man1/playmidi.*
  82. %files X11
  83. %defattr(-,root,root)
  84. %{_bindir}/xplaymidi
  85. %config %{_datadir}/X11/app-defaults/XPlaymidi
  86. %changelog
  87. * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 2.4-14vl5
  88. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  89. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 2.4-13vl5
  90. - applied new versioning policy, spec in utf-8
  91. - modified X11 paths
  92. * Fri Dec 28 2007 Shu KONNO <owa@bg.wakwak.com> - 2.4-12vl4
  93. - added option LIBX11 to make (for x86_64)
  94. * Fri Jan 28 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.4-12vl3
  95. - rebuild with new toolchains
  96. - added BuildRequires: XOrg-devel ncurses-devel
  97. - added Requires: XOrg-libs to X11 subpackage
  98. - s/Copyright/License/
  99. * Fri Nov 16 2001 Jun Nishii <jun@vinelinux.org>
  100. - 2.4-12vl2
  101. - added some files in %doc
  102. * Mon Dec 18 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  103. - 2.4-12vl1
  104. - based on 2.4-12 on rawhide
  105. - rebuild for Vine Linux with ncurses5
  106. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  107. - automatic rebuild
  108. * Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
  109. - rebuild, FHS stuff
  110. * Mon Mar 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  111. - rebuild with current ncurses
  112. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  113. - handle compressed man pages
  114. * Thu Jul 15 1999 Bill Nottingham <notting@redhat.com>
  115. - don't ship splaymidi
  116. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  117. - auto rebuild in the new build environment (release 7)
  118. * Tue Feb 23 1999 Bill Nottingham <notting@redhat.com>
  119. - wmconfig goes away
  120. * Mon Dec 28 1998 Bill Nottingham <notting@redhat.com>
  121. - build against glibc-2.1
  122. * Mon Nov 23 1998 Bill Nottingham <notting@redhat.com>
  123. - oops. We broke FM synth. Fixed.
  124. * Sat Oct 10 1998 Cristian Gafton <gafton@redhat.com>
  125. - strip binaries
  126. - updated to version 2.4
  127. * Wed Sep 9 1998 Bill Nottingham <notting@redhat.com>
  128. - added AWE32 support
  129. * Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
  130. - build root
  131. - sound font data in /etc/midi
  132. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  133. - translations modified for de, fr, tr
  134. * Wed Apr 15 1998 Erik Troan <ewt@redhat.com>
  135. - built against new ncurses
  136. * Tue Oct 21 1997 Otto Hammersmith <otto@redhat.com>
  137. - added wmconfig entries
  138. * Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
  139. - built against glibc