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