1 |
%define major 0 |
2 |
%define apiver 1.2 |
3 |
%define libname %mklibname %{name} %{apiver} %{major} |
4 |
%define develname %mklibname %{name} -d |
5 |
%define version 1.2.12 |
6 |
|
7 |
Summary: Simple DirectMedia Layer - mixer |
8 |
Name: SDL_mixer |
9 |
Version: %{version} |
10 |
Release: %mkrel 1 |
11 |
License: LGPLv2+ |
12 |
Group: System/Libraries |
13 |
URL: http://www.libsdl.org/projects/SDL_mixer/ |
14 |
Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz |
15 |
Patch0: SDL_mixer-1.2.11-mga-uninit-var-fix.patch |
16 |
BuildRequires: SDL-devel >= 1.2.10 |
17 |
BuildRequires: libmikmod-devel |
18 |
BuildRequires: libvorbis-devel |
19 |
BuildRequires: libz-devel |
20 |
BuildRequires: libflac-devel |
21 |
|
22 |
%description |
23 |
SDL_mixer is a sample multi-channel audio mixer library. It supports any |
24 |
number of simultaneously playing channels of 16 bit stereo audio, plus a |
25 |
single channel of music, mixed by the popular MikMod MOD, Timidity MIDI |
26 |
and SMPEG MP3 libraries. |
27 |
|
28 |
%package -n %{libname} |
29 |
Summary: Main library for %{name} |
30 |
Group: System/Libraries |
31 |
Obsoletes: %{_lib}SDL_mixer1.2_0 < 1.2.10 |
32 |
Provides: %{name} = %{version}-%{release} |
33 |
|
34 |
%description -n %{libname} |
35 |
This package contains the library needed to run programs dynamically |
36 |
linked with %{name}. |
37 |
|
38 |
%package -n %{develname} |
39 |
Summary: Headers for developing programs that will use %{name} |
40 |
Group: Development/C |
41 |
Requires: %{libname} = %{version}-%{release} |
42 |
Requires: SDL-devel |
43 |
Provides: %{name}-devel = %{version}-%{release} |
44 |
Provides: lib%{name}-devel = %{version}-%{release} |
45 |
Provides: %{name}%{apiver}-devel = %{version}-%{release} |
46 |
Obsoletes: %{_lib}SDL_mixer1.2-devel < 1.2.10 |
47 |
|
48 |
%description -n %{develname} |
49 |
This package contains the headers that programmers will need to develop |
50 |
applications which will use %{name}. |
51 |
|
52 |
%package -n %{name}-player |
53 |
Summary: Players using %{name} |
54 |
Group: System/Libraries |
55 |
Obsoletes: %{_lib}SDL_mixer-test < 1.2.10 |
56 |
Requires: %{libname} = %{version}-%{release} |
57 |
|
58 |
%description -n %{name}-player |
59 |
This package contains binary to test the associated library. |
60 |
|
61 |
%prep |
62 |
%setup -q |
63 |
#patch0 -p1 |
64 |
|
65 |
%build |
66 |
%configure2_5x --disable-static --enable-music-mod \ |
67 |
--enable-music-native-midi \ |
68 |
--disable-music-ogg-shared \ |
69 |
--disable-music-flac-shared \ |
70 |
--disable-music-mod-shared \ |
71 |
--disable-music-mp3-shared |
72 |
%make |
73 |
|
74 |
iconv -f ISO-8859-1 -t UTF-8 CHANGES > CHANGES.tmp |
75 |
touch -r CHANGES CHANGES.tmp |
76 |
mv CHANGES.tmp CHANGES |
77 |
|
78 |
%install |
79 |
rm -rf %{buildroot} |
80 |
%makeinstall_std install-bin |
81 |
|
82 |
rm -f %buildroot%_libdir/*.la |
83 |
|
84 |
%clean |
85 |
rm -rf %{buildroot} |
86 |
|
87 |
%files -n %{name}-player |
88 |
%defattr(-, root, root) |
89 |
%doc README |
90 |
%{_bindir}/playwave |
91 |
%{_bindir}/playmus |
92 |
|
93 |
%files -n %{libname} |
94 |
%defattr(-,root,root) |
95 |
%doc timidity/FAQ timidity/README |
96 |
%{_libdir}/lib*%{apiver}.so.%{major}* |
97 |
|
98 |
%files -n %{develname} |
99 |
%defattr(-,root,root) |
100 |
%doc README CHANGES |
101 |
%{_libdir}/lib*.so |
102 |
%{_includedir}/SDL/* |
103 |
%{_libdir}/pkgconfig/%{name}.pc |