source: projects/specs/trunk/T/TiMidity++4ALSA/TiMidity++4ALSA-vl.spec @ 12153

Revision 12153, 14.3 KB checked in by ara_t, 3 years ago (diff)

TiMidity?++4ALSA: rebuild with ncurses-6.1

Line 
1%define debug   off
2%define org_name TiMidity++
3
4Name:           TiMidity++4ALSA
5Version:        2.14.0
6Release:        3%{?_dist_release}
7
8Summary:        A software wavetable MIDI synthesizer (for ALSA)
9Summary(ja):    ソフトウェアMIDI音源シンセサイザー (for ALSA)
10
11License:        GPLv2
12Group:          Applications/Multimedia
13URL:            http://timidity.sourceforge.net/
14
15Source:         http://downloads.sourceforge.net/timidity/%{org_name}-%{version}.tar.xz
16Source1:        timidity.desktop
17Source2:        timidity_add_text.txt
18Source3:        alsa2midi
19Source4:        timidity++.cfg
20Source5:        timidity.Sample.cfg
21
22# VineLinux -- irokawa patches
23## TiMidity++-iro.diff
24# replase and others (babasaki)
25## Patch10: TiMidity++-2.13.2-doc.patch
26## Patch30: TiMidity++-2.13.2-interface.patch
27
28## package rebuild patches
29Patch1: TiMidity++_configure.patch
30Patch2: TiMidity++_manual_C_ja.patch
31Patch3: TiMidity++_interface.patch
32Patch4: TiMidity++_lib.patch
33Patch5: TiMidity++_timidity.patch
34Patch6: TiMidity++_utils.patch
35Patch10: TiMidity++_tcltk.patch
36
37#--------------------------------------------------------------------
38BuildRoot:  %{_tmppath}/%{org_name}-%{version}-root
39
40BuildRequires: alsa-lib-devel, ncurses-devel, gtk2-devel
41BuildRequires: libao-devel, libvorbis-devel, flac-devel, speex-devel
42BuildRequires: jack-audio-connection-kit-devel
43BuildRequires: desktop-file-utils
44BuildRequires: tcl-devel tk-devel
45BuildRequires: libuuid-devel
46## for ALSA
47#BuildRequires: glibc-kernheaders
48
49#BuildRequires: libogg-devel, libvorbis-devel
50#BuildRequires: Xaw3d-devel, gtk+-devel, tcl, tk
51
52#Requires: libvorbis, libogg, XOrg-libs, audiofile
53#Requires: Xaw3d, gtk+, glib, tcl, tk, slang, alsa-utils
54Requires: hicolor-icon-theme
55
56Requires(pre):  soundfont2
57Requires(post): /sbin/chkconfig, /sbin/service, /sbin/update-alternatives
58Requires(preun): /sbin/chkconfig, /sbin/service, /sbin/update-alternatives
59   
60## _Conflicts_ : TiMidity++
61Obsoletes: TiMidity++ < %{version}-%{release}
62Provides:  TiMidity++ = %{version}-%{release}
63## =========================
64
65Vendor:         Project Vine
66Distribution:   Vine Linux
67## Packager:    Hiroaki Irokawa <irorin@terra.dti.ne.jp>
68
69#--------------------------------------------------------------------
70%description
71
72  TiMidity has originally been a converter that converts MIDI files to WAV
73  audio file. But now TiMidity++ is not only a converter but also the
74  real-time player that can play a MIDI file in real time. TiMidity does
75  not requires external MIDI instrument module to play MIDI file, performs
76  with software power.
77
78  -Od8M -s11025 options will help you if bothered with noisy replay.
79
80  TiMidity++ uses GUS/patch (Glavis Ultrasound) as the voice data to
81  play.  You must get GUS/patch files, and make the configuration file.
82  You must make the configuration file (*.cfg).  By default,
83  timidity.cfg is /etc/timidity/timidity.cfg.
84  Take care if you wanna upgrade from older version.
85
86%description -l ja
87
88TiMidity++ は、もともとは MIDI -> WAV コンバータでしたが、
89今ではソフトウェア MIDI プレーヤとしての機能を持っています。
90MIDI 演奏用のハードウェアは必要ありません。
91
92CPU パワーの少ないマシンでは、-Od8M -s11025 オプションを
93付けると音飛びが防げるでしょう。
94
95=======================================================================
96このパッケージは TiMidity++ を ALSA のためのMIDIポートにする機能を含みます。
97root権限で /etc/init.d/alsa2midi status を確認してください。
98(不要なら停止しても問題ありません。任意にはstart/stopで制御できます)
99
100注:このパッケージはデスクトップ設定を含み、サウンドフォント(音色ファィル)
101必須の構成になっています
102
103※サウンドフォントについて
104
105演奏するためには、サウンドフォント(*.pat または *.sf2)をインストール、
106または入手し、timidity.cfg 設定ファイルを作成します。
107設定ファイルは、
108 /etc/timidity/timidity++.cfg
109 /etc/timidity/timidity.cfg@ --> /etc/update-alternatives/timidity.cfg
110……の順序で認識されますが、timidity++.cfg が存在すると timidity.cfg は
111読み込まれません。そこで、source 文を使って timidity.cfg をインクルード
112しています。
113このパッケージにはサンプルの timidity.Sample.cfg が含まれ、
114 /etc/timidity/timidity.cfg にリンクされています。
115※soundfonts2を提供するパッケージが必ず先にインストールされるはずなので、
116  update-alternativesのリストには出ますが、使用されません。
117
118あくまで参考ですが、共通の起動時オプションを設定する場合は、
119 timidity++.cfg に、サウンドフォントに固有の定義は timidity.cfg@ を
120活用すると良いかと思います。( timidity++.cfg の文末に source文を忘れずに)
121
122VineLinuxに用意した freepatsパッケージなどのサウンドフォントを使用する
123場合には、root権限で timidity.cfg のサウンドフォント定義を切替えられる
124ようにしています。
125
126rootコマンド
127  update-alternatives --config timidity.cfg
128
129※他は追加情報(timidity_add_text.txt)をご覧下さい
130
131#--------------------------------------------------------------------
132%prep
133%setup -q -n %{org_name}-%{version}
134#patch1 -p1
135#patch2 -p1
136#patch3 -p1
137#patch4 -p1
138#patch5 -p1
139#patch6 -p1
140#patch10 -p1
141
142cp -p %{SOURCE2} .
143iconv -f euc-jp -t utf8 README.ja > README.ja.utf8
144mv README.ja.utf8 README.ja
145
146%build
147export EXTRACFLAGS="$RPM_OPT_FLAGS -DCONFIG_FILE=\\\"/etc/timidity++.cfg\\\""
148# Note the first argument to --enable-audio is the default output, and
149# we use libao to get pulse output
150%configure \
151    --disable-dependency-tracking \
152    --with-module-dir=%{_libdir}/timidity++ \
153    --enable-interface=ncurses,vt100,alsaseq,server,network,gtk,tcltk \
154    --enable-dynamic=gtk,tcltk \
155    --enable-audio=ao,alsa,oss,jack,vorbis,speex,flac
156make %{?_smp_mflags}
157
158
159#  --enable-interface=ncurses,slang,tcltk,emacs,vt100,xskin,gtk,server,alsaseq,network,spectrogram \
160#  --enable-audio=${ENABLE_AUDIO}
161## --enable-audio=oss,alsa,arts,esd,ao,vorbis,speex,flac
162## remove ,xaw
163
164#--------------------------------------------------------------------
165%install
166rm -rf $RPM_BUILD_ROOT
167make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
168
169# add Japanese stuffs
170cd doc/ja_JP.eucJP
171mkdir -p $RPM_BUILD_ROOT%{_mandir}/ja/{man1,man5}
172iconv -f euc-jp -t utf8 timidity.1 > timidity.1.utf8
173iconv -f euc-jp -t utf8 timidity.cfg.5 > timidity.cfg.5.utf8
174install -m644 timidity.1.utf8 $RPM_BUILD_ROOT%{_mandir}/ja/man1/timidity.1
175install -m644 timidity.cfg.5.utf8 $RPM_BUILD_ROOT%{_mandir}/ja/man5/timidity.cfg.5
176
177iconv -f euc-jp -t utf8 README.alsaseq > README.alsaseq.ja
178iconv -f euc-jp -t utf8 README.dl      > README.dl.ja
179iconv -f euc-jp -t utf8 README.m2m     > README.m2m.ja
180iconv -f euc-jp -t utf8 README.mts     > README.mts.ja
181iconv -f euc-jp -t utf8 README.sf      > README.sf.ja
182iconv -f euc-jp -t utf8 README.tk      > README.tk.ja
183cd ../..
184
185# install .desktop
186mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
187desktop-file-install \
188    --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
189    %{SOURCE1}
190
191mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
192install -p -m 644 interface/pixmaps/timidity.xpm \
193    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/timidity.xpm
194
195# make symlink for Window Maker
196#cd $RPM_BUILD_ROOT%{_sharedstatedir}/pixmaps/
197#ln -s timidity/timidity.xpm .
198
199# MIDI port init.d for ALSA
200mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
201install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
202
203mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/timidity/
204install %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT/%{_sysconfdir}/timidity/
205
206%clean
207rm -rf $RPM_BUILD_ROOT
208#--------------------------------------------------------------------
209%post
210# update icon themes
211touch --no-create %{_datadir}/icons/hicolor || :
212if [ -x %{_bindir}/gtk-update-icon-cache ]; then
213    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
214fi
215if [ $1 -eq 1 ]; then
216    /sbin/chkconfig --add alsa2midi
217fi
218if [ $1 -eq 2 ]; then
219    /sbin/service alsa2midi condrestart >/dev/null 2>&1 || :
220fi
221# update-alternatives
222/sbin/update-alternatives --install \
223    %{_sysconfdir}/timidity/timidity.cfg timidity.cfg \
224    %{_sysconfdir}/timidity/timidity.Sample.cfg 1 \
225
226%preun
227# update-alternatives
228if [ $1 = 0 ]; then
229    /sbin/service alsa2midi stop >/dev/null 2>&1 || :
230    /sbin/chkconfig --del alsa2midi
231    /sbin/update-alternatives --remove \
232         timidity.cfg %{_sysconfdir}/timidity/timidity.Sample.cfg
233fi
234
235%postun
236# update icon themes
237touch --no-create %{_datadir}/icons/hicolor || :
238if [ -x %{_bindir}/gtk-update-icon-cache ]; then
239    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
240fi
241
242
243#--------------------------------------------------------------------
244%files
245%defattr(-,root,root)
246%doc AUTHORS COPYING README* NEWS ChangeLog* doc/C/FAQ
247%doc timidity_add_text.txt doc/ja_JP.eucJP/README*.ja
248%config(noreplace) %{_sysconfdir}/timidity/timidity*.cfg
249%{_sysconfdir}/init.d/*
250%{_bindir}/*
251%{_libdir}/timidity++
252%{_mandir}/*
253%{_datadir}/applications/timidity.desktop
254%{_datadir}/icons/hicolor/48x48/apps/timidity.xpm
255
256%changelog
257* Sun Sep 01 2019 Toshiaki Ara <ara_t@384.jp> 2.14-0-3
258- rebuild with ncurses-6.1
259
260* Mon Feb  2 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.14.0-2
261- added BR: libuuid-devel
262
263* Mon Feb  2 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.14.0-1
264- rebuilt on current VineSeed
265- updated SOURCE1
266- changed SOURCE2 encoding to UTF-8
267- fixed spec encoding to UTF-8 (BTS #2784)
268- rebuilt with tcl/tk 8.5
269                               
270* Wed Aug 29 2012 Yoji TOYODA 2.13.2-10
271- rebuild with VineSeed environment
272- add Patch10 (TiMidity++_tcltk.patch)
273
274* Thu Aug 18 2008 Seiichirou Babasaki 2.13.2-9
275- Updated specfile
276- included "Shu KONNO" x86_64 changes.
277
278* Sat Aug 09 2008 Shu KONNO <owa@bg.wakwak.com> 2.13.2-8 (x86_64)
279- changed %%{_libdir}/timidity to %%{_prefix}/lib/timidity
280
281* Thu Jul 1 2008 Seiichirou Babasaki 2.13.2-8
282- Updated specfile
283- "Obsoletes:" and "Provides:" option
284- Updated  timidity_add_text.txt
285
286* Wed Jun 11 2008 Seiichirou Babasaki 2.13.2-7
287- Updated specfile
288- Remove "flac" optin (Seed)
289- Build Requires : Emacs
290
291* Fri May 23 2008 Seiichirou Babasaki 2.13.2-6
292- Updated specfile
293- Packgage rename (TiMidity++ to TiMidity++4ALSA)
294- remove wishx.sh
295
296* Fri May 9 2008 Seiichirou Babasaki 2.13.2-5
297- Updated specfile
298- add  timidity++.cfg, dummy-cfg-file
299
300* Fri May 2 2008 Seiichirou Babasaki 2.13.2-4
301- Updated specfile
302- add alsa2midi /etc/init.d/ file
303- "update-alternatives" (Mandriva idea)
304
305* Fri Apr 18 2008 Seiichirou Babasaki 2.13.2-3
306- Updated specfile ( marge Seed-2.13.1)
307
308* Thu Apr 17 2008 Seiichirou Babasaki 2.13.2-2
309- Updated specfile ( soundable, gtk+ & tcltk interface )
310
311* Wed Apr 16 2008 Seiichirou Babasaki 2.13.2-1
312- Update source - Babasaki
313- Updated specfile (import FC9 )
314
315#--------------------------------------------------------------------
316* Thu Jul 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.13.0-0vl2
317- rebuilt with Xaw3d-1.5-17vl3
318- s/Copyright/License/
319- changed Group to Applications/Multimedia
320- updated build dependancy
321
322* Fri Apr 30 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
323- update
324
325* Fri Aug 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 2.11.3-0vl4
326- fix typo (ncurces -> ncurses) thanks Mr. Mickey_U
327
328* Fri Jul 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.11.3-0vl3
329- rebuilt with libvorbis-1.0
330
331* Thu Feb 14 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
332- [TiMidity++-2.11.3-0vl2]
333- fix %defattr
334- Add Requires: XFree86-libs, audiofile, Xaw3d, gtk+, glib, tcl, tk, lesstif, slang
335
336* Fri Jan 18 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
337- [TiMidity++-2.11.3-0vl1]
338- update.
339
340* Mon Jan 14 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
341- [TiMidity++-2.11.2-0vl2]
342- Add Requires: libvorbis, libogg
343- Add BuildPreReq: libogg-devel, libvorbis-devel
344
345* Sat Jan 12 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
346- [TiMidity++-2.11.2-0vl1]
347- update.
348
349* Mon Dec 31 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
350- [TiMidity++-2.11.1-0vl1]
351- update.
352
353* Thu Dec 27 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
354- [TiMidity++-2.11.0-0vl1]
355- update.
356
357* Thu Nov 22 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
358- [TiMidity++-2.10.4-0vl2]
359- Rebuilt(About Tcl/Tk).
360
361* Mon Mar 19 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
362  [TiMidity++-2.10.4-0vl1]
363- Updated to 2.10.4.
364
365* Sun Mar 11 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
366  [TiMidity++-2.10.3-0vl1]
367- Updated to 2.10.3.
368
369* Sat Mar 03 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
370- 2.10.2-0vl3
371- always require esound
372- disable alsa in case alsa driver/library is not installed
373
374* Thu Jan 13 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
375  [TiMidity++-2.10.2-0vl2]
376- Use some rpmmacros, Modified Compile Option & man5 data, tcl path.
377
378* Thu Nov  2 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
379  [TiMidity++-2.10.2-0vl1]
380- Updated to 2.10.2.
381
382* Sat Oct 18 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
383  [TiMidity++-2.10.1-0vl1]
384- Updated to 2.10.1.
385
386* Sat Sep 16 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
387  [TiMidity++-2.10.0-0vl3]
388- Updated to 2.10.0.(rebuild without alsa-lib)
389
390* Sat Sep  9 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
391  [TiMidity++-2.10.0-0vl2]
392- Updated to 2.10.0.(ja_JP.ujis -> ja)
393
394* Wed Sep  6 2000 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
395  [TiMidity++-2.10.0-0vl1]
396- Updated to 2.10.0.
397
398* Wed Oct  6 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
399  [TiMidity++-2.6.1-1]
400- Updated to 2.6.1.
401
402* Fri Sep 23 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
403  [TiMidity++-2.6.0-1]
404- Updated to the full release of version 2.6.0.
405- Include pixmaps.
406- Make symlink for Window Maker.
407
408* Fri Sep 11 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
409  [TiMidity++-2.6.0-0.4.0]
410- Updated to the 4th (maybe last?) beta release of version 2.6.0.
411
412* Fri Sep 11 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
413  [TiMidity++-2.6.0-0.3.1]
414- Enabled all the interfaces.
415
416* Fri Sep 11 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
417  [TiMidity++-2.6.0-0.3.0]
418- Updated to the 3rd beta release of version 2.6.0.
419- Added TiMidity.ad, TiMidity-uj.ad to install documents.
420
421* Fri Sep 03 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
422  [TiMidity++-2.6.0-0.2.2]
423- Updated to the 2nd beta release of version 2.6.0.
424
425* Mon Aug 23 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
426  [TiMidity++-2.5.0-1]
427- Updated to full release of version 2.5.0.
428- Modified to install Japanese manuals.
429
430* Mon Aug 23 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
431  [TiMidity++-2.4.1-1]
432- First attempt.
Note: See TracBrowser for help on using the repository browser.