]> git.pld-linux.org Git - packages/playmidi.git/blob - playmidi.spec
- Removed 'awe_voice.h' from list of sources. Newer version of this
[packages/playmidi.git] / playmidi.spec
1 Summary: A MIDI sound file player.
2 Summary(pl): Odtwarzacz plików MIDI.
3 Name: playmidi
4 Version: 2.4
5 Release: 8
6 Source: ftp://ftp.linpeople.org/pub/People/nathan/playmidi-2.4.tar.gz
7 Copyright: GPL
8 Group: Applications/Sound
9 Group(pl): Aplikacje/D¼wiêk
10 Patch0: playmidi-2.3-hertz.patch
11 Patch1: playmidi-2.4-make.patch
12 Patch2: playmidi-2.4-midimap.patch
13 Patch3: playmidi-2.4-glibconfig.patch
14 BuildRoot: /var/tmp/playmidi-root
15
16 %package X11
17 Summary: An X Window System based MIDI sound file player.
18 Summary(pl): Odtwarzacz plików MIDI dla systemu X Window
19 Requires: playmidi = 2.4
20 Group: Applications/Multimedia
21 Group(pl): Aplikacje/D¼wiêk
22
23 %package svga
24 Summary: An SVGAlib based MIDI sound file player.
25 Summary(pl): Odtwarzacz plików MIDI wykorzystuj±cy SVGAlib.
26 Requires: playmidi = 2.4
27 Group: Applications/Multimedia
28 Group(pl): Aplikacje/D¼wiêk
29 ExclusiveArch: %ix86
30
31 %description
32 Playmidi plays MIDI (Musicial Instrument Digital Interface) sound
33 files through a sound card synthesizer.  This package includes basic
34 drum samples for use with simple FM synthesizers.
35
36 Install playmidi if you want to play MIDI files using your computer's
37 sound card.
38
39 %description -l pl
40 Playmidi odtwarza pliki MIDI poprzez syntetyzer karty d¼wiêkowej.
41 Pakiet zawiera podstawowe instrumenty perkusyjne do wykorzystania z
42 prostymi syntetyzerami FM.
43
44 %description X11
45 Playmidi-X11 provides an X Window System interface for playing MIDI
46 (Musical Instrument Digital Interface) sound files through a sound
47 card synthesizer.
48
49 Install playmidi-X11 if you want to use an X interface to play MIDI
50 sound files using your computer's sound card.
51
52 %description X11 -l pl
53 Playmidi-X11 dostarcza interfejs opary o system X Window umo¿liwiaj±cy
54 odtwarzanie plików MIDI poprzez kartê d¼wiêkow±.
55
56 %description svga
57 Playmidi-svga provides an SVGAlib interface for playing MIDI (Musical
58 Instrument Digital Interface) sound files through a sound card
59 synthesizer.
60
61 Install playmidi-svga if you want to use an SVGAlib interface to play
62 MIDI sound files using your computer's sound card.
63
64 %description svga -l pl
65 Playmidi-svga dostarcza interfejs oparty o SVGAlib umo¿liwiaj±cy
66 odtwarzanie plików MIDI poprzez kartê d¼wiêkow±.
67
68 %prep
69 %setup -q
70 # awe_voice.h is now part of the kernel source.
71 rm awe_voice.h
72 %patch0 -p1 -b .consthertz
73 %patch1 -p1 -b .make
74 %patch2 -p1 -b .midimap
75 %patch3 -p1 -b .glibconfig
76 %build
77 PATH=.:$PATH
78
79 %ifarch %ix86
80 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" playmidi splaymidi xplaymidi <<EOF
81 2
82 EOF
83 %else
84 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" playmidi xplaymidi <<EOF
85 2
86 EOF
87 %endif
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 mkdir -p $RPM_BUILD_ROOT/etc/{midi}
92 mkdir -p $RPM_BUILD_ROOT/usr/{bin,X11R6/bin,X11R6/lib/X11/app-defaults}
93 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
94
95 install -s -m 755 playmidi $RPM_BUILD_ROOT/usr/bin
96 install -s -m 755 xplaymidi $RPM_BUILD_ROOT/usr/X11R6/bin
97 install -m 644 XPlaymidi.ad $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults/XPlaymidi
98
99 %ifarch %ix86
100 install -s -m 755 splaymidi $RPM_BUILD_ROOT/usr/bin
101 %endif
102
103 install -m 644 playmidi.1 $RPM_BUILD_ROOT%{_mandir}/man1
104 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/*\
105         BUGS COPYING QuickStart
106
107 mkdir -p $RPM_BUILD_ROOT/etc/midi
108 for n in std.o3 drums.o3 std.sb drums.sb
109 do
110         install -m 644 $n $RPM_BUILD_ROOT/etc/midi/$n
111 done
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files
117 %defattr(644,root,root,755)
118 %doc {QuickStart,COPYING,BUGS}.gz
119 /usr/bin/playmidi 
120 %config /etc/midi/std.o3
121 %config /etc/midi/std.sb
122 %config /etc/midi/drums.o3
123 %config /etc/midi/drums.sb
124 %{_mandir}/man1/playmidi.1.gz
125
126 %files X11
127 %defattr(644,root,root,755)
128 %config /usr/X11R6/lib/X11/app-defaults/XPlaymidi
129 /usr/X11R6/bin/xplaymidi
130
131 %files svga
132 %defattr(644,root,root,755)
133 %attr(4644,root,root)/usr/bin/splaymidi
This page took 0.08703 seconds and 3 git commands to generate.