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