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
25 BuildRequires: autoconf
26 BuildRequires: automake
27 %{?with_esound:BuildRequires: esound-devel >= 0.2.4}
28 %{?with_flac:BuildRequires: flac-c++-devel >= 1.2.0}
29 BuildRequires: gtk+2-devel >= 1:2.0.3
30 %{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.69.1}
31 %{?with_flac:BuildRequires: libid3tag-devel}
32 BuildRequires: libmad-devel
33 %{?with_mikmod:BuildRequires: libmikmod-devel}
34 BuildRequires: libsndfile-devel >= 1.0.4
35 BuildRequires: libstdc++-devel
36 BuildRequires: libtool
37 BuildRequires: libvorbis-devel
38 %{?with_nas:BuildRequires: nas-devel}
39 BuildRequires: pkgconfig
40 BuildRequires: xosd-devel
41 Requires(post): /sbin/ldconfig
42 Requires: alsaplayer_output
43 Requires: alsaplayer_ui
44 Suggests: %{name}-input-audiofile
45 Suggests: %{name}-input-mad
46 Suggests: %{name}-input-vorbis
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-gtk2
234 Summary: GTK+ 2 interface for Alsaplayer
235 Summary(pl.UTF-8): Interfejs GTK+ 2 alsaplayera
236 Group: X11/Applications/Sound
237 Requires: %{name} = %{version}-%{release}
238 Provides: alsaplayer_ui
239 Obsoletes: alsaplayer-interface-gtk
241 %description interface-gtk2
242 GTK+ 2 interface for Alsaplayer.
244 %description interface-gtk2 -l pl.UTF-8
245 Interfejs GTK+2 alsaplayera.
247 %package interface-text
248 Summary: Text interface for Alsaplayer
249 Summary(pl.UTF-8): Interfejs tekstowy alsaplayera
250 Group: Applications/Sound
251 Requires: %{name} = %{version}-%{release}
252 Provides: alsaplayer_ui
254 %description interface-text
255 Text interface for Alsaplayer.
257 %description interface-text -l pl.UTF-8
258 Interfejs tekstowy alsaplayera.
260 %package interface-xosd
261 Summary: xosd interface for Alsaplayer
262 Summary(pl.UTF-8): Interfejs xosd alsaplayera
263 Group: X11/Applications/Sound
264 Requires: %{name} = %{version}-%{release}
265 Provides: alsaplayer_ui
267 %description interface-xosd
268 xosd interface for Alsaplayer.
270 %description interface-xosd -l pl.UTF-8
271 Interfejs xosd alsaplayera.
274 Summary: Alsaplayer plugin for playing through alsa drivers
275 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
276 Group: Applications/Sound
277 Requires: %{name} = %{version}-%{release}
278 Provides: alsaplayer_output
280 %description output-alsa
281 Alsaplayer plugin for playing sound through alsa drivers.
283 %description output-alsa -l pl.UTF-8
284 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
286 %package output-esound
287 Summary: Alsaplayer plugin for playing through esound daemon
288 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez demona esound
289 Group: Applications/Sound
290 Requires: %{name} = %{version}-%{release}
291 Provides: alsaplayer_output
293 %description output-esound
294 Alsaplayer plugin for playing sound through esound daemon.
296 %description output-esound -l pl.UTF-8
297 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
300 Summary: Alsaplayer plugin for playing through NAS daemon
301 Summary(pl.UTF-8): Wtyczka do alsaplayera do odtwarzania przez demona NAS
302 Group: Applications/Sound
303 Requires: %{name} = %{version}-%{release}
304 Provides: alsaplayer_output
306 %description output-nas
307 Alsaplayer plugin for playing sound through NAS (network audio system)
310 %description output-nas -l pl.UTF-8
311 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
315 Summary: Alsaplayer plugin for playing sound through JACK
316 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a
317 Group: Applications/Sound
318 Requires: %{name} = %{version}-%{release}
319 Provides: alsaplayer_output
321 %description output-jack
322 Alsaplayer plugin for sound through JACK system.
324 %description output-jack -l pl.UTF-8
325 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
328 Summary: Alsaplayer plugins for visualization
329 Summary(pl.UTF-8): Wtyczki alsaplayera do wizualizacji
330 Group: X11/Applications/Multimedia
331 Requires: %{name} = %{version}-%{release}
332 Obsoletes: alsaplayer-scopes-gtk
334 %description scopes2-gtk
335 Alsaplayer plugins for visualization.
337 %description scopes2-gtk -l pl.UTF-8
338 Wtyczki do alsaplayera do wizualizacji.
340 %package scopes2-opengl
341 Summary: Alsaplayer plugin for visualization using OpenGL
342 Summary(pl.UTF-8): Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
343 Group: X11/Applications/Multimedia
344 Requires: %{name} = %{version}-%{release}
346 Obsoletes: alsaplayer-scopes-opengl
348 %description scopes2-opengl
349 Alsaplayer plugin for visualization using OpenGL.
351 %description scopes2-opengl -l pl.UTF-8
352 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
355 Summary: Alsaplayer header files
356 Summary(pl.UTF-8): Pliki nagłówkowe Alsaplayera
357 Group: Development/Libraries
358 Requires: %{name} = %{version}-%{release}
361 Header files for Alsaplayer library.
363 %description devel -l pl.UTF-8
364 Pliki nagłówkowe biblioteki Alsaplayera.
367 Summary: Alsaplayer static library
368 Summary(pl.UTF-8): Biblioteka statyczna Alsaplayera
369 Group: Development/Libraries
370 Requires: %{name}-devel = %{version}-%{release}
373 Alsaplayer static library.
375 %description static -l pl.UTF-8
376 Biblioteka statyczna Alsaplayera.
388 CPPFLAGS=" -I/usr/X11R6/include"
389 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
390 export CPPFLAGS LDFLAGS
392 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
393 %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
394 %{?with_flac:--en}%{!?with_flac:--dis}able-oggflac \
395 %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
396 %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
397 %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
398 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
411 rm -rf $RPM_BUILD_ROOT
412 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
415 DESTDIR=$RPM_BUILD_ROOT \
416 pkgconfigdir=%{_pkgconfigdir}
418 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
419 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
421 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
422 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
423 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
424 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
425 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la}
430 rm -rf $RPM_BUILD_ROOT
432 %post -p /sbin/ldconfig
433 %postun -p /sbin/ldconfig
435 %files -f %{name}.lang
436 %defattr(644,root,root,755)
437 %doc AUTHORS README ChangeLog
438 %attr(755,root,root) %{_bindir}/alsaplayer
439 %attr(755,root,root) %{_libdir}/libalsaplayer.so.*.*.*
440 %attr(755,root,root) %ghost %{_libdir}/libalsaplayer.so.0
442 %dir %{_pkglibdir}/input
443 %dir %{_pkglibdir}/interface
444 %dir %{_pkglibdir}/output
445 %dir %{_pkglibdir}/reader
446 %dir %{_pkglibdir}/scopes2
447 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
448 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
449 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
450 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
451 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
452 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
454 %{_desktopdir}/%{name}.desktop
455 %{_pixmapsdir}/%{name}.png
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
461 %files interface-gtk2
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
465 %files interface-text
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
469 %files interface-xosd
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
473 %files input-audiofile
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
484 %defattr(644,root,root,755)
485 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
494 %defattr(644,root,root,755)
495 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
502 %defattr(644,root,root,755)
503 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
507 %defattr(644,root,root,755)
508 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
519 %defattr(644,root,root,755)
520 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_pkglibdir}/scopes2/libblurscope.so
526 %attr(755,root,root) %{_pkglibdir}/scopes2/liblevelmeter.so
527 %attr(755,root,root) %{_pkglibdir}/scopes2/liblogbarfft.so
528 %attr(755,root,root) %{_pkglibdir}/scopes2/libmonoscope.so
529 %attr(755,root,root) %{_pkglibdir}/scopes2/libspacescope.so
530 %attr(755,root,root) %{_pkglibdir}/scopes2/libsynaescope.so
532 %files scopes2-opengl
533 %defattr(644,root,root,755)
534 %attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so
537 %defattr(644,root,root,755)
538 %attr(755,root,root) %{_libdir}/libalsaplayer.so
539 %{_libdir}/libalsaplayer.la
540 %{_includedir}/alsaplayer
541 %{_pkgconfigdir}/alsaplayer.pc
544 %defattr(644,root,root,755)
545 %{_libdir}/libalsaplayer.a