1 |
supp |
18836 |
%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.11 |
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 |
|
|
BuildRequires: SDL-devel >= 1.2.10 |
16 |
|
|
BuildRequires: esound-devel |
17 |
|
|
BuildRequires: libmikmod-devel |
18 |
|
|
BuildRequires: oggvorbis-devel |
19 |
|
|
BuildRequires: libz-devel |
20 |
|
|
BuildRequires: nas-devel |
21 |
|
|
BuildRequires: smpeg-devel >= 0.4.3 |
22 |
|
|
BuildRequires: libflac-devel |
23 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
SDL_mixer is a sample multi-channel audio mixer library. It supports any |
27 |
|
|
number of simultaneously playing channels of 16 bit stereo audio, plus a |
28 |
|
|
single channel of music, mixed by the popular MikMod MOD, Timidity MIDI |
29 |
|
|
and SMPEG MP3 libraries. |
30 |
|
|
|
31 |
|
|
%package -n %{libname} |
32 |
|
|
Summary: Main library for %{name} |
33 |
|
|
Group: System/Libraries |
34 |
|
|
Obsoletes: %{_lib}SDL_mixer1.2_0 < 1.2.10 |
35 |
|
|
Provides: %{name} = %{version}-%{release} |
36 |
|
|
|
37 |
|
|
%description -n %{libname} |
38 |
|
|
This package contains the library needed to run programs dynamically |
39 |
|
|
linked with %{name}. |
40 |
|
|
|
41 |
|
|
%package -n %{develname} |
42 |
|
|
Summary: Headers for developing programs that will use %{name} |
43 |
|
|
Group: Development/C |
44 |
|
|
Requires: %{libname} = %{version}-%{release} |
45 |
|
|
Requires: SDL-devel |
46 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
47 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
48 |
|
|
Provides: %{name}%{apiver}-devel = %{version}-%{release} |
49 |
|
|
Obsoletes: %{_lib}SDL_mixer1.2-devel < 1.2.10 |
50 |
|
|
|
51 |
|
|
%description -n %{develname} |
52 |
|
|
This package contains the headers that programmers will need to develop |
53 |
|
|
applications which will use %{name}. |
54 |
|
|
|
55 |
|
|
%package -n %{name}-player |
56 |
|
|
Summary: Players using %{name} |
57 |
|
|
Group: System/Libraries |
58 |
|
|
Obsoletes: %{_lib}SDL_mixer-test < 1.2.10 |
59 |
|
|
Requires: %{libname} = %{version}-%{release} |
60 |
|
|
|
61 |
|
|
%description -n %{name}-player |
62 |
|
|
This package contains binary to test the associated library. |
63 |
|
|
|
64 |
|
|
%prep |
65 |
|
|
%setup -q |
66 |
|
|
|
67 |
|
|
%build |
68 |
|
|
%configure2_5x --enable-music-libmikmod=yes \ |
69 |
|
|
--enable-music-native-midi \ |
70 |
|
|
--disable-music-ogg-shared \ |
71 |
|
|
--disable-music-flac-shared \ |
72 |
|
|
--disable-music-mod-shared \ |
73 |
|
|
--disable-music-mp3-shared |
74 |
|
|
%make |
75 |
|
|
|
76 |
|
|
iconv -f ISO-8859-1 -t UTF-8 CHANGES > CHANGES.tmp |
77 |
|
|
touch -r CHANGES CHANGES.tmp |
78 |
|
|
mv CHANGES.tmp CHANGES |
79 |
|
|
|
80 |
|
|
%install |
81 |
|
|
rm -rf %{buildroot} |
82 |
|
|
%makeinstall_std install-bin |
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}/*a |
102 |
|
|
%{_libdir}/lib*.so |
103 |
|
|
%{_includedir}/SDL/* |
104 |
|
|
%{_libdir}/pkgconfig/%{name}.pc |
105 |
|
|
|
106 |
|
|
|