SDL_mixer.spec.in
changeset 38 d6f9745b780b
child 40 e8c2428f4492
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/SDL_mixer.spec.in	Thu Jan 20 05:44:29 2000 +0000
     1.3 @@ -0,0 +1,68 @@
     1.4 +%define name @PACKAGE@
     1.5 +%define version @VERSION@
     1.6 +%define release 1
     1.7 +
     1.8 +Summary: Simple DirectMedia Layer - Sample Mixer Library
     1.9 +Name: %{name}
    1.10 +Version: %{version}
    1.11 +Release: %{release}
    1.12 +Source0: %{name}-%{version}.tar.gz
    1.13 +Copyright: LGPL
    1.14 +Group: System Environment/Libraries
    1.15 +BuildRoot: /var/tmp/%{name}-buildroot
    1.16 +Prefix: %{_prefix}
    1.17 +BuildRequires: SDL-devel
    1.18 +
    1.19 +%description
    1.20 +Due to popular demand, here is a simple multi-channel audio mixer.
    1.21 +It supports 4 channels of 16 bit stereo audio, plus a single channel
    1.22 +of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
    1.23 +libraries.
    1.24 +
    1.25 +%package devel
    1.26 +Summary: Libraries, includes and more to develop SDL applications.
    1.27 +Group: Development/Libraries
    1.28 +Requires: %{name}
    1.29 +Requires: SDL-devel
    1.30 +
    1.31 +%description devel
    1.32 +Due to popular demand, here is a simple multi-channel audio mixer.
    1.33 +It supports 4 channels of 16 bit stereo audio, plus a single channel
    1.34 +of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
    1.35 +libraries.
    1.36 +
    1.37 +%prep
    1.38 +%setup 
    1.39 +
    1.40 +%build
    1.41 +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
    1.42 +uname -a |grep -qi SMP && make -j2 || make
    1.43 +
    1.44 +%install
    1.45 +rm -rf $RPM_BUILD_ROOT
    1.46 +make install prefix=$RPM_BUILD_ROOT/%{prefix}
    1.47 +
    1.48 +%clean
    1.49 +rm -rf $RPM_BUILD_ROOT
    1.50 +
    1.51 +%files
    1.52 +%defattr(-,root,root)
    1.53 +%doc README COPYING
    1.54 +%doc mikmod/AUTHORS mikmod/README mikmod/COPYING.LESSER
    1.55 +%doc timidity/FAQ timidity/README
    1.56 +%{prefix}/bin/playmus
    1.57 +%{prefix}/bin/playwave
    1.58 +%{prefix}/lib/lib*.so.*
    1.59 +%{prefix}/lib/lib*.so
    1.60 +
    1.61 +%files devel
    1.62 +%defattr(-,root,root)
    1.63 +%{prefix}/lib/*a
    1.64 +%{prefix}/include/SDL/
    1.65 +
    1.66 +%changelog
    1.67 +* Wed Jan 19 2000 Sam Lantinga 
    1.68 +- converted to get package information from configure
    1.69 +* Sun Jan 16 2000 Hakan Tandogan <hakan@iconsult.com>
    1.70 +- initial spec file
    1.71 +