3 %bcond_with esound # build without esound plugin
4 %bcond_without flac # build without FLAC plugin
5 %bcond_without jack # build without jack plugin
6 %bcond_without mikmod # build without mikmod plugin
7 %bcond_without nas # build without nas plugin
9 Summary: Alsaplayer - CD/FLAC/MOD/MP3/Ogg/WAV player
10 Summary(pl.UTF-8): Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/Ogg/WAV
15 Group: Applications/Sound
16 Source0: http://www.alsaplayer.org/%{name}-%{version}.tar.bz2
17 # Source0-md5: 845c53975791ba342e316ceac8aa1527
18 Source1: %{name}.desktop
20 Patch0: %{name}-docs.patch
21 URL: http://www.alsaplayer.org/
22 BuildRequires: OpenGL-devel
23 BuildRequires: alsa-lib-devel
24 BuildRequires: audiofile-devel >= 0.1.7
25 BuildRequires: autoconf >= 2.50
26 BuildRequires: automake
27 %{?with_esound:BuildRequires: esound-devel >= 0.2.4}
28 %{?with_flac:BuildRequires: flac-c++-devel >= 1.2.0}
29 BuildRequires: glib2-devel >= 2.0.3
30 BuildRequires: gtk+2-devel >= 2:2.10.0
31 %{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.69.1}
32 %{?with_flac:BuildRequires: libid3tag-devel}
33 BuildRequires: libmad-devel
34 %{?with_mikmod:BuildRequires: libmikmod-devel >= 3.1.7}
35 BuildRequires: libsndfile-devel >= 1.0.4
36 BuildRequires: libstdc++-devel
37 BuildRequires: libtool
38 BuildRequires: libvorbis-devel
39 %{?with_nas:BuildRequires: nas-devel}
40 BuildRequires: pkgconfig
41 BuildRequires: xosd-devel
42 Requires(post): /sbin/ldconfig
43 Requires: alsaplayer_output
44 Requires: alsaplayer_ui
45 Suggests: %{name}-input-audiofile
46 Suggests: %{name}-input-mad
47 Suggests: %{name}-input-vorbis
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define _noautoreqdep libGL.so.1 libGLU.so.1
51 %define _pkglibdir %{_libdir}/%{name}
54 AlsaPlayer is a new type of PCM player. It is heavily multi-threaded
55 and tries to exercise the ALSA library and driver quite a bit.
60 - Ogg Vorbis support (subpackage)
61 - WAV support, 8-, 16-bit, mono, stereo, any sample rate
62 - CDDA support, CD Digital Audio playback! and thus USB ready :)
63 - Also plays files mapped by audiofs (CDDA)
65 - Module support (mikmod) (subpcakage)
69 - ALSA. Best supported of course :) (subpackage)
70 - OSS. Kernel native sound drivers
71 - Sparc. UltraSparc sound drivers
72 - SGI. SGI audio library driver
73 - ESD. Enlightened sound daemon support (subpackage)
74 - NAS. Network Audio System (subpakcage)
75 - low latency JACK output
88 - Full speed (pitch) control, positive *and* negative! (First Linux
89 player that does this!! MP3's and CD's do varispeed :)
90 - Queue (playlist) support
91 - Concurrent visual scopes (open as many as you want)
92 - Multi-threaded design for efficient/skip free playback (RT)
93 - GUI Interface based on GTK+
94 - NOGUI operation for shell script usage
95 - On-screen-display based on xosd
96 - Plug-in core architecture
97 - Low latency mode, as low as 5ms when scheduled RT
99 - Software based volume/pan control
100 - Accurate scope/audio syncing using ALSA features
102 %description -l pl.UTF-8
103 AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielowątkowy i próbuje
104 solidnie przećwiczyć sterowniki i bibliotekę ALSA. Jego cechy to:
108 - obsługa Ogg Vorbis (w podpakiecie)
109 - obsługa WAV, 8 i 16-bitowych, mono, stereo o dowolnej częstotliwości
110 - obsługa CD Digital Audio
111 - odtwarzanie plików podmapowanych przez audiofs (CDDA)
112 - obsługa MAD - MPEG Audio
113 - obsługa modułów (mikmod) (w podpakiecie)
114 - obsług bezstratnej kompresji dźwięku FLAC
117 - OSS - natywne sterowniki z jądra
118 - ALSA - oczywiście najlepiej obsługiwana :) (w podpakiecie)
119 - Sparc - sterowniki dźwięku dla UltraSparca
120 - SGI - biblioteka sterowników dźwięku SGI
121 - ESD - obsługa Oświeconego demona dźwięku (w podpakiecie)
122 - NAS - Sieciowego Systemu Audio (w podpakiecie)
123 - JACK - zestaw połączeń dźwięku o małych opóźnieniach (w podpakiecie)
129 - Wskaźnik poziomu dźwięku
130 - Wskaźniki oparte o analizę FFT
131 - analizator spektrum sygnału w oparciu o OpenGL
134 - Kontrola szybkości (w obie strony)
135 - obsługa kolejki (playlisty)
136 - obsługa wielu wskaźników naraz
138 - interfejs graficzny bazujący na GTK+
139 - operacje bez GUI na potrzeby skryptów
140 - tryb Informacje-na-ekranie oparty o xosd
141 - architektura wtyczek
142 - tryb "czasu rzeczywistego" dający opóźnienia rzędu 5ms
143 - programowa kontrola głośności i balansu
144 - synchronizacja dźwięku i wskaźników przy użyciu możliwości ALSA
147 Summary: Deamon interface for Alsaplayer
148 Summary(pl.UTF-8): Interfejs demona alsaplayera
149 Group: Applications/Sound
150 Requires: %{name} = %{version}-%{release}
153 Deamon interface for Alsaplayer.
155 %description daemon -l pl.UTF-8
156 Interfejs demona alsaplayera.
158 %package input-audiofile
159 Summary: Alsaplayer plugin for playing WAVE audio formats using audiofile
160 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu audiofile
161 Group: Applications/Sound
162 Requires: %{name} = %{version}-%{release}
163 Requires: audiofile >= 0.1.7
165 %description input-audiofile
166 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
167 WAVE, ...) using audiofile library.
169 %description input-audiofile -l pl.UTF-8
170 Wtyczka alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
171 AIFC, WAVE, ...) przy użyciu biblioteki audiofile.
174 Summary: Alsaplayer plugin for playing FLAC files
175 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików FLAC
176 Group: Applications/Sound
177 Requires: %{name} = %{version}-%{release}
179 %description input-flac
180 Alsaplayer plugin for playing FLAC files.
182 %description input-flac -l pl.UTF-8
183 Wtyczka alsaplayera do odtwarzania plików FLAC.
186 Summary: Alsaplayer plugin for playing MP3 files using MAD
187 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
188 Group: Applications/Sound
189 Requires: %{name} = %{version}-%{release}
191 %description input-mad
192 Alsaplayer plugin for playing MP3 files using MAD.
194 %description input-mad -l pl.UTF-8
195 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
197 %package input-mikmod
198 Summary: Alsaplayer plugin for playing mod files
199 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików mod
200 Group: Applications/Sound
201 Requires: %{name} = %{version}-%{release}
202 Requires: libmikmod >= 3.1.7
204 %description input-mikmod
205 Alsaplayer plugin for playing mod files.
207 %description input-mikmod -l pl.UTF-8
208 Wtyczka alsaplayera do odtwarzania plików mod.
210 %package input-sndfile
211 Summary: Alsaplayer plugin for playing WAVE audio formats using libsndfile
212 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu libsndfile
213 Group: Applications/Sound
214 Requires: %{name} = %{version}-%{release}
215 Requires: libsndfile >= 1.0.4
217 %description input-sndfile
218 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
219 WAVE, ...) using libsndfile library.
221 %description input-sndfile -l pl.UTF-8
222 Wtyczka do alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
223 AIFC, WAVE, ...) przy użyciu biblioteki libsndfile.
225 %package input-vorbis
226 Summary: Alsaplayer plugin for playing Ogg/Vorbis files
227 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis
228 Group: Applications/Sound
229 Requires: %{name} = %{version}-%{release}
231 %description input-vorbis
232 Alsaplayer plugin for playing Ogg/Vorbis files.
234 %description input-vorbis -l pl.UTF-8
235 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
237 %package interface-gtk2
238 Summary: GTK+ 2 interface for Alsaplayer
239 Summary(pl.UTF-8): Interfejs GTK+ 2 alsaplayera
240 Group: X11/Applications/Sound
241 Requires: %{name} = %{version}-%{release}
242 Requires: gtk+2 >= 2:2.10.0
243 Provides: alsaplayer_ui
244 Obsoletes: alsaplayer-interface-gtk
246 %description interface-gtk2
247 GTK+ 2 interface for Alsaplayer.
249 %description interface-gtk2 -l pl.UTF-8
250 Interfejs GTK+2 alsaplayera.
252 %package interface-text
253 Summary: Text interface for Alsaplayer
254 Summary(pl.UTF-8): Interfejs tekstowy alsaplayera
255 Group: Applications/Sound
256 Requires: %{name} = %{version}-%{release}
257 Provides: alsaplayer_ui
259 %description interface-text
260 Text interface for Alsaplayer.
262 %description interface-text -l pl.UTF-8
263 Interfejs tekstowy alsaplayera.
265 %package interface-xosd
266 Summary: xosd interface for Alsaplayer
267 Summary(pl.UTF-8): Interfejs xosd alsaplayera
268 Group: X11/Applications/Sound
269 Requires: %{name} = %{version}-%{release}
270 Provides: alsaplayer_ui
272 %description interface-xosd
273 xosd interface for Alsaplayer.
275 %description interface-xosd -l pl.UTF-8
276 Interfejs xosd alsaplayera.
279 Summary: Alsaplayer plugin for playing through alsa drivers
280 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
281 Group: Applications/Sound
282 Requires: %{name} = %{version}-%{release}
283 Provides: alsaplayer_output
285 %description output-alsa
286 Alsaplayer plugin for playing sound through alsa drivers.
288 %description output-alsa -l pl.UTF-8
289 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
291 %package output-esound
292 Summary: Alsaplayer plugin for playing through esound daemon
293 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez demona esound
294 Group: Applications/Sound
295 Requires: %{name} = %{version}-%{release}
296 Requires: esound-libs >= 0.2.4
297 Provides: alsaplayer_output
299 %description output-esound
300 Alsaplayer plugin for playing sound through esound daemon.
302 %description output-esound -l pl.UTF-8
303 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
306 Summary: Alsaplayer plugin for playing through NAS daemon
307 Summary(pl.UTF-8): Wtyczka do alsaplayera do odtwarzania przez demona NAS
308 Group: Applications/Sound
309 Requires: %{name} = %{version}-%{release}
310 Provides: alsaplayer_output
312 %description output-nas
313 Alsaplayer plugin for playing sound through NAS (network audio system)
316 %description output-nas -l pl.UTF-8
317 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
321 Summary: Alsaplayer plugin for playing sound through JACK
322 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a
323 Group: Applications/Sound
324 Requires: %{name} = %{version}-%{release}
325 Requires: jack-audio-connection-kit-libs >= 0.69.1
326 Provides: alsaplayer_output
328 %description output-jack
329 Alsaplayer plugin for sound through JACK system.
331 %description output-jack -l pl.UTF-8
332 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
335 Summary: Alsaplayer plugins for visualization
336 Summary(pl.UTF-8): Wtyczki alsaplayera do wizualizacji
337 Group: X11/Applications/Multimedia
338 Requires: %{name} = %{version}-%{release}
339 Obsoletes: alsaplayer-scopes-gtk
341 %description scopes2-gtk
342 Alsaplayer plugins for visualization.
344 %description scopes2-gtk -l pl.UTF-8
345 Wtyczki do alsaplayera do wizualizacji.
347 %package scopes2-opengl
348 Summary: Alsaplayer plugin for visualization using OpenGL
349 Summary(pl.UTF-8): Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
350 Group: X11/Applications/Multimedia
351 Requires: %{name} = %{version}-%{release}
353 Obsoletes: alsaplayer-scopes-opengl
355 %description scopes2-opengl
356 Alsaplayer plugin for visualization using OpenGL.
358 %description scopes2-opengl -l pl.UTF-8
359 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
362 Summary: Alsaplayer header files
363 Summary(pl.UTF-8): Pliki nagłówkowe Alsaplayera
364 Group: Development/Libraries
365 Requires: %{name} = %{version}-%{release}
368 Header files for Alsaplayer library.
370 %description devel -l pl.UTF-8
371 Pliki nagłówkowe biblioteki Alsaplayera.
374 Summary: Alsaplayer static library
375 Summary(pl.UTF-8): Biblioteka statyczna Alsaplayera
376 Group: Development/Libraries
377 Requires: %{name}-devel = %{version}-%{release}
380 Alsaplayer static library.
382 %description static -l pl.UTF-8
383 Biblioteka statyczna Alsaplayera.
398 --enable-esd%{!?with_esound:=no} \
399 --enable-flac%{!?with_flac:=no} \
401 --enable-jack%{!?with_jack:=no} \
402 --enable-mikmod%{!?with_mikmod:=no} \
403 --enable-nas%{!?with_nas:=no} \
404 --enable-oggflac%{!?with_flac:=no} \
413 rm -rf $RPM_BUILD_ROOT
414 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
417 DESTDIR=$RPM_BUILD_ROOT
419 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
420 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
422 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
423 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
424 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
425 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
426 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la}
431 rm -rf $RPM_BUILD_ROOT
433 %post -p /sbin/ldconfig
434 %postun -p /sbin/ldconfig
436 %files -f %{name}.lang
437 %defattr(644,root,root,755)
438 %doc AUTHORS README ChangeLog
439 %attr(755,root,root) %{_bindir}/alsaplayer
440 %attr(755,root,root) %{_libdir}/libalsaplayer.so.*.*.*
441 %attr(755,root,root) %ghost %{_libdir}/libalsaplayer.so.0
443 %dir %{_pkglibdir}/input
444 %dir %{_pkglibdir}/interface
445 %dir %{_pkglibdir}/output
446 %dir %{_pkglibdir}/reader
447 %dir %{_pkglibdir}/scopes2
448 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
449 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
450 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
451 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
452 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
453 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
455 %{_desktopdir}/%{name}.desktop
456 %{_pixmapsdir}/%{name}.png
459 %defattr(644,root,root,755)
460 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
462 %files interface-gtk2
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
466 %files interface-text
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
470 %files interface-xosd
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
474 %files input-audiofile
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
495 %defattr(644,root,root,755)
496 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
508 %defattr(644,root,root,755)
509 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
514 %defattr(644,root,root,755)
515 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
525 %defattr(644,root,root,755)
526 %attr(755,root,root) %{_pkglibdir}/scopes2/libblurscope.so
527 %attr(755,root,root) %{_pkglibdir}/scopes2/liblevelmeter.so
528 %attr(755,root,root) %{_pkglibdir}/scopes2/liblogbarfft.so
529 %attr(755,root,root) %{_pkglibdir}/scopes2/libmonoscope.so
530 %attr(755,root,root) %{_pkglibdir}/scopes2/libspacescope.so
531 %attr(755,root,root) %{_pkglibdir}/scopes2/libsynaescope.so
533 %files scopes2-opengl
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_libdir}/libalsaplayer.so
540 %{_libdir}/libalsaplayer.la
541 %{_includedir}/alsaplayer
542 %{_pkgconfigdir}/alsaplayer.pc
545 %defattr(644,root,root,755)
546 %{_libdir}/libalsaplayer.a