3 %bcond_with modplug # use modplug for MOD support (mikmod is used by default)
5 # NOTE: libraries dlopened by sonames detected at build time:
12 Summary: Simple DirectMedia Layer - Sample Mixer Library
13 Summary(pl.UTF-8): Simple DirectMedia Layer - biblioteka miksująca próbki dźwiękowe
14 Summary(pt_BR.UTF-8): SDL - Biblioteca para mixagem
20 Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
21 # Source0-md5: e03ff73d77a55e3572ad0217131dc4a1
22 Patch0: %{name}-timidity_cfg.patch
23 Patch1: %{name}-acfix.patch
24 Patch2: %{name}-link.patch
25 URL: http://www.libsdl.org/projects/SDL_mixer/release-1.2.html
26 BuildRequires: SDL-devel >= 1.2.10
27 BuildRequires: autoconf
28 BuildRequires: automake
29 BuildRequires: flac-devel >= 1.2.0
30 BuildRequires: fluidsynth-devel
31 BuildRequires: libtool >= 2:2.0
32 BuildRequires: libmikmod-devel >= 3.1.10
33 %{?with_modplug:BuildRequires: libmodplug-devel >= 0.8.7}
34 BuildRequires: libvorbis-devel >= 1:1.0
35 BuildRequires: smpeg-devel >= 0.4.4-11
36 Requires: SDL >= 1.2.10
37 %{?with_modplug:Suggests: libmodplug >= 0.8.7}
38 Obsoletes: libSDL_mixer1.2
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Due to popular demand, here is a simple multi-channel audio mixer. It
43 supports 4 channels of 16 bit stereo audio, plus a single channel of
44 music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
47 %description -l pl.UTF-8
48 SDL_mixer to prosty wielokanałowy mikser audio. Obsługuje 4 kanały
49 16-bitowego dźwięku stereo plus jeden kanał dla muzyki miksowanej
50 przez popularne biblioteki MikMod MOD, Timitity MIDI i SMPEG MP3.
52 %description -l pt_BR.UTF-8
53 Biblioteca que suporta 4 canais de áudio estéreo 16 bit, mais um canal
54 de música, mixado pelo populares bibliotecas MOD MikMod, MIDI timidity
58 Summary: Header files and more to develop SDL_mixer applications
59 Summary(pl.UTF-8): Pliki nagłówkowe do rozwoju aplikacji używających biblioteki SDL_mixer
60 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 Requires: SDL-devel >= 1.2.10
64 Obsoletes: libSDL_mixer1.2-devel
67 Header files and more to develop SDL_mixer applications.
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe do rozwoju aplikacji używających biblioteki
73 %description devel -l pt_BR.UTF-8
74 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
78 Summary: Static SDL_mixer library
79 Summary(pl.UTF-8): Statyczna biblioteka SDL_mixer
80 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com SDL_mixer
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
85 Static SDL_mixer library.
87 %description static -l pl.UTF-8
88 Statyczna biblioteka SDL_mixer.
90 %description static -l pt_BR.UTF-8
91 Bibliotecas estáticas para desenvolvimento com SDL_mixer.
104 %{?with_modplug:--enable-music-mod-modplug}
108 rm -rf $RPM_BUILD_ROOT
110 %{__make} install install-bin \
111 DESTDIR=$RPM_BUILD_ROOT
113 # obsoleted by pkg-config
114 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libSDL_mixer.la
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 %defattr(644,root,root,755)
124 %doc CHANGES COPYING README
125 %attr(755,root,root) %{_bindir}/playmus
126 %attr(755,root,root) %{_bindir}/playwave
127 %attr(755,root,root) %{_libdir}/libSDL_mixer-1.2.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libSDL_mixer-1.2.so.0
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libSDL_mixer.so
133 %{_includedir}/SDL/SDL_mixer.h
134 %{_pkgconfigdir}/SDL_mixer.pc
137 %defattr(644,root,root,755)
138 %{_libdir}/libSDL_mixer.a