TiMidity++-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. %define name TiMidity++
  2. %define ver 2.13.1
  3. %define release 0vl1
  4. %define debug off
  5. %define tarball %{name}-%{ver}
  6. # if 'make install' can install jman automatically
  7. %define jman_install manual
  8. Summary: A Realtime MIDI Player
  9. Group: Applications/Multimedia
  10. License: GPL
  11. URL: http://timidity.sourceforge.net/
  12. Source: %{tarball}.tar.bz2
  13. Patch: TiMidity++-iro.diff
  14. Name: %{name}
  15. Version: %{ver}
  16. Release: %{release}
  17. Packager: Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Requires: esound, libvorbis, libogg, XOrg-libs, audiofile
  20. Requires: Xaw3d, gtk+, glib, tcl, tk, openMotif, slang
  21. BuildPreReq: esound-devel, libogg-devel, libvorbis-devel
  22. BuildPreReq: Xaw3d-devel, gtk+-devel, tcl, tk, openMotif-devel
  23. BuildPreReq: ncurses-devel
  24. %description
  25. TiMidity has originally been a converter that converts MIDI files to WAV
  26. audio file. But now TiMidity++ is not only a converter but also the
  27. real-time player that can play a MIDI file in real time. TiMidity does
  28. not requires external MIDI instrument module to play MIDI file, performs
  29. with software power.
  30. -Od8M -s11025 options will help you if bothered with noisy replay.
  31. TiMidity++ uses GUS/patch (Glavis Ultrasound) as the voice data to
  32. play. You must get GUS/patch files, and make the configuration file.
  33. You must make the configuration file (*.cfg). By default,
  34. timidity.cfg is %{_datadir}/timidity/timidity.cfg.
  35. Take care if you wanna upgrade from older version.
  36. See %{_defaultdocdir}/%{name}-%{ver}/INSTALL for futher information.
  37. #Now this package is beta version, so take care!
  38. %description -l ja
  39. TiMidity++ は、もともとは MIDI -> WAV コンバータでしたが、
  40. 今ではソフトウェア MIDI プレーヤとしての機能を持っています。
  41. MIDI 演奏用のハードウェアは必要ありません。
  42. CPU パワーの少ないマシンでは、-Od8M -s11025 オプションを
  43. 付けると音飛びが防げるでしょう。
  44. このパッケージの TiMidity をインストールしただけでは、音がなりません。
  45. 演奏するには、GUS の音源ファイルを入手し、設定ファイルである timidity.cfg
  46. を作成しなければなりません。デフォルトでは、
  47. %{_datadir}/timidity/timidity.cfg になります。
  48. アップグレードされる方は気をつけて下さい。
  49. 詳細は %{_defaultdocdir}/%{name}-%{ver}/INSTALL.jp を読んで下さい。
  50. #なお、このパッケージはベータ版です。取り扱いに注意しましょう。
  51. %prep
  52. %setup -q -n %{tarball}
  53. %ifnarch sparc
  54. %patch -p1
  55. %endif
  56. %build
  57. if [ %{debug} = "on" ] ; then
  58. export CFLAGS="$RPM_OPT_FLAGS -g"
  59. else
  60. export CFLAGS="$RPM_OPT_FLAGS"
  61. fi
  62. # detect whether alsa library is installed
  63. if [ -f /usr/include/linux/asound.h ] ; then
  64. SOUND="--enable-audio=esd,alsa,oss,vorbis --enable-alsaseq"
  65. else
  66. SOUND="--enable-audio=esd,oss,vorbis"
  67. fi
  68. ./configure --prefix=%{_prefix} --with-elf --with-x --x-includes=/usr/include --x-libraries=/usr/X11R6/%{_lib} \
  69. $SOUND \
  70. --with-default-output=default \
  71. --enable-dynamic=gtk,ncurses,slang,motif,tcltk,emacs,vt100,xaw,xskin \
  72. --enable-network --enable-server --enable-spectrogram
  73. make
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  77. #make prefix=$RPM_BUILD_ROOT%{_prefix} install-strip
  78. make prefix=$RPM_BUILD_ROOT%{_prefix} install
  79. if [ %{jman_install} = "manual" ]; then
  80. # install Japanese manual
  81. mkdir -p $RPM_BUILD_ROOT%{_mandir}/ja/{man1,man5}
  82. install -m644 doc/ja_JP.eucJP/timidity.1 $RPM_BUILD_ROOT%{_mandir}/ja/man1/
  83. install -m644 doc/ja_JP.eucJP/timidity.cfg.5 $RPM_BUILD_ROOT%{_mandir}/ja/man5/
  84. mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/ja/
  85. install -m644 doc/ja_JP.eucJP/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/ja/
  86. # install English manual
  87. mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man1,man5}
  88. install -m644 doc/C/timidity.1 $RPM_BUILD_ROOT%{_mandir}/man1/
  89. install -m644 doc/C/timidity.cfg.5 $RPM_BUILD_ROOT%{_mandir}/man5/
  90. mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/C/
  91. install -m644 doc/C/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/C/
  92. install -m644 interface/timidity.el $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
  93. fi
  94. # 補足ドキュメント
  95. install -m644 doc/ja_JP.eucJP/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/ja/
  96. install -m644 doc/C/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/C/
  97. #install -m644 interface/timidity.el $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
  98. #mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
  99. #cp -p interface/timidity.el $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
  100. cp -p interface/interface*.txt interface/timidity.el $RPM_BUILD_ROOT%{_libdir}/timidity
  101. # install cool icon.
  102. mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/pixmaps/timidity/
  103. cp -p interface/pixmaps/*.xpm $RPM_BUILD_ROOT%{_sharedstatedir}/pixmaps/timidity/
  104. # make symlink for Window Maker
  105. cd $RPM_BUILD_ROOT%{_sharedstatedir}/pixmaps/
  106. ln -s timidity/timidity.xpm .
  107. %clean
  108. rm -rf $RPM_BUILD_ROOT
  109. %files
  110. %defattr(-,root,root)
  111. %{_mandir}/ja/man1/timidity.1*
  112. %{_mandir}/ja/man5/timidity.cfg.5*
  113. %{_mandir}/man1/timidity.1*
  114. %{_mandir}/man5/timidity.cfg.5*
  115. %doc doc/*
  116. %{_bindir}/timidity
  117. %{_datadir}/pixmaps/timidity.xpm
  118. %{_datadir}/pixmaps/timidity/*.xpm
  119. ## if you faced on an error to rebuild or run, please uncomment below.
  120. ## maybe for Tcl/Tk, xaw, xskin and gtk...
  121. %{_libdir}/timidity/*
  122. %changelog
  123. * Tue Mar 27 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 2.13.1-0vl1
  124. - update to 2.13.1
  125. * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.13.0-0vl3
  126. - rebuild with Xaw3d-1.5E
  127. - add BuildPreReq: ncurses-devel
  128. - change --x-libraries's value from /usr/X11R6/lib to /usr/X11R6/%%{_lib}
  129. * Thu Jul 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.13.0-0vl2
  130. - rebuilt with Xaw3d-1.5-17vl3
  131. - s/Copyright/License/
  132. - changed Group to Applications/Multimedia
  133. - updated build dependancy
  134. * Fri Apr 30 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  135. - update
  136. * Fri Aug 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 2.11.3-0vl4
  137. - fix typo (ncurces -> ncurses) thanks Mr. Mickey_U
  138. * Fri Jul 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.11.3-0vl3
  139. - rebuilt with libvorbis-1.0
  140. * Thu Feb 14 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  141. - [TiMidity++-2.11.3-0vl2]
  142. - fix %defattr
  143. - Add Requires: XFree86-libs, audiofile, Xaw3d, gtk+, glib, tcl, tk, lesstif, slang
  144. * Fri Jan 18 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  145. - [TiMidity++-2.11.3-0vl1]
  146. - update.
  147. * Mon Jan 14 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  148. - [TiMidity++-2.11.2-0vl2]
  149. - Add Requires: libvorbis, libogg
  150. - Add BuildPreReq: libogg-devel, libvorbis-devel
  151. * Sat Jan 12 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  152. - [TiMidity++-2.11.2-0vl1]
  153. - update.
  154. * Mon Dec 31 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  155. - [TiMidity++-2.11.1-0vl1]
  156. - update.
  157. * Thu Dec 27 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  158. - [TiMidity++-2.11.0-0vl1]
  159. - update.
  160. * Thu Nov 22 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  161. - [TiMidity++-2.10.4-0vl2]
  162. - Rebuilt(About Tcl/Tk).
  163. * Mon Mar 19 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  164. [TiMidity++-2.10.4-0vl1]
  165. - Updated to 2.10.4.
  166. * Sun Mar 11 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  167. [TiMidity++-2.10.3-0vl1]
  168. - Updated to 2.10.3.
  169. * Sat Mar 03 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  170. - 2.10.2-0vl3
  171. - always require esound
  172. - disable alsa in case alsa driver/library is not installed
  173. * Thu Jan 13 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  174. [TiMidity++-2.10.2-0vl2]
  175. - Use some rpmmacros, Modified Compile Option & man5 data, tcl path.
  176. * Thu Nov 2 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  177. [TiMidity++-2.10.2-0vl1]
  178. - Updated to 2.10.2.
  179. * Sat Oct 18 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  180. [TiMidity++-2.10.1-0vl1]
  181. - Updated to 2.10.1.
  182. * Sat Sep 16 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  183. [TiMidity++-2.10.0-0vl3]
  184. - Updated to 2.10.0.(rebuild without alsa-lib)
  185. * Sat Sep 9 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  186. [TiMidity++-2.10.0-0vl2]
  187. - Updated to 2.10.0.(ja_JP.ujis -> ja)
  188. * Wed Sep 6 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  189. [TiMidity++-2.10.0-0vl1]
  190. - Updated to 2.10.0.
  191. * Wed Oct 6 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  192. [TiMidity++-2.6.1-1]
  193. - Updated to 2.6.1.
  194. * Fri Sep 23 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  195. [TiMidity++-2.6.0-1]
  196. - Updated to the full release of version 2.6.0.
  197. - Include pixmaps.
  198. - Make symlink for Window Maker.
  199. * Fri Sep 11 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  200. [TiMidity++-2.6.0-0.4.0]
  201. - Updated to the 4th (maybe last?) beta release of version 2.6.0.
  202. * Fri Sep 11 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  203. [TiMidity++-2.6.0-0.3.1]
  204. - Enabled all the interfaces.
  205. * Fri Sep 11 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  206. [TiMidity++-2.6.0-0.3.0]
  207. - Updated to the 3rd beta release of version 2.6.0.
  208. - Added TiMidity.ad, TiMidity-uj.ad to install documents.
  209. * Fri Sep 03 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  210. [TiMidity++-2.6.0-0.2.2]
  211. - Updated to the 2nd beta release of version 2.6.0.
  212. * Mon Aug 23 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  213. [TiMidity++-2.5.0-1]
  214. - Updated to full release of version 2.5.0.
  215. - Modified to install Japanese manuals.
  216. * Mon Aug 23 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  217. [TiMidity++-2.4.1-1]
  218. - First attempt.