3 %bcond_without 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: 3280795b199ae1bb245559ccbbca5c02
18 Source1: %{name}.desktop
20 Patch0: %{name}-docs.patch
21 Patch1: %{name}-gcc33.patch
22 Patch2: %{name}-flac.patch
23 URL: http://www.alsaplayer.org/
24 BuildRequires: OpenGL-devel
25 BuildRequires: alsa-lib-devel
26 BuildRequires: audiofile-devel
27 BuildRequires: autoconf
28 BuildRequires: automake
29 %{?with_esound:BuildRequires: esound-devel >= 0.2.4}
30 %{?with_flac:BuildRequires: flac-devel >= 1.1.3}
31 BuildRequires: gtk+-devel
32 BuildRequires: gtk+2-devel >= 1:2.0.3
33 %{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.69.1}
34 %{?with_flac:BuildRequires: libid3tag-devel}
35 BuildRequires: libmad-devel
36 %{?with_mikmod:BuildRequires: libmikmod-devel}
37 BuildRequires: libsndfile-devel >= 1.0.4
38 BuildRequires: libstdc++-devel
39 BuildRequires: libtool
40 BuildRequires: libvorbis-devel
41 %{?with_nas:BuildRequires: nas-devel}
42 BuildRequires: pkgconfig
43 BuildRequires: xosd-devel
44 Requires(post): /sbin/ldconfig
45 Requires: alsaplayer_output
46 Requires: alsaplayer_ui
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 %define _noautoreqdep libGL.so.1 libGLU.so.1
50 %define _pkglibdir %{_libdir}/%{name}
53 AlsaPlayer is a new type of PCM player. It is heavily multi-threaded
54 and tries to exercise the ALSA library and driver quite a bit.
59 - Ogg Vorbis support (subpackage)
60 - WAV support, 8-, 16-bit, mono, stereo, any sample rate
61 - CDDA support, CD Digital Audio playback! and thus USB ready :)
62 - Also plays files mapped by audiofs (CDDA)
64 - Module support (mikmod) (subpcakage)
68 - ALSA. Best supported of course :) (subpackage)
69 - OSS. Kernel native sound drivers
70 - Sparc. UltraSparc sound drivers
71 - SGI. SGI audio library driver
72 - ESD. Enlightened sound daemon support (subpackage)
73 - NAS. Network Audio System (subpakcage)
74 - low latency JACK output
87 - Full speed (pitch) control, positive *and* negative! (First Linux
88 player that does this!! MP3's and CD's do varispeed :)
89 - Queue (playlist) support
90 - Concurrent visual scopes (open as many as you want)
91 - Multi-threaded design for efficient/skip free playback (RT)
92 - GUI Interface based on GTK+
93 - NOGUI operation for shell script usage
94 - On-screen-display based on xosd
95 - Plug-in core architecture
96 - Low latency mode, as low as 5ms when scheduled RT
98 - Software based volume/pan control
99 - Accurate scope/audio syncing using ALSA features
101 %description -l pl.UTF-8
102 AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielowątkowy i próbuje
103 solidnie przećwiczyć sterowniki i bibliotekę ALSA. Jego cechy to:
107 - obsługa Ogg Vorbis (w podpakiecie)
108 - obsługa WAV, 8 i 16-bitowych, mono, stereo o dowolnej częstotliwości
109 - obsługa CD Digital Audio
110 - odtwarzanie plików podmapowanych przez audiofs (CDDA)
111 - obsługa MAD - MPEG Audio
112 - obsługa modułów (mikmod) (w podpakiecie)
113 - obsług bezstratnej kompresji dźwięku FLAC
116 - OSS - natywne sterowniki z jądra
117 - ALSA - oczywiście najlepiej obsługiwana :) (w podpakiecie)
118 - Sparc - sterowniki dźwięku dla UltraSparca
119 - SGI - biblioteka sterowników dźwięku SGI
120 - ESD - obsługa Oświeconego demona dźwięku (w podpakiecie)
121 - NAS - Sieciowego Systemu Audio (w podpakiecie)
122 - JACK - zestaw połączeń dźwięku o małych opóźnieniach (w podpakiecie)
128 - Wskaźnik poziomu dźwięku
129 - Wskaźniki oparte o analizę FFT
130 - analizator spektrum sygnału w oparciu o OpenGL
133 - Kontrola szybkości (w obie strony)
134 - obsługa kolejki (playlisty)
135 - obsługa wielu wskaźników naraz
137 - interfejs graficzny bazujący na GTK+
138 - operacje bez GUI na potrzeby skryptów
139 - tryb Informacje-na-ekranie oparty o xosd
140 - architektura wtyczek
141 - tryb "czasu rzeczywistego" dający opóźnienia rzędu 5ms
142 - programowa kontrola głośności i balansu
143 - synchronizacja dźwięku i wskaźników przy użyciu możliwości ALSA
146 Summary: Deamon interface for Alsaplayer
147 Summary(pl.UTF-8): Interfejs demona alsaplayera
148 Group: Applications/Sound
149 Requires: %{name} = %{version}-%{release}
152 Deamon interface for Alsaplayer.
154 %description daemon -l pl.UTF-8
155 Interfejs demona alsaplayera.
157 %package input-audiofile
158 Summary: Alsaplayer plugin for playing WAVE audio formats using audiofile
159 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu audiofile
160 Group: Applications/Sound
161 Requires: %{name} = %{version}-%{release}
163 %description input-audiofile
164 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
165 WAVE, ...) using audiofile library.
167 %description input-audiofile -l pl.UTF-8
168 Wtyczka alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
169 AIFC, WAVE, ...) przy użyciu biblioteki audiofile.
172 Summary: Alsaplayer plugin for playing FLAC files
173 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików FLAC
174 Group: Applications/Sound
175 Requires: %{name} = %{version}-%{release}
177 %description input-flac
178 Alsaplayer plugin for playing FLAC files.
180 %description input-flac -l pl.UTF-8
181 Wtyczka alsaplayera do odtwarzania plików FLAC.
184 Summary: Alsaplayer plugin for playing MP3 files using MAD
185 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
186 Group: Applications/Sound
187 Requires: %{name} = %{version}-%{release}
189 %description input-mad
190 Alsaplayer plugin for playing MP3 files using MAD.
192 %description input-mad -l pl.UTF-8
193 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
195 %package input-mikmod
196 Summary: Alsaplayer plugin for playing mod files
197 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików mod
198 Group: Applications/Sound
199 Requires: %{name} = %{version}-%{release}
201 %description input-mikmod
202 Alsaplayer plugin for playing mod files.
204 %description input-mikmod -l pl.UTF-8
205 Wtyczka alsaplayera do odtwarzania plików mod.
207 %package input-sndfile
208 Summary: Alsaplayer plugin for playing WAVE audio formats using libsndfile
209 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu libsndfile
210 Group: Applications/Sound
211 Requires: %{name} = %{version}-%{release}
213 %description input-sndfile
214 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
215 WAVE, ...) using libsndfile library.
217 %description input-sndfile -l pl.UTF-8
218 Wtyczka do alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
219 AIFC, WAVE, ...) przy użyciu biblioteki libsndfile.
221 %package input-vorbis
222 Summary: Alsaplayer plugin for playing Ogg/Vorbis files
223 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis
224 Group: Applications/Sound
225 Requires: %{name} = %{version}-%{release}
227 %description input-vorbis
228 Alsaplayer plugin for playing Ogg/Vorbis files.
230 %description input-vorbis -l pl.UTF-8
231 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
233 %package interface-gtk
234 Summary: GTK+ interface for Alsaplayer
235 Summary(pl.UTF-8): Interfejs GTK+ alsaplayera
236 Group: X11/Applications/Sound
237 Requires: %{name} = %{version}-%{release}
238 Provides: alsaplayer_ui
240 %description interface-gtk
241 GTK+ interface for Alsaplayer.
243 %description interface-gtk -l pl.UTF-8
244 Interfejs GTK+ alsaplayera.
246 %package interface-gtk2
247 Summary: GTK+ 2 interface for Alsaplayer
248 Summary(pl.UTF-8): Interfejs GTK+ 2 alsaplayera
249 Group: X11/Applications/Sound
250 Requires: %{name} = %{version}-%{release}
251 Provides: alsaplayer_ui
253 %description interface-gtk2
254 GTK+ 2 interface for Alsaplayer.
256 %description interface-gtk2 -l pl.UTF-8
257 Interfejs GTK+2 alsaplayera.
259 %package interface-text
260 Summary: Text interface for Alsaplayer
261 Summary(pl.UTF-8): Interfejs tekstowy alsaplayera
262 Group: Applications/Sound
263 Requires: %{name} = %{version}-%{release}
264 Provides: alsaplayer_ui
266 %description interface-text
267 Text interface for Alsaplayer.
269 %description interface-text -l pl.UTF-8
270 Interfejs tekstowy alsaplayera.
272 %package interface-xosd
273 Summary: xosd interface for Alsaplayer
274 Summary(pl.UTF-8): Interfejs xosd alsaplayera
275 Group: X11/Applications/Sound
276 Requires: %{name} = %{version}-%{release}
277 Provides: alsaplayer_ui
279 %description interface-xosd
280 xosd interface for Alsaplayer.
282 %description interface-xosd -l pl.UTF-8
283 Interfejs xosd alsaplayera.
286 Summary: Alsaplayer plugin for playing through alsa drivers
287 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
288 Group: Applications/Sound
289 Requires: %{name} = %{version}-%{release}
290 Provides: alsaplayer_output
292 %description output-alsa
293 Alsaplayer plugin for playing sound through alsa drivers.
295 %description output-alsa -l pl.UTF-8
296 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
298 %package output-esound
299 Summary: Alsaplayer plugin for playing through esound daemon
300 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez demona esound
301 Group: Applications/Sound
302 Requires: %{name} = %{version}-%{release}
303 Provides: alsaplayer_output
305 %description output-esound
306 Alsaplayer plugin for playing sound through esound daemon.
308 %description output-esound -l pl.UTF-8
309 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
312 Summary: Alsaplayer plugin for playing through NAS daemon
313 Summary(pl.UTF-8): Wtyczka do alsaplayera do odtwarzania przez demona NAS
314 Group: Applications/Sound
315 Requires: %{name} = %{version}-%{release}
316 Provides: alsaplayer_output
318 %description output-nas
319 Alsaplayer plugin for playing sound through NAS (network audio system)
322 %description output-nas -l pl.UTF-8
323 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
327 Summary: Alsaplayer plugin for playing sound through JACK
328 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a
329 Group: Applications/Sound
330 Requires: %{name} = %{version}-%{release}
331 Provides: alsaplayer_output
333 %description output-jack
334 Alsaplayer plugin for sound through JACK system.
336 %description output-jack -l pl.UTF-8
337 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
340 Summary: Alsaplayer plugins for visualization
341 Summary(pl.UTF-8): Wtyczki alsaplayera do wizualizacji
342 Group: X11/Applications/Multimedia
343 Requires: %{name} = %{version}-%{release}
345 %description scopes-gtk
346 Alsaplayer plugins for visualization.
348 %description scopes-gtk -l pl.UTF-8
349 Wtyczki do alsaplayera do wizualizacji.
351 %package scopes-opengl
352 Summary: Alsaplayer plugin for visualization using OpenGL
353 Summary(pl.UTF-8): Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
354 Group: X11/Applications/Multimedia
355 Requires: %{name} = %{version}-%{release}
358 %description scopes-opengl
359 Alsaplayer plugin for visualization using OpenGL.
361 %description scopes-opengl -l pl.UTF-8
362 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
365 Summary: Alsaplayer header files
366 Summary(pl.UTF-8): Pliki nagłówkowe Alsaplayera
367 Group: Development/Libraries
368 Requires: %{name} = %{version}-%{release}
371 Header files for Alsaplayer library.
373 %description devel -l pl.UTF-8
374 Pliki nagłówkowe biblioteki Alsaplayera.
377 Summary: Alsaplayer static library
378 Summary(pl.UTF-8): Biblioteka statyczna Alsaplayera
379 Group: Development/Libraries
380 Requires: %{name}-devel = %{version}-%{release}
383 Alsaplayer static library.
385 %description static -l pl.UTF-8
386 Biblioteka statyczna Alsaplayera.
400 CPPFLAGS=" -I/usr/X11R6/include"
401 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
402 export CPPFLAGS LDFLAGS
404 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
405 %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
406 %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
407 %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
408 %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
409 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
422 rm -rf $RPM_BUILD_ROOT
423 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
426 DESTDIR=$RPM_BUILD_ROOT \
427 pkgconfigdir=%{_pkgconfigdir}
429 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
430 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
432 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
433 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
434 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
435 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
436 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
439 rm -rf $RPM_BUILD_ROOT
444 echo "Remember to install appropriate alsaplayer-input-* plugins"
445 echo "for files you want to play, for example:"
446 echo "alsaplayer-input-mad to play MP3s."
449 %postun -p /sbin/ldconfig
452 %defattr(644,root,root,755)
453 %doc AUTHORS README ChangeLog
454 %attr(755,root,root) %{_bindir}/alsaplayer
455 %attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
457 %dir %{_pkglibdir}/input
458 %dir %{_pkglibdir}/interface
459 %dir %{_pkglibdir}/output
460 %dir %{_pkglibdir}/reader
461 %dir %{_pkglibdir}/scopes
462 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
463 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
464 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
465 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
466 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
467 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
469 %{_desktopdir}/%{name}.desktop
470 %{_pixmapsdir}/%{name}.png
473 %defattr(644,root,root,755)
474 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
480 %files interface-gtk2
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
484 %files interface-text
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
488 %files interface-xosd
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
492 %files input-audiofile
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
508 %defattr(644,root,root,755)
509 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
517 %defattr(644,root,root,755)
518 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
526 %defattr(644,root,root,755)
527 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
532 %defattr(644,root,root,755)
533 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
543 %defattr(644,root,root,755)
544 %attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
545 %attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
546 %attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
547 %attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
548 %attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
549 %attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
556 %defattr(644,root,root,755)
557 %attr(755,root,root) %{_libdir}/libalsaplayer.so
558 %{_libdir}/libalsaplayer.la
559 %{_includedir}/alsaplayer
560 %{_pkgconfigdir}/alsaplayer.pc
563 %defattr(644,root,root,755)
564 %{_libdir}/libalsaplayer.a