]>
Commit | Line | Data |
---|---|---|
db8b1635 AO |
1 | # |
2 | # Conditional build: | |
5791969b JB |
3 | %bcond_with mikmod # mikmod use for MOD support (modplug is used by default) |
4 | %bcond_without modplug # modplug use for MOD support | |
0aaa6fd5 JB |
5 | %bcond_with libmad # libmad use for MP3 support (libmpg123 is used by default) |
6 | %bcond_without mpg123 # libmpg123 use for MP3 support | |
db8b1635 | 7 | # |
5ffcc3bb JB |
8 | # NOTE: libraries dlopened by sonames detected at build time: |
9 | # libFLAC.so.8 | |
10 | # libfluidsynth.so.1 | |
11 | # libmikmod.so.2 | |
12 | # libmodplug.so.1 | |
0aaa6fd5 JB |
13 | # libmpg123.so.0 |
14 | # libopusfile.so.0 | |
5ffcc3bb JB |
15 | # libsmpeg-2.0.so.0 |
16 | # libvorbisfile.so.3 | |
17 | # | |
db8b1635 AO |
18 | Summary: Simple DirectMedia Layer - Sample Mixer Library |
19 | Summary(pl.UTF-8): Simple DirectMedia Layer - biblioteka miksująca próbki dźwiękowe | |
20 | Summary(pt_BR.UTF-8): SDL2 - Biblioteca para mixagem | |
21 | Name: SDL2_mixer | |
eca729c9 | 22 | Version: 2.0.4 |
0aaa6fd5 | 23 | Release: 2 |
db8b1635 AO |
24 | License: Zlib-like |
25 | Group: Libraries | |
26 | Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz | |
eca729c9 | 27 | # Source0-md5: a36e8410cac46b00a4d01752b32c3eb1 |
db8b1635 | 28 | URL: http://www.libsdl.org/projects/SDL_mixer/ |
0aaa6fd5 | 29 | BuildRequires: SDL2-devel >= 2.0.7 |
db8b1635 AO |
30 | BuildRequires: autoconf |
31 | BuildRequires: automake | |
32 | BuildRequires: flac-devel >= 1.3.0 | |
5791969b | 33 | BuildRequires: fluidsynth-devel |
0aaa6fd5 | 34 | %{?with_libmad:BuildRequires: libmad-devel} |
db8b1635 | 35 | BuildRequires: libtool >= 2:2.0 |
5791969b JB |
36 | %{?with_mikmod:BuildRequires: libmikmod-devel >= 3.1.10} |
37 | %{?with_modplug:BuildRequires: libmodplug-devel >= 0.8.8} | |
0aaa6fd5 | 38 | %{?with_mpg123:BuildRequires: libmpg123-devel} |
5791969b | 39 | BuildRequires: libogg-devel |
db8b1635 | 40 | BuildRequires: libvorbis-devel >= 1:1.0 |
0aaa6fd5 | 41 | BuildRequires: opusfile-devel >= 0.2 |
5791969b JB |
42 | BuildRequires: pkgconfig >= 1:0.9.0 |
43 | BuildRequires: smpeg2-devel >= 2.0.0 | |
0aaa6fd5 | 44 | Requires: SDL2 >= 2.0.7 |
5791969b JB |
45 | %{?with_mikmod:Suggests: libmikmod >= 3.1.10} |
46 | %{?with_modplug:Suggests: libmodplug >= 0.8.8} | |
0aaa6fd5 | 47 | Suggests: opusfile >= 0.2 |
db8b1635 AO |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | Due to popular demand, here is a simple multi-channel audio mixer. It | |
52 | supports 4 channels of 16 bit stereo audio, plus a single channel of | |
53 | music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3 | |
54 | libraries. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | SDL2_mixer to prosty wielokanałowy mikser audio. Obsługuje 4 kanały | |
58 | 16-bitowego dźwięku stereo plus jeden kanał dla muzyki miksowanej | |
59 | przez popularne biblioteki MikMod MOD, Timitity MIDI i SMPEG MP3. | |
60 | ||
61 | %description -l pt_BR.UTF-8 | |
62 | Biblioteca que suporta 4 canais de áudio estéreo 16 bit, mais um canal | |
63 | de música, mixado pelo populares bibliotecas MOD MikMod, MIDI timidity | |
64 | e SMPEG MP3. | |
65 | ||
66 | %package devel | |
67 | Summary: Header files and more to develop SDL_mixer applications | |
5ffcc3bb | 68 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwoju aplikacji używających biblioteki SDL_mixer |
db8b1635 AO |
69 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL |
70 | Group: Development/Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
0aaa6fd5 | 72 | Requires: SDL2-devel >= 2.0.7 |
db8b1635 AO |
73 | |
74 | %description devel | |
75 | Header files and more to develop SDL2_mixer applications. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
5ffcc3bb JB |
78 | Pliki nagłówkowe do rozwoju aplikacji używających biblioteki |
79 | SDL2_mixer. | |
db8b1635 AO |
80 | |
81 | %description devel -l pt_BR.UTF-8 | |
82 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
83 | SDL2. | |
84 | ||
85 | %package static | |
86 | Summary: Static SDL2_mixer library | |
87 | Summary(pl.UTF-8): Statyczna biblioteka SDL2_mixer | |
88 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com SDL2_mixer | |
89 | Group: Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | ||
92 | %description static | |
93 | Static SDL2_mixer library. | |
94 | ||
95 | %description static -l pl.UTF-8 | |
96 | Statyczna biblioteka SDL2_mixer. | |
97 | ||
98 | %description static -l pt_BR.UTF-8 | |
99 | Bibliotecas estáticas para desenvolvimento com SDL2_mixer. | |
100 | ||
101 | %prep | |
102 | %setup -q | |
5791969b JB |
103 | |
104 | %{__rm} acinclude/{libtool,lt*}.m4 | |
db8b1635 AO |
105 | |
106 | %build | |
5791969b | 107 | %{__libtoolize} |
db8b1635 AO |
108 | %{__aclocal} -I acinclude |
109 | %{__autoconf} | |
110 | %configure \ | |
5791969b | 111 | %{?with_mikmod:--enable-music-mod-mikmod} \ |
0aaa6fd5 JB |
112 | %{!?with_modplug:--disable-music-mod-modplug} \ |
113 | %{?with_libmad:--enable-music-mp3-mad-gpl} \ | |
114 | %{!?with_mpg123:--disable-music-mp3-mpg123} | |
db8b1635 AO |
115 | %{__make} |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %{__make} install install-bin \ | |
121 | DESTDIR=$RPM_BUILD_ROOT | |
122 | ||
0aaa6fd5 JB |
123 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/playmus $RPM_BUILD_ROOT%{_bindir}/playmus2 |
124 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/playwave $RPM_BUILD_ROOT%{_bindir}/playwave2 | |
db8b1635 AO |
125 | |
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post -p /sbin/ldconfig | |
130 | %postun -p /sbin/ldconfig | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
134 | %doc CHANGES.txt COPYING.txt README.txt | |
135 | %attr(755,root,root) %{_bindir}/playmus2 | |
136 | %attr(755,root,root) %{_bindir}/playwave2 | |
137 | %attr(755,root,root) %{_libdir}/libSDL2_mixer-2.0.so.*.*.* | |
138 | %attr(755,root,root) %ghost %{_libdir}/libSDL2_mixer-2.0.so.0 | |
139 | ||
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
142 | %attr(755,root,root) %{_libdir}/libSDL2_mixer.so | |
143 | %{_libdir}/libSDL2_mixer.la | |
144 | %{_includedir}/SDL2/SDL_mixer.h | |
145 | %{_pkgconfigdir}/SDL2_mixer.pc | |
146 | ||
147 | %files static | |
148 | %defattr(644,root,root,755) | |
149 | %{_libdir}/libSDL2_mixer.a |