]>
Commit | Line | Data |
---|---|---|
db8b1635 AO |
1 | # |
2 | # Conditional build: | |
7fdf80cc JP |
3 | %bcond_without libxmp # libxmp use for MOD support |
4 | %bcond_with modplug # modplug use for MOD support (libxmp is used by default) | |
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 | |
7fdf80cc | 10 | # libgme.so.0 |
5ffcc3bb | 11 | # libmodplug.so.1 |
0aaa6fd5 JB |
12 | # libmpg123.so.0 |
13 | # libopusfile.so.0 | |
5ffcc3bb | 14 | # libvorbisfile.so.3 |
7fdf80cc | 15 | # libwavpack.so.1 |
b5a5314d | 16 | # libxmp.so.4 |
5ffcc3bb | 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 | |
7fdf80cc | 22 | Version: 2.8.0 |
b5a5314d | 23 | Release: 1 |
db8b1635 AO |
24 | License: Zlib-like |
25 | Group: Libraries | |
b5a5314d | 26 | Source0: https://github.com/libsdl-org/SDL_mixer/releases/download/release-%{version}/%{name}-%{version}.tar.gz |
7fdf80cc | 27 | # Source0-md5: 6c4b2936784856c575b838a5731a23d1 |
b5a5314d JP |
28 | URL: https://github.com/libsdl-org/SDL_mixer |
29 | BuildRequires: SDL2-devel >= 2.0.9 | |
db8b1635 AO |
30 | BuildRequires: autoconf |
31 | BuildRequires: automake | |
32 | BuildRequires: flac-devel >= 1.3.0 | |
5791969b | 33 | BuildRequires: fluidsynth-devel |
7fdf80cc | 34 | BuildRequires: game-music-emu-devel |
db8b1635 | 35 | BuildRequires: libtool >= 2:2.0 |
5791969b | 36 | %{?with_modplug:BuildRequires: libmodplug-devel >= 0.8.8} |
0aaa6fd5 | 37 | %{?with_mpg123:BuildRequires: libmpg123-devel} |
5791969b | 38 | BuildRequires: libogg-devel |
db8b1635 | 39 | BuildRequires: libvorbis-devel >= 1:1.0 |
b5a5314d | 40 | %{?with_libxmp:BuildRequires: libxmp-devel >= 4.2} |
0aaa6fd5 | 41 | BuildRequires: opusfile-devel >= 0.2 |
5791969b | 42 | BuildRequires: pkgconfig >= 1:0.9.0 |
7fdf80cc | 43 | BuildRequires: wavpack-devel >= 4.0 |
b5a5314d JP |
44 | Requires: SDL2 >= 2.0.9 |
45 | %{?with_libxmp:Suggests: libxmp >= 4.2} | |
5791969b | 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 | |
c9b48446 | 53 | music, mixed by the popular MikMod MOD, Timidity MIDI and MPG123 MP3 |
db8b1635 AO |
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 | |
c9b48446 | 59 | przez popularne biblioteki MikMod MOD, Timitity MIDI i MPG123 MP3. |
db8b1635 AO |
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 | |
c9b48446 | 64 | e MPG123 MP3. |
db8b1635 AO |
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} | |
b5a5314d | 72 | Requires: SDL2-devel >= 2.0.9 |
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 \ | |
b5a5314d | 111 | --disable-music-flac-drflac \ |
7fdf80cc | 112 | --disable-music-mp3-minimp3 \ |
b5a5314d JP |
113 | --disable-music-ogg-stb \ |
114 | --enable-music-flac-libflac \ | |
115 | --enable-music-ogg-vorbis \ | |
7fdf80cc JP |
116 | %{!?with_libxmp:--disable-music-mod-xmp} \ |
117 | %{?with_modplug:--enable-music-mod-modplug} \ | |
b5a5314d | 118 | %{?with_mpg123:--enable-music-mp3-mpg123} |
db8b1635 AO |
119 | %{__make} |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %{__make} install install-bin \ | |
125 | DESTDIR=$RPM_BUILD_ROOT | |
126 | ||
0aaa6fd5 JB |
127 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/playmus $RPM_BUILD_ROOT%{_bindir}/playmus2 |
128 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/playwave $RPM_BUILD_ROOT%{_bindir}/playwave2 | |
db8b1635 | 129 | |
172c0ad2 JB |
130 | # obsoleted by pkg-config |
131 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libSDL2_mixer.la | |
132 | ||
db8b1635 AO |
133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %post -p /sbin/ldconfig | |
137 | %postun -p /sbin/ldconfig | |
138 | ||
139 | %files | |
140 | %defattr(644,root,root,755) | |
b5a5314d | 141 | %doc CHANGES.txt LICENSE.txt README.txt |
db8b1635 AO |
142 | %attr(755,root,root) %{_bindir}/playmus2 |
143 | %attr(755,root,root) %{_bindir}/playwave2 | |
144 | %attr(755,root,root) %{_libdir}/libSDL2_mixer-2.0.so.*.*.* | |
145 | %attr(755,root,root) %ghost %{_libdir}/libSDL2_mixer-2.0.so.0 | |
146 | ||
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_libdir}/libSDL2_mixer.so | |
b5a5314d | 150 | %{_libdir}/cmake/SDL2_mixer |
db8b1635 AO |
151 | %{_includedir}/SDL2/SDL_mixer.h |
152 | %{_pkgconfigdir}/SDL2_mixer.pc | |
153 | ||
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libSDL2_mixer.a |