1%define name SDL2_mixer
2%define version @VERSION@
3%define release 1
4
5Summary: Simple DirectMedia Layer - Sample Mixer Library
6Name: %{name}
7Version: %{version}
8Release: %{release}
9Source0: %{name}-%{version}.tar.gz
10License: LGPL
11Group: System Environment/Libraries
12BuildRoot: /var/tmp/%{name}-buildroot
13Prefix: %{_prefix}
14
15%description
16Due to popular demand, here is a simple multi-channel audio mixer.
17It supports 4 channels of 16 bit stereo audio, plus a single channel
18of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis,
19Tremor, libmpg123 and libmad MP3 libraries.
20
21%package devel
22Summary: Libraries, includes and more to develop SDL applications.
23Group: Development/Libraries
24Requires: %{name}
25
26%description devel
27Due to popular demand, here is a simple multi-channel audio mixer.
28It supports 4 channels of 16 bit stereo audio, plus a single channel
29of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis,
30Tremor, libmpg123 and libmad MP3 libraries.
31
32%prep
33%setup
34
35%build
36CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
37make
38
39%install
40rm -rf $RPM_BUILD_ROOT
41make install prefix=$RPM_BUILD_ROOT/%{prefix}
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(-,root,root)
48%doc README.txt CHANGES.txt COPYING.txt
49%{prefix}/lib/lib*.so.*
50
51%files devel
52%defattr(-,root,root)
53%{prefix}/lib/lib*.a
54%{prefix}/lib/lib*.la
55%{prefix}/lib/lib*.so
56%{prefix}/include/*/
57%{prefix}/lib/pkgconfig/*.pc
58
59%changelog
60* Wed Jan 19 2000 Sam Lantinga
61- converted to get package information from configure
62* Sun Jan 16 2000 Hakan Tandogan <hakan@iconsult.com>
63- initial spec file
64
65