]> git.pld-linux.org Git - packages/TiMidity++.git/blob - TiMidity++.spec
- fixed usage of macros
[packages/TiMidity++.git] / TiMidity++.spec
1 Summary:        TiMidity++ - MIDI to WAV converter and player
2 Name:           TiMidity++
3 Version:        2.0.2
4 Release:        1
5 Group:          Applications/Sound
6 Copyright:      GPL
7 Vendor:         Masanao Izumo <mo@goice.co.jp>
8 Source:         http://www.goice.co.jp/member/mo/timidity/dist/%{name}-%{version}.tar.bz2
9 Patch0:         TiMidity++-gtk.patch
10 Patch1:         TiMidity++-config.patch
11 URL:            http://www.goice.co.jp/member/mo/timidity/
12 BuildRoot:      /tmp/%{name}-%{version}-root
13
14 %description
15 TiMidity++ is a converter that converts some of MIDI files ( formats :
16 Standard MIDI file (*.MID), Recomposer files (*.RCP, *.R36, *.G18, *.G36)
17 and Module file (*.mod) ) into formatted audio file (ex. RIFF WAVE).
18 TiMidity uses Gravis Ultrasound-compatible patch files or Soundfonts (*.sfx,
19 *.sf2) to generate digital audio data from MIDI files. The digital audio
20 data generated by TiMidity can be stored in a file for processing, or played
21 in real time through an audio device. In real time playing, TiMidity if able
22 to show the lylic contained in KAR file or WRD file.
23
24 This package contains interfaces for ncurses, emacs and WinAmp/x11amp skins.
25
26 %package slang
27 Summary:        Slang interface for TiMidity++.
28 Group:          Applications/Sound
29 Requires:       %{name} = %{version}
30
31 %description slang
32 Slang interface for TiMidity++.
33
34 %package motif
35 Summary:        Motif interface for TiMidity++.
36 Group:          Applications/Sound
37 Requires:       %{name} = %{version}
38
39 %description motif
40 Motif interface for TiMidity++.
41
42 %package tcltk
43 Summary:        Tcl/Tk interface for TiMidity++.
44 Group:          Applications/Sound
45 Requires:       %{name} = %{version}
46
47 %description tcltk
48 Tcl/Tk interface for TiMidity++.
49
50 %package xaw
51 Summary:        Athena interface for TiMidity++.
52 Group:          Applications/Sound
53 Requires:       %{name} = %{version}
54
55 %description xaw
56 Athena interface for TiMidity++.
57
58 %package gtk
59 Summary:        GTK+ interface for TiMidity++.
60 Group:          Applications/Sound
61 Requires:       %{name} = %{version}
62
63 %description gtk
64 GTK+ interface for TiMidity++.
65
66 %prep
67 %setup -q
68 %patch1 -p1
69
70 %build
71 aclocal
72 autoheader
73 autoconf
74 automake
75 %configure \
76         --enable-dynamic \
77         --enable-ncurses=dynamic \
78         --enable-slang=dynamic \
79         --enable-motif=dynamic \
80         --enable-tcltk=dynamic \
81         --enable-emacs=dynamic \
82         --enable-xaw=dynamic \
83         --enable-xskin=dynamic \
84         --enable-gtk=dynamic \
85         --enable-network \
86         --enable-spectrogram
87 patch -p1 <%{PATCH0}
88 make
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 make install DESTDIR=$RPM_BUILD_ROOT
94
95 install -d $RPM_BUILD_ROOT{/etc,%{_datadir}/GUSpatches}
96 install timidity.cfg $RPM_BUILD_ROOT/etc
97
98 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/* \
99         $RPM_BUILD_ROOT%{_libdir}/timidity/*.so || :
100
101 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
102         AUTHORS README* ChangeLog* NEWS doc/C/{CHANGES*,FAQ,README*}
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %files
108 %defattr(644,root,root,755)
109 %doc {AUTHORS,README*,ChangeLog*,NEWS,doc/C/{CHANGES*,FAQ,README.{dl,sf,xskin}*}}.gz
110 %attr(755,root,root) %{_bindir}/timidity
111 %attr(755,root,root) %{_libdir}/timidity/interface_n.so
112 %attr(755,root,root) %{_libdir}/timidity/interface_e.so
113 %attr(755,root,root) %{_libdir}/timidity/interface_i.so
114 %{_libdir}/timidity/bitmaps
115 %{_mandir}/man[15]/*
116 %config /etc/timidity.cfg
117 %ghost %dir %{_datadir}/GUSpatches
118
119 %files slang
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/timidity/interface_s.so
122
123 %files motif
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/timidity/interface_m.so
126
127 %files tcltk
128 %defattr(644,root,root,755)
129 %doc doc/C/README.tk.gz
130 %attr(755,root,root) %{_libdir}/timidity/interface_k.so
131 %{_libdir}/timidity/*.tcl
132
133 %files xaw
134 %defattr(644,root,root,755)
135 %doc doc/C/README.xaw.gz
136 %attr(755,root,root) %{_libdir}/timidity/interface_a.so
137
138 %files gtk
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/timidity/interface_g.so
This page took 0.04428 seconds and 4 git commands to generate.