%define name playmidi %define version 2.4 %define release 21mdk Summary: A MIDI sound file player. Name: %{name} Version: %{version} Release: %{release} Source0: ftp://ftp.linpeople.org/pub/People/nathan/playmidi-2.4.tar.bz2 URL: http://playmidi.openprojects.net/ Source1: awe_voice.h License: GPL Group: Sound Patch0: playmidi-2.3-hertz.patch.bz2 Patch1: playmidi-2.3-awe2.patch.bz2 Patch2: playmidi-2.4-make.patch.bz2 Patch3: playmidi-2.4-midimap.patch.bz2 BuildRequires: gpm-devel ncurses-devel XFree86-devel BuildRoot: %{_tmppath}/%{name}-root %package X11 Summary: An X Window System based MIDI sound file player. Requires: %{name} = %{version} Group: Sound %description Playmidi plays MIDI (Musicial Instrument Digital Interface) sound files through a sound card synthesizer. This package includes basic drum samples for use with simple FM synthesizers. Install playmidi if you want to play MIDI files using your computer's sound card. %description X11 Playmidi-X11 provides an X Window System interface for playing MIDI (Musical Instrument Digital Interface) sound files through a sound card synthesizer. This package includes basic drum samples for use with simple FM synthesizers. Install playmidi-X11 if you want to use an X interface to play MIDI sound files using your computer's sound card. %prep %setup -q cp %{SOURCE0} . %patch0 -p1 -b .consthertz %patch1 -p1 -b .awe2 %patch2 -p1 -b .make %patch3 -p1 -b .midimap ./Configure << EOF 2 EOF %build PATH=.:$PATH make playmidi make xplaymidi %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/midi mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults install -s -m 755 playmidi $RPM_BUILD_ROOT%{_bindir} install -s -m 755 xplaymidi $RPM_BUILD_ROOT/usr/X11R6/bin install -m 644 XPlaymidi.ad $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults/XPlaymidi install -m 644 playmidi.1 $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT/etc/midi for n in std.o3 drums.o3 std.sb drums.sb do install -m 644 $n $RPM_BUILD_ROOT/etc/midi/$n done %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc QuickStart COPYING BUGS %{_bindir}/playmidi %config(noreplace) /etc/midi/std.o3 %config(noreplace) /etc/midi/std.sb %config(noreplace) /etc/midi/drums.o3 %config(noreplace) /etc/midi/drums.sb %{_mandir}/man1/playmidi.1.bz2 %files X11 %defattr(-,root,root) %doc QuickStart COPYING BUGS /usr/X11R6/lib/X11/app-defaults/XPlaymidi /usr/X11R6/bin/xplaymidi %changelog * Thu Nov 22 2001 Yves Duret <yduret@mandrakesoft.com> 2.4-21mdk - fix url tag missing * Wed Jul 11 2001 Yves Duret <ydret@mandrakesoft.com> 2.4-20mdk - sanitized spec file : macros, s/Copy/lic/ .. * Sun Dec 24 2000 Yves Duret <yduret@mandrakesoft.com> 2.4-19mdk - %%doc missing - removed bz2 lines for man pages * Thu Dec 21 2000 Yves Duret <yduret@mandrakesoft.com> 2.4-18mdk - added %%config(noreplace) * Sun Dec 17 2000 Yves Duret <yduret@mandrakesoft.com> 2.4-17mdk - macroization * Mon Sep 25 2000 Maurizio De Cecco <maurizio@mandrakesoft.com> 2.4-16mdk - Resource file not a config file anymore. * Mon Aug 09 2000 Maurizio De Cecco <maurizio@mandrakesoft.com> 2.4-15mdk - Added macros for mandir and bindir. * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4-14mdk - automatically added BuildRequires * Tue Apr 11 2000 Maurizio De Cecco <maurizio@mandrakesoft.com> - Fixed Distribution name * Thu Apr 10 2000 Maurizio De Cecco <maurizio@mandrakesoft.com> - Fixed error in the new Group structure * Thu Mar 16 2000 Maurizio De Cecco <maurizio@mandrakesoft.com> - Adapted to the new Group structure * Wed Nov 17 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Don't ship splaymidi(r). * Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> - Mandrake adaptions * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 7) * Tue Feb 23 1999 Bill Nottingham <notting@redhat.com> - wmconfig goes away * Mon Dec 28 1998 Bill Nottingham <notting@redhat.com> - build against glibc-2.1 * Mon Nov 23 1998 Bill Nottingham <notting@redhat.com> - oops. We broke FM synth. Fixed. * Sat Oct 10 1998 Cristian Gafton <gafton@redhat.com> - strip binaries - updated to version 2.4 * Wed Sep 9 1998 Bill Nottingham <notting@redhat.com> - added AWE32 support * Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com> - build root - sound font data in /etc/midi * Thu May 07 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr * Wed Apr 15 1998 Erik Troan <ewt@redhat.com> - built against new ncurses * Tue Oct 21 1997 Otto Hammersmith <otto@redhat.com> - added wmconfig entries * Mon Jul 21 1997 Erik Troan <ewt@redhat.com> - built against glibc