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 |
|
|
|
6 |
akien |
1187235 |
Summary: Simple DirectMedia Layer - mixer |
7 |
|
|
Name: SDL_mixer |
8 |
|
|
Version: 1.2.12 |
9 |
wally |
1909284 |
Release: %mkrel 19 |
10 |
akien |
1187235 |
License: zlib |
11 |
|
|
Group: System/Libraries |
12 |
|
|
URL: https://www.libsdl.org/projects/SDL_mixer/release-1.2.html |
13 |
|
|
Source0: https://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz |
14 |
|
|
|
15 |
colin |
392738 |
# (cg) Fixes from fedora rhbz#841322 |
16 |
|
|
Patch1: SDL_mixer-MikMod-1.patch |
17 |
|
|
Patch2: SDL_mixer-MikMod-2.patch |
18 |
wally |
1642433 |
Patch3: SDL_mixer-autoconf.patch |
19 |
akien |
1187235 |
BuildRequires: pkgconfig(flac) |
20 |
akien |
1187239 |
BuildRequires: pkgconfig(fluidsynth) |
21 |
akien |
1187235 |
BuildRequires: pkgconfig(libmikmod) |
22 |
|
|
BuildRequires: pkgconfig(sdl) >= 1.2.10 |
23 |
|
|
BuildRequires: pkgconfig(vorbis) |
24 |
|
|
BuildRequires: pkgconfig(zlib) |
25 |
akien |
1187239 |
BuildRequires: smpeg-devel |
26 |
akien |
1187235 |
|
27 |
supp |
18836 |
%description |
28 |
|
|
SDL_mixer is a sample multi-channel audio mixer library. It supports any |
29 |
|
|
number of simultaneously playing channels of 16 bit stereo audio, plus a |
30 |
|
|
single channel of music, mixed by the popular MikMod MOD, Timidity MIDI |
31 |
|
|
and SMPEG MP3 libraries. |
32 |
|
|
|
33 |
|
|
%package -n %{libname} |
34 |
akien |
1187235 |
Summary: Main library for %{name} |
35 |
|
|
Group: System/Libraries |
36 |
|
|
Provides: %{name} = %{version}-%{release} |
37 |
supp |
18836 |
|
38 |
|
|
%description -n %{libname} |
39 |
|
|
This package contains the library needed to run programs dynamically |
40 |
|
|
linked with %{name}. |
41 |
|
|
|
42 |
|
|
%package -n %{develname} |
43 |
akien |
1187235 |
Summary: Headers for developing programs that will use %{name} |
44 |
|
|
Group: Development/C |
45 |
|
|
Requires: %{libname} = %{version}-%{release} |
46 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
47 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
48 |
|
|
Provides: %{name}%{apiver}-devel = %{version}-%{release} |
49 |
supp |
18836 |
|
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 |
akien |
1187239 |
Summary: Sound players using %{name} |
56 |
akien |
1187235 |
Group: System/Libraries |
57 |
supp |
18836 |
|
58 |
|
|
%description -n %{name}-player |
59 |
|
|
This package contains binary to test the associated library. |
60 |
|
|
|
61 |
|
|
%prep |
62 |
|
|
%setup -q |
63 |
ovitters |
1579730 |
%autopatch -p1 |
64 |
supp |
18836 |
|
65 |
|
|
%build |
66 |
pterjan |
1237288 |
# Needed to learn about aarch64 |
67 |
|
|
autoreconf -fiv |
68 |
|
|
|
69 |
akien |
1187239 |
# (akien) music-*-shared enables dlopen'ing of shared libraries to avoid |
70 |
|
|
# hard dependencies. But for a distro package, we want hard dependencies |
71 |
|
|
# so that packages using SDL_mixer get the proper deps out of the box. |
72 |
|
|
# If some of those are too much, we could dlopen more exotic ones (flac, |
73 |
|
|
# fluidsynth, smpeg). |
74 |
wally |
1480479 |
%configure \ |
75 |
akien |
1187235 |
--disable-static \ |
76 |
|
|
--disable-music-flac-shared \ |
77 |
akien |
1187239 |
--disable-music-fluidsynth-shared \ |
78 |
akien |
1187235 |
--disable-music-mod-shared \ |
79 |
akien |
1187239 |
--disable-music-mp3-shared \ |
80 |
|
|
--disable-music-ogg-shared |
81 |
akien |
1187235 |
%make_build |
82 |
supp |
18836 |
|
83 |
|
|
iconv -f ISO-8859-1 -t UTF-8 CHANGES > CHANGES.tmp |
84 |
|
|
touch -r CHANGES CHANGES.tmp |
85 |
|
|
mv CHANGES.tmp CHANGES |
86 |
|
|
|
87 |
|
|
%install |
88 |
akien |
1187235 |
%make_install install-bin |
89 |
supp |
18836 |
|
90 |
daviddavid |
1357000 |
find %{buildroot} -name '*.la' -delete |
91 |
fwang |
142655 |
|
92 |
supp |
18836 |
%files -n %{name}-player |
93 |
|
|
%doc README |
94 |
|
|
%{_bindir}/playwave |
95 |
|
|
%{_bindir}/playmus |
96 |
|
|
|
97 |
|
|
%files -n %{libname} |
98 |
|
|
%doc timidity/FAQ timidity/README |
99 |
akien |
1187235 |
%{_libdir}/lib%{name}-%{apiver}.so.%{major}{,.*} |
100 |
supp |
18836 |
|
101 |
|
|
%files -n %{develname} |
102 |
|
|
%doc README CHANGES |
103 |
akien |
1187235 |
%{_libdir}/lib%{name}.so |
104 |
|
|
%{_includedir}/SDL/%{name}.h |
105 |
supp |
18836 |
%{_libdir}/pkgconfig/%{name}.pc |