]> git.pld-linux.org Git - packages/playmidi.git/blob - playmidi.spec
- next typo (#$!).
[packages/playmidi.git] / playmidi.spec
1 Summary:        A MIDI sound file player
2 Summary(de):    Zum Abspielen von midi-Dateien auf FM-, GUS- und MIDI-Geräten
3 Summary(fr):    Joue des fichiers midi sur des périphériques FM, GUS et MIDI
4 Summary(pl):    Odtwarzacz plików MIDI
5 Summary(tr):    FM, GUS ve MIDI aygýtlarý üzerindeki midi dosyalarýný çalar
6 Name:           playmidi
7 Version:        2.4
8 Release:        9
9 License:        GPL
10 Group:          Applications/Sound
11 Group(pl):      Aplikacje/D¼wiêk
12 Source:         ftp://ftp.linpeople.org/pub/People/nathan/%{name}-%{version}.tar.gz
13 Patch0:         playmidi-hertz.patch
14 Patch1:         playmidi-make.patch
15 Patch2:         playmidi-midimap.patch
16 Patch3:         playmidi-glibconfig.patch
17 BuildRequires:  ncurses-devel >= 5.0
18 BuildRequires:  XFree86-devel
19 %ifarch %ix86
20 BuildRequires:  svgalib
21 %endif
22 BuildRoot:      /tmp/%{name}-%{version}-root
23
24 %define         _sysconfdir     /etc/midi
25
26 %description
27 Playmidi plays MIDI (Musicial Instrument Digital Interface) sound files
28 through a sound card synthesizer. This package includes basic drum samples
29 for use with simple FM synthesizers. Install playmidi if you want to play
30 MIDI files using your computer's sound card.
31
32 %description -l de
33 Spielt MIDI-Sounddateien über einen Soundkarten-Synthesizer ab. Enthält
34 einfache Schlagzeug-Samples für einfache FM-Synthesizer.
35
36 %description -l fr
37 Programme X pour jouer des fichiers MIDI par le synthétiseur d'une carte
38 son. Il contient des exemples de batterie de base pour les synthétiseurs FM
39 simples.
40
41 %description -l pl
42 Playmidi odtwarza pliki MIDI poprzez syntetyzer karty d¼wiêkowej. Pakiet
43 zawiera podstawowe instrumenty perkusyjne do wykorzystania z prostymi
44 syntetyzerami FM.
45
46 %description -l tr
47 Bir ses kartýnýn ses birleþtiricisi aracýlýðýyla MIDI ses dosyalarýný çalar.
48 FM ses birleþtirici ile kullaným için ana davul sesi örneklerý içerir.
49
50 %package X11
51 Summary:        An X Window System based MIDI sound file player.
52 Summary(de):    X-Windows-Schnittstelle für den MIDI-Soundplayer
53 Summary(pl):    Odtwarzacz plików MIDI dla systemu X Window
54 Summary(tr):    MIDI ses çalýcý için X arayüzü
55 Group:          Applications/Multimedia
56 Group(pl):      X11/Aplikacje/Multimedia
57 Requires:       %{name} = %{version}
58
59 %description X11
60 Playmidi-X11 provides an X Window System interface for playing MIDI
61 (Musical Instrument Digital Interface) sound files through a sound card
62 synthesizer. Install playmidi-X11 if you want to use an X interface to
63 play MIDI sound files using your computer's sound card.
64
65 %description -l de X11
66 X-Programm zum Abspielen von MIDI-Sounddateien über einen Soundkarten-
67 Synthesizer. Enthält einfache Schlagzeug-Samples für einfache
68 FM-Synthesizers.
69
70 %description -l fr X11
71 Programme X pour jouer des fichiers MIDI par le synthétiseur d'une carte
72 son. Il contient des exemples de batterie de base pour les synthétiseurs FM
73 simples.
74
75 %description -l pl X11
76 Playmidi-X11 dostarcza interfejs opary o system X Window umo¿liwiaj±cy
77 odtwarzanie plików MIDI poprzez kartê d¼wiêkow±.
78
79 %description -l tr X11
80 MIDI ses dosyalarýný çalan playmidi uygulamasýnýn X arayüzü.
81
82 %package svga
83 Summary:        An SVGAlib based MIDI sound file player.
84 Summary(pl):    Odtwarzacz plików MIDI wykorzystuj±cy SVGAlib.
85 Group:          Applications/Multimedia
86 Group(pl):      X11/Aplikacje/Multimedia
87 Requires:       %{name} = %{version}
88
89 %description svga
90 Playmidi-svga provides an SVGAlib interface for playing MIDI (Musical
91 Instrument Digital Interface) sound files through a sound card synthesizer.
92 Install playmidi-svga if you want to use an SVGAlib interface to play MIDI
93 sound files using your computer's sound card.
94
95 %description -l pl svga
96 Playmidi-svga dostarcza interfejs oparty o SVGAlib umo¿liwiaj±cy
97 odtwarzanie plików MIDI poprzez kartê d¼wiêkow±.
98
99 %prep
100 %setup -q
101 # awe_voice.h is now part of the kernel source.
102 rm awe_voice.h
103 %patch0 -p1
104 %patch1 -p1
105 %patch2 -p1
106 %patch3 -p1
107
108 %build
109 #PATH=.:$PATH
110
111 %ifarch %ix86
112 make playmidi splaymidi xplaymidi <<EOF
113 2
114 EOF
115 %else
116 make playmidi xplaymidi <<EOF
117 2
118 EOF
119 %endif
120
121 %install
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1} \
124         $RPM_BUILD_ROOT{%{_bindir},/usr/X11R6/{bin,lib/X11/app-defaults}}
125
126 install -s playmidi $RPM_BUILD_ROOT%{_bindir}
127 install -s xplaymidi $RPM_BUILD_ROOT/usr/X11R6/bin
128 install XPlaymidi.ad $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults/XPlaymidi
129
130 %ifarch %ix86
131 install -s splaymidi $RPM_BUILD_ROOT%{_bindir}
132 %endif
133
134 install playmidi.1 $RPM_BUILD_ROOT%{_mandir}/man1
135 echo ".so playmidi.1" > $RPM_BUILD_ROOT%{_mandir}/man1/splaymidi.1
136
137 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/*\
138         BUGS QuickStart
139
140 install -d $RPM_BUILD_ROOT%{_sysconfdir}
141 install std.o3 drums.o3 std.sb drums.sb $RPM_BUILD_ROOT%{_sysconfdir}
142
143 %clean
144 rm -rf $RPM_BUILD_ROOT
145
146 %files
147 %defattr(644,root,root,755)
148 %doc *.gz
149 %attr(755,root,root) %{_bindir}/playmidi
150 %dir %{_sysconfdir}
151 %config %{_sysconfdir}/std.o3
152 %config %{_sysconfdir}/std.sb
153 %config %{_sysconfdir}/drums.o3
154 %config %{_sysconfdir}/drums.sb
155 %{_mandir}/man1/playmidi.1*
156
157 %files X11
158 %defattr(644,root,root,755)
159 %config /usr/X11R6/lib/X11/app-defaults/XPlaymidi
160 %attr(755,root,root) /usr/X11R6/bin/xplaymidi
161
162 %ifarch %ix86
163
164 %files svga
165 %defattr(644,root,root,755)
166 %attr(4755,root,root) %{_bindir}/splaymidi
167 %{_mandir}/man1/splaymidi.1*
168
169 %endif
This page took 0.103536 seconds and 4 git commands to generate.