]>
Commit | Line | Data |
---|---|---|
eb8bdec8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with modplug # use modplug for MOD support (mikmod is used by default) | |
4 | # | |
4a37b7d1 | 5 | Summary: Simple DirectMedia Layer - Sample Mixer Library |
d720fca2 | 6 | Summary(pl.UTF-8): Simple DirectMedia Layer - biblioteka miksująca próbki dźwiękowe |
18bbfbb5 | 7 | Summary(pt_BR.UTF-8): SDL - Biblioteca para mixagem |
4a37b7d1 | 8 | Name: SDL_mixer |
eb8bdec8 | 9 | Version: 1.2.12 |
a64b4d1d | 10 | Release: 2 |
879657d7 | 11 | License: Zlib-like |
4a37b7d1 | 12 | Group: Libraries |
c49439fb | 13 | Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz |
eb8bdec8 | 14 | # Source0-md5: e03ff73d77a55e3572ad0217131dc4a1 |
876b177c | 15 | Patch0: %{name}-timidity_cfg.patch |
5945ef74 | 16 | Patch1: %{name}-acfix.patch |
c49439fb | 17 | URL: http://www.libsdl.org/projects/SDL_mixer/ |
5945ef74 | 18 | BuildRequires: SDL-devel >= 1.2.10 |
dc202c1b | 19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
29ba1160 | 21 | BuildRequires: flac-devel >= 1.2.0 |
eb8bdec8 | 22 | BuildRequires: fluidsynth-devel |
29ba1160 JB |
23 | BuildRequires: libtool >= 2:2.0 |
24 | BuildRequires: libmikmod-devel >= 3.1.10 | |
eb8bdec8 | 25 | %{?with_modplug:BuildRequires: libmodplug-devel >= 0.8.7} |
f1f0fe81 | 26 | BuildRequires: libvorbis-devel >= 1:1.0 |
4d4d044f | 27 | BuildRequires: smpeg-devel >= 0.4.4-11 |
5945ef74 | 28 | Requires: SDL >= 1.2.10 |
fcad4b7b | 29 | Obsoletes: libSDL_mixer1.2 |
58e81fb2 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b346880d | 31 | |
29ba1160 JB |
32 | # NOTE: libraries dlopened by sonames detected at build time: |
33 | # libFLAC.so.8 | |
eb8bdec8 | 34 | # libfluidsynth.so.1 |
29ba1160 JB |
35 | # libmikmod.so.2 |
36 | # libsmpeg-0.4.so.0 | |
37 | # libvorbisfile.so.3 | |
38 | ||
b346880d | 39 | %description |
4a37b7d1 | 40 | Due to popular demand, here is a simple multi-channel audio mixer. It |
41 | supports 4 channels of 16 bit stereo audio, plus a single channel of | |
42 | music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3 | |
b346880d | 43 | libraries. |
44 | ||
3510fc9e | 45 | %description -l pl.UTF-8 |
b61ef353 JB |
46 | SDL_mixer to prosty wielokanałowy mikser audio. Obsługuje 4 kanały |
47 | 16-bitowego dźwięku stereo plus jeden kanał dla muzyki miksowanej | |
48 | przez popularne biblioteki MikMod MOD, Timitity MIDI i SMPEG MP3. | |
9641be7a | 49 | |
3510fc9e JR |
50 | %description -l pt_BR.UTF-8 |
51 | Biblioteca que suporta 4 canais de áudio estéreo 16 bit, mais um canal | |
52 | de música, mixado pelo populares bibliotecas MOD MikMod, MIDI timidity | |
165c535e | 53 | e SMPEG MP3. |
54 | ||
b346880d | 55 | %package devel |
4a37b7d1 | 56 | Summary: Header files and more to develop SDL_mixer applications |
18bbfbb5 ER |
57 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwoju aplikacji używających SDL_mixer |
58 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL | |
4a37b7d1 | 59 | Group: Development/Libraries |
4733c57f | 60 | Requires: %{name} = %{version}-%{release} |
5945ef74 | 61 | Requires: SDL-devel >= 1.2.10 |
fcad4b7b | 62 | Obsoletes: libSDL_mixer1.2-devel |
b346880d | 63 | |
64 | %description devel | |
4a37b7d1 | 65 | Header files and more to develop SDL_mixer applications. |
66 | ||
3510fc9e JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki nagłówkowe do rozwoju aplikacji używających SDL_mixer | |
165c535e | 69 | |
3510fc9e JR |
70 | %description devel -l pt_BR.UTF-8 |
71 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
165c535e | 72 | SDL. |
73 | ||
4a37b7d1 | 74 | %package static |
2696847f JB |
75 | Summary: Static SDL_mixer library |
76 | Summary(pl.UTF-8): Statyczna biblioteka SDL_mixer | |
18bbfbb5 | 77 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com SDL_mixer |
4a37b7d1 | 78 | Group: Development/Libraries |
4733c57f | 79 | Requires: %{name}-devel = %{version}-%{release} |
4a37b7d1 | 80 | |
81 | %description static | |
2696847f | 82 | Static SDL_mixer library. |
b346880d | 83 | |
3510fc9e | 84 | %description static -l pl.UTF-8 |
2696847f | 85 | Statyczna biblioteka SDL_mixer. |
9641be7a | 86 | |
3510fc9e JR |
87 | %description static -l pt_BR.UTF-8 |
88 | Bibliotecas estáticas para desenvolvimento com SDL_mixer. | |
165c535e | 89 | |
b346880d | 90 | %prep |
165c535e | 91 | %setup -q |
5945ef74 JB |
92 | %patch0 -p1 |
93 | %patch1 -p1 | |
b346880d | 94 | |
0a2d2453 | 95 | %build |
98710110 | 96 | %{__libtoolize} |
97 | %{__aclocal} | |
5a6e59ef | 98 | %{__autoconf} |
eb8bdec8 JB |
99 | %configure \ |
100 | --enable-music-fluidsynth-midi \ | |
101 | %{?with_modplug:--enable-music-mod-modplug} | |
4a37b7d1 | 102 | %{__make} |
b346880d | 103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
4a37b7d1 | 106 | |
5945ef74 | 107 | %{__make} install install-bin \ |
9a6f941c | 108 | DESTDIR=$RPM_BUILD_ROOT |
4a37b7d1 | 109 | |
b346880d | 110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
44b866d6 | 113 | %post -p /sbin/ldconfig |
114 | %postun -p /sbin/ldconfig | |
b5fb61bc | 115 | |
b346880d | 116 | %files |
4a37b7d1 | 117 | %defattr(644,root,root,755) |
879657d7 | 118 | %doc CHANGES COPYING README |
4a37b7d1 | 119 | %attr(755,root,root) %{_bindir}/playmus |
120 | %attr(755,root,root) %{_bindir}/playwave | |
eb8bdec8 | 121 | %attr(755,root,root) %{_libdir}/libSDL_mixer-1.2.so.*.*.* |
7ca29b57 | 122 | %attr(755,root,root) %ghost %{_libdir}/libSDL_mixer-1.2.so.0 |
b346880d | 123 | |
124 | %files devel | |
4a37b7d1 | 125 | %defattr(644,root,root,755) |
efd011f9 JB |
126 | %attr(755,root,root) %{_libdir}/libSDL_mixer.so |
127 | %{_libdir}/libSDL_mixer.la | |
128 | %{_includedir}/SDL/SDL_mixer.h | |
d133af94 | 129 | %{_pkgconfigdir}/SDL_mixer.pc |
4a37b7d1 | 130 | |
131 | %files static | |
132 | %defattr(644,root,root,755) | |
efd011f9 | 133 | %{_libdir}/libSDL_mixer.a |