]>
Commit | Line | Data |
---|---|---|
622d1f77 JB |
1 | # |
2 | # Conditional build: | |
0414f14b | 3 | %bcond_with esd # enable EsounD support |
8eb8527e JB |
4 | %bcond_without alsa # disable alsa support |
5 | %bcond_with arts # enable aRts support | |
6 | %bcond_without jack # disable jack support | |
7 | %bcond_without nas # diasble nas support | |
8 | %bcond_without openal # disable openal support | |
9 | %bcond_without sdl # disable sdl support | |
10 | %bcond_without portaudio # disable portaudio support | |
f377af46 | 11 | %bcond_without pulseaudio # disable pulseaudio support |
10c113d7 | 12 | %bcond_with tinyalsa # enable tinyalsa support |
f9c4106b | 13 | %bcond_without static_libs # static library |
f377af46 | 14 | |
be9a214a | 15 | Summary: MPEG audio player |
4420cdc3 ER |
16 | Summary(es.UTF-8): Ejecuta archivos MP3 |
17 | Summary(pl.UTF-8): Odtwarzacz plików audio MPEG | |
18 | Summary(pt_BR.UTF-8): Tocador de arquivos MP3 | |
19 | Summary(ru.UTF-8): Проигрыватель MPEG аудиофайлов | |
20 | Summary(uk.UTF-8): Програвач MPEG аудіофайлів | |
be9a214a | 21 | Name: mpg123 |
937d7dcd | 22 | Version: 1.31.2 |
6d427f37 | 23 | Release: 1 |
2d688153 JB |
24 | # some old parts are GPLed, but they are not included in package |
25 | License: LGPL v2.1 | |
72c061c4 | 26 | Group: Applications/Sound |
1121e819 | 27 | Source0: https://downloads.sourceforge.net/mpg123/%{name}-%{version}.tar.bz2 |
937d7dcd | 28 | # Source0-md5: 7aa9b41b70826fe8edd743202e488433 |
a5289db0 | 29 | URL: http://www.mpg123.de/ |
decbe8bb | 30 | %{?with_openal:BuildRequires: OpenAL-devel} |
9df9c196 | 31 | %{?with_sdl:BuildRequires: SDL2-devel >= 2.0} |
e3003a9d | 32 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
2d688153 | 33 | %{?with_arts:BuildRequires: artsc-devel} |
1121e819 | 34 | BuildRequires: autoconf >= 2.69 |
1e6af54c | 35 | BuildRequires: automake >= 1:1.7 |
ca431b85 | 36 | %{?with_esd:BuildRequires: esound-devel} |
e3003a9d | 37 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} |
937d7dcd JB |
38 | BuildRequires: libltdl-devel >= 2:2 |
39 | BuildRequires: libtool >= 2:2 | |
7d344f6f | 40 | %{?with_nas:BuildRequires: nas-devel} |
4accff92 | 41 | BuildRequires: pkgconfig |
8eb8527e | 42 | %{?with_portaudio:BuildRequires: portaudio-devel >= 18} |
f377af46 | 43 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
10c113d7 | 44 | %{?with_tinyalsa:BuildRequires: tinyalsa-devel} |
7637f16b JB |
45 | %ifarch %{x8664} |
46 | BuildRequires: yasm | |
47 | %endif | |
2d688153 JB |
48 | Requires: libmpg123 = %{version}-%{release} |
49 | Suggests: %{name}-alsa = %{version}-%{release} | |
6d31c02c | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e698dbf8 | 51 | |
52 | %description | |
3eb8bf8c JB |
53 | Mpg123 is a fast, free (for non-commercial use) and portable MPEG |
54 | audio player for Unix. It supports MPEG 1.0/2.0 layers 1, 2 and 3 | |
55 | (those famous "MP3" files). For full CD quality playback (44 kHz, 16 | |
56 | bit, stereo) a Pentium, SPARCstation10, DEC Alpha or similar CPU is | |
94fc3aac | 57 | required. Mono and/or reduced quality playback (22 kHz or 11 kHz) is |
8a38b8dd | 58 | even possible on i486 CPUs. |
e698dbf8 | 59 | |
658b6c48 | 60 | %description -l es.UTF-8 |
23730b08 | 61 | Ejecuta archivos MP3. |
62 | ||
658b6c48 JR |
63 | %description -l pl.UTF-8 |
64 | Mpg123 jest szybkim, darmowym (do celów niekomercyjnych) oraz | |
65 | uniwersalnym dekoderem plików dźwiękowych MPEG dla systemów | |
66 | uniksowych. Obsługuje standard MPEG 1.0/2.0 warstwy 1, 2 oraz 3 | |
67 | (słynne "MP3"). Do uzyskania pełnej jakości CD wymagany jest silny | |
68 | procesor (Pentium, SPARCstation10, DEC Alpha lub podobny). Niższą | |
69 | jakość (22 lub 11 kHz) można uzyskać już na procesorach i486. | |
e698dbf8 | 70 | |
658b6c48 JR |
71 | %description -l pt_BR.UTF-8 |
72 | O mpg123 é um tocador de áudio MPEG para o Unix. Ele suporta MPEG | |
1c573046 | 73 | 1.0/2.0 camadas 1, 2 e 3 (Arquivos "MP3"). |
c2cd876b | 74 | |
658b6c48 JR |
75 | %description -l ru.UTF-8 |
76 | Mpg123 - это быстрый, свободный и переносимый проигрыватель MPEG | |
77 | аудиофайлов. он поддерживает MPEG 1.0/2.0 уровней 1, 2 и 3 ("MP3" | |
78 | файлы). Для получения качества звучания компакт-диска (44 kHz, 16 бит, | |
79 | стерео) ноеобходим процессор Pentium. Монозвук или звук худшего | |
80 | качества (22 kHz или 11 kHz) возможен и на процессорах класса i486. | |
8a38b8dd | 81 | |
658b6c48 JR |
82 | %description -l uk.UTF-8 |
83 | Mpg123 - це швидкий, вільний та переносимий програвач MPEG | |
84 | аудіофайлів. Він підтримує MPEG 1.0/2.0 рівнів 1, 2 та 3 ("MP3" | |
85 | файли). Для отримання якості звучання компакт-диску (44 kHz, 16 біт, | |
86 | стерео) необхідний процесор Pentium. Монозвук чи звук гіршої якості | |
87 | (22 kHz чи 11 kHz) можливий і на процесорах класу i486. | |
23730b08 | 88 | |
2d688153 JB |
89 | %package alsa |
90 | Summary: ALSA audio output plugin for mpg123 | |
91 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku ALSA dla mpg123 | |
d36c5b0b | 92 | Group: Applications/Sound |
2d688153 | 93 | Requires: %{name} = %{version}-%{release} |
d36c5b0b | 94 | |
2d688153 JB |
95 | %description alsa |
96 | ALSA audio output plugin for mpg123. | |
d36c5b0b | 97 | |
2d688153 JB |
98 | %description alsa -l pl.UTF-8 |
99 | Wtyczka wyjścia dźwięku ALSA dla mpg123. | |
d36c5b0b | 100 | |
2d688153 JB |
101 | %package arts |
102 | Summary: aRts audio output plugin for mpg123 | |
103 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku aRts dla mpg123 | |
e3003a9d | 104 | Group: Applications/Sound |
2d688153 | 105 | Requires: %{name} = %{version}-%{release} |
e3003a9d | 106 | |
2d688153 JB |
107 | %description arts |
108 | aRts audio output plugin for mpg123. | |
e3003a9d | 109 | |
2d688153 JB |
110 | %description arts -l pl.UTF-8 |
111 | Wtyczka wyjścia dźwięku aRts dla mpg123. | |
e3003a9d | 112 | |
2d688153 JB |
113 | %package esd |
114 | Summary: EsounD audio output plugin for mpg123 | |
115 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku EsounD dla mpg123 | |
116 | Group: Applications/Sound | |
117 | Requires: %{name} = %{version}-%{release} | |
118 | ||
119 | %description esd | |
120 | EsounD audio output plugin for mpg123. | |
e3003a9d | 121 | |
2d688153 JB |
122 | %description esd -l pl.UTF-8 |
123 | Wtyczka wyjścia dźwięku EsounD dla mpg123. | |
e3003a9d | 124 | |
125 | %package jack | |
2d688153 JB |
126 | Summary: JACK audio output plugin for mpg123 |
127 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku JACK dla mpg123 | |
e3003a9d | 128 | Group: Applications/Sound |
2d688153 | 129 | Requires: %{name} = %{version}-%{release} |
e3003a9d | 130 | |
131 | %description jack | |
2d688153 | 132 | JACK audio output plugin for mpg123. |
e3003a9d | 133 | |
658b6c48 | 134 | %description jack -l pl.UTF-8 |
2d688153 | 135 | Wtyczka wyjścia dźwięku JACK dla mpg123. |
e3003a9d | 136 | |
7d344f6f | 137 | %package nas |
2d688153 JB |
138 | Summary: NAS audio output plugin for mpg123 |
139 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku NAS dla mpg123 | |
4accff92 | 140 | Group: Applications/Sound |
2d688153 | 141 | Requires: %{name} = %{version}-%{release} |
7d344f6f | 142 | |
143 | %description nas | |
2d688153 | 144 | NAS audio output plugin for mpg123. |
7d344f6f | 145 | |
658b6c48 | 146 | %description nas -l pl.UTF-8 |
2d688153 JB |
147 | Wtyczka wyjścia dźwięku NAS dla mpg123. |
148 | ||
decbe8bb AG |
149 | %package openal |
150 | Summary: OpenAL audio output plugin for mpg123 | |
151 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku OpenAL dla mpg123 | |
152 | Group: Applications/Sound | |
153 | Requires: %{name} = %{version}-%{release} | |
154 | ||
155 | %description openal | |
156 | OpenAL audio output plugin for mpg123. | |
157 | ||
158 | %description openal -l pl.UTF-8 | |
159 | Wtyczka wyjścia dźwięku OpenAL dla mpg123. | |
160 | ||
2d688153 JB |
161 | %package portaudio |
162 | Summary: PortAudio audio output plugin for mpg123 | |
163 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku PortAudio dla mpg123 | |
164 | Group: Applications/Sound | |
165 | Requires: %{name} = %{version}-%{release} | |
166 | ||
167 | %description portaudio | |
168 | PortAudio audio output plugin for mpg123. | |
7d344f6f | 169 | |
2d688153 JB |
170 | %description portaudio -l pl.UTF-8 |
171 | Wtyczka wyjścia dźwięku PortAudio dla mpg123. | |
172 | ||
173 | %package pulseaudio | |
174 | Summary: PulseAudio audio output plugin for mpg123 | |
175 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku PulseAudio dla mpg123 | |
176 | Group: Applications/Sound | |
177 | Requires: %{name} = %{version}-%{release} | |
178 | ||
179 | %description pulseaudio | |
180 | PulseAudio audio output plugin for mpg123. | |
181 | ||
182 | %description pulseaudio -l pl.UTF-8 | |
183 | Wtyczka wyjścia dźwięku PulseAudio dla mpg123. | |
7d344f6f | 184 | |
e3003a9d | 185 | %package sdl |
2d688153 JB |
186 | Summary: SDL audio output plugin for mpg123 |
187 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku SDL dla mpg123 | |
e3003a9d | 188 | Group: Applications/Sound |
2d688153 | 189 | Requires: %{name} = %{version}-%{release} |
e3003a9d | 190 | |
191 | %description sdl | |
2d688153 | 192 | SDL audio output plugin for mpg123. |
e3003a9d | 193 | |
658b6c48 | 194 | %description sdl -l pl.UTF-8 |
2d688153 JB |
195 | Wtyczka wyjścia dźwięku SDL dla mpg123. |
196 | ||
10c113d7 JB |
197 | %package tinyalsa |
198 | Summary: tinyalsa audio output plugin for mpg123 | |
199 | Summary(pl.UTF-8): Wtyczka wyjścia dźwięku tinyalsa dla mpg123 | |
200 | Group: Applications/Sound | |
201 | Requires: %{name} = %{version}-%{release} | |
202 | ||
203 | %description tinyalsa | |
204 | tinyalsa audio output plugin for mpg123. | |
205 | ||
206 | %description tinyalsa -l pl.UTF-8 | |
207 | Wtyczka wyjścia dźwięku tinyalsa dla mpg123. | |
208 | ||
2d688153 JB |
209 | %package -n libmpg123 |
210 | Summary: An optimized MPEG Audio decoder library | |
211 | Summary(pl.UTF-8): Zoptymalizowana biblioteka dekodera dźwięku MPEG | |
212 | Group: Libraries | |
213 | ||
214 | %description -n libmpg123 | |
215 | An optimized MPEG Audio decoder library. | |
e3003a9d | 216 | |
2d688153 JB |
217 | %description -n libmpg123 -l pl.UTF-8 |
218 | Zoptymalizowana biblioteka dekodera dźwięku MPEG. | |
219 | ||
220 | %package -n libmpg123-devel | |
221 | Summary: Header file for mpg123 library | |
222 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki mpg123 | |
223 | Group: Development/Libraries | |
224 | Requires: libmpg123 = %{version}-%{release} | |
225 | ||
226 | %description -n libmpg123-devel | |
227 | Header file for mpg123 library. | |
228 | ||
229 | %description -n libmpg123-devel -l pl.UTF-8 | |
230 | Plik nagłówkowy biblioteki mpg123. | |
231 | ||
232 | %package -n libmpg123-static | |
233 | Summary: Static mpg123 library | |
234 | Summary(pl.UTF-8): Statyczna biblioteka mpg123 | |
235 | Group: Development/Libraries | |
236 | Requires: libmpg123-static = %{version}-%{release} | |
237 | ||
238 | %description -n libmpg123-static | |
239 | Static mpg123 library. | |
240 | ||
241 | %description -n libmpg123-static -l pl.UTF-8 | |
242 | Statyczna biblioteka mpg123. | |
e3003a9d | 243 | |
e698dbf8 | 244 | %prep |
e3003a9d | 245 | %setup -q |
b45adbd6 | 246 | |
e698dbf8 | 247 | %build |
2d688153 | 248 | %{__libtoolize} |
b3c15602 | 249 | %{__aclocal} |
250 | %{__autoconf} | |
251 | %{__autoheader} | |
252 | %{__automake} | |
2d688153 | 253 | # select "0" optimization, which doesn't add any -O to CFLAGS |
e3003a9d | 254 | %configure \ |
2d688153 | 255 | --enable-modules \ |
f9c4106b | 256 | %{?with_static_libs:--enable-static} \ |
10c113d7 | 257 | --with-audio=%{?with_alsa:alsa,}oss%{?with_esd:,esd}%{?with_jack:,jack}%{?with_portaudio:,portaudio}%{?with_pulseaudio:,pulse}%{?with_sdl:,sdl}%{?with_nas:,nas}%{?with_arts:,arts}%{?with_openal:,openal}%{?with_tinyalsa:,tinyalsa} \ |
a972d380 | 258 | --with-default-audio=%{?with_alsa:alsa,}oss \ |
2d688153 | 259 | --with-optimization=0 |
e3003a9d | 260 | %{__make} |
d36c5b0b | 261 | |
e698dbf8 | 262 | %install |
263 | rm -rf $RPM_BUILD_ROOT | |
7d344f6f | 264 | |
2d688153 JB |
265 | %{__make} install \ |
266 | DESTDIR=$RPM_BUILD_ROOT | |
e3003a9d | 267 | |
f9c4106b JB |
268 | # obsoleted by pkg-config |
269 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
e698dbf8 | 270 | |
271 | %clean | |
272 | rm -rf $RPM_BUILD_ROOT | |
273 | ||
2d688153 JB |
274 | %post -n libmpg123 -p /sbin/ldconfig |
275 | %postun -n libmpg123 -p /sbin/ldconfig | |
276 | ||
e698dbf8 | 277 | %files |
3f14ce25 | 278 | %defattr(644,root,root,755) |
02641992 | 279 | %doc AUTHORS COPYING NEWS README TODO doc/{ACCURACY,BENCHMARKING,BUGS,CONTACT,LICENSE,PATENTS,README.gain,README.remote,ROAD_TO_LGPL,THANKS} |
622d1f77 | 280 | %ifarch athlon |
e3003a9d | 281 | %doc doc/README.3DNOW |
622d1f77 | 282 | %endif |
2d688153 | 283 | %attr(755,root,root) %{_bindir}/mpg123 |
220dc96e WF |
284 | %attr(755,root,root) %{_bindir}/mpg123-id3dump |
285 | %attr(755,root,root) %{_bindir}/mpg123-strip | |
286 | %attr(755,root,root) %{_bindir}/out123 | |
287 | ||
2d688153 JB |
288 | %dir %{_libdir}/mpg123 |
289 | %attr(755,root,root) %{_libdir}/mpg123/output_dummy.so | |
290 | %attr(755,root,root) %{_libdir}/mpg123/output_oss.so | |
291 | %{_mandir}/man1/mpg123.1* | |
220dc96e WF |
292 | %{_mandir}/man1/out123.1* |
293 | ||
e3003a9d | 294 | %if %{with alsa} |
295 | %files alsa | |
296 | %defattr(644,root,root,755) | |
2d688153 JB |
297 | %attr(755,root,root) %{_libdir}/mpg123/output_alsa.so |
298 | %endif | |
299 | ||
300 | %if %{with arts} | |
301 | %files arts | |
302 | %defattr(644,root,root,755) | |
303 | %attr(755,root,root) %{_libdir}/mpg123/output_arts.so | |
e3003a9d | 304 | %endif |
305 | ||
ca431b85 | 306 | %if %{with esd} |
d36c5b0b AM |
307 | %files esd |
308 | %defattr(644,root,root,755) | |
2d688153 | 309 | %attr(755,root,root) %{_libdir}/mpg123/output_esd.so |
954ba1bd | 310 | %endif |
e3003a9d | 311 | |
312 | %if %{with jack} | |
313 | %files jack | |
314 | %defattr(644,root,root,755) | |
2d688153 | 315 | %attr(755,root,root) %{_libdir}/mpg123/output_jack.so |
e3003a9d | 316 | %endif |
317 | ||
7d344f6f | 318 | %if %{with nas} |
319 | %files nas | |
320 | %defattr(644,root,root,755) | |
2d688153 | 321 | %attr(755,root,root) %{_libdir}/mpg123/output_nas.so |
7d344f6f | 322 | %endif |
323 | ||
decbe8bb AG |
324 | %if %{with openal} |
325 | %files openal | |
326 | %defattr(644,root,root,755) | |
327 | %attr(755,root,root) %{_libdir}/mpg123/output_openal.so | |
328 | %endif | |
329 | ||
8eb8527e | 330 | %if %{with portaudio} |
2d688153 JB |
331 | %files portaudio |
332 | %defattr(644,root,root,755) | |
333 | %attr(755,root,root) %{_libdir}/mpg123/output_portaudio.so | |
86b015bf | 334 | %endif |
2d688153 | 335 | |
f377af46 | 336 | %if %{with pulseaudio} |
2d688153 JB |
337 | %files pulseaudio |
338 | %defattr(644,root,root,755) | |
339 | %attr(755,root,root) %{_libdir}/mpg123/output_pulse.so | |
86b015bf | 340 | %endif |
2d688153 | 341 | |
e3003a9d | 342 | %if %{with sdl} |
343 | %files sdl | |
344 | %defattr(644,root,root,755) | |
2d688153 | 345 | %attr(755,root,root) %{_libdir}/mpg123/output_sdl.so |
e3003a9d | 346 | %endif |
2d688153 | 347 | |
10c113d7 JB |
348 | %if %{with tinyalsa} |
349 | %files tinyalsa | |
350 | %defattr(644,root,root,755) | |
351 | %attr(755,root,root) %{_libdir}/mpg123/output_tinyalsa.so | |
352 | %endif | |
353 | ||
2d688153 JB |
354 | %files -n libmpg123 |
355 | %defattr(644,root,root,755) | |
71acee0e | 356 | %doc NEWS.libmpg123 |
2d688153 JB |
357 | %attr(755,root,root) %{_libdir}/libmpg123.so.*.*.* |
358 | %attr(755,root,root) %ghost %{_libdir}/libmpg123.so.0 | |
f9c4106b JB |
359 | %attr(755,root,root) %{_libdir}/libout123.so.*.*.* |
360 | %attr(755,root,root) %ghost %{_libdir}/libout123.so.0 | |
9df9c196 JB |
361 | %attr(755,root,root) %{_libdir}/libsyn123.so.*.*.* |
362 | %attr(755,root,root) %ghost %{_libdir}/libsyn123.so.0 | |
2d688153 JB |
363 | |
364 | %files -n libmpg123-devel | |
365 | %defattr(644,root,root,755) | |
366 | %attr(755,root,root) %{_libdir}/libmpg123.so | |
f9c4106b | 367 | %attr(755,root,root) %{_libdir}/libout123.so |
9df9c196 | 368 | %attr(755,root,root) %{_libdir}/libsyn123.so |
f9c4106b | 369 | %{_includedir}/fmt123.h |
2d688153 | 370 | %{_includedir}/mpg123.h |
f9c4106b | 371 | %{_includedir}/out123.h |
9df9c196 | 372 | %{_includedir}/syn123.h |
2d688153 | 373 | %{_pkgconfigdir}/libmpg123.pc |
f9c4106b | 374 | %{_pkgconfigdir}/libout123.pc |
9df9c196 | 375 | %{_pkgconfigdir}/libsyn123.pc |
2d688153 | 376 | |
f9c4106b | 377 | %if %{with static_libs} |
2d688153 JB |
378 | %files -n libmpg123-static |
379 | %defattr(644,root,root,755) | |
380 | %{_libdir}/libmpg123.a | |
f9c4106b | 381 | %{_libdir}/libout123.a |
9df9c196 | 382 | %{_libdir}/libsyn123.a |
f9c4106b | 383 | %endif |