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): Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/OGG/WAV
15 Group: Applications/Sound
16 Source0: ftp://ftp.alsa-project.org/pub/people/andy/%{name}-%{version}.tar.bz2
17 # Source0-md5: a5566c15dbae1f5c86a08482eb405725
18 Source1: %{name}.desktop
20 Patch0: %{name}-docs.patch
21 Patch1: %{name}-gcc33.patch
22 URL: http://www.alsaplayer.org/
23 BuildRequires: OpenGL-devel
24 BuildRequires: alsa-lib-devel
25 BuildRequires: audiofile-devel
26 BuildRequires: autoconf
27 BuildRequires: automake
28 %{?with_esound:BuildRequires: esound-devel}
29 %{?with_flac:BuildRequires: flac-devel}
30 BuildRequires: gtk+-devel
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}
35 BuildRequires: libsndfile-devel
36 BuildRequires: libstdc++-devel
37 BuildRequires: libtool
38 BuildRequires: libvorbis-devel
39 %{?with_nas:BuildRequires: nas-devel}
40 BuildRequires: xosd-devel
41 Requires(post): /sbin/ldconfig
42 Requires: alsaplayer_output
43 Requires: alsaplayer_ui
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define _noautoreqdep libGL.so.1 libGLU.so.1
47 %define _pkglibdir %{_libdir}/%{name}
50 AlsaPlayer is a new type of PCM player. It is heavily multi-threaded
51 and tries to exercise the ALSA library and driver quite a bit.
56 - Ogg Vorbis support (subpackage)
57 - WAV support, 8-, 16-bit, mono, stereo, any sample rate
58 - CDDA support, CD Digital Audio playback! and thus USB ready :)
59 - Also plays files mapped by audiofs (CDDA)
61 - Module support (mikmod) (subpcakage)
65 - ALSA. Best supported of course :) (subpackage)
66 - OSS. Kernel native sound drivers
67 - Sparc. UltraSparc sound drivers
68 - SGI. SGI audio library driver
69 - ESD. Enlightened sound daemon support (subpackage)
70 - NAS. Network Audio System (subpakcage)
71 - low latency JACK output
84 - Full speed (pitch) control, positive *and* negative! (First Linux
85 player that does this!! MP3's and CD's do varispeed :)
86 - Queue (playlist) support
87 - Concurrent visual scopes (open as many as you want)
88 - Multi-threaded design for efficient/skip free playback (RT)
89 - GUI Interface based on gtk+
90 - NOGUI operation for shell script usage
91 - On-screen-display based on xosd
92 - Plug-in core architecture
93 - Low latency mode, as low as 5ms when scheduled RT
95 - Software based volume/pan control
96 - Accurate scope/audio syncing using ALSA features
99 AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielow±tkowy i próbuje
100 solidnie przeæwiczyæ sterowniki i bibliotekê ALSA. Jego cechy to:
104 - obs³uga Ogg Vorbis (w podpakiecie)
105 - obs³uga WAV, 8 i 16-bitowych, mono, stereo o dowolnej czêstotliwo¶ci
106 - obs³uga CD Digital Audio
107 - odtwarzanie plików podmapowanych przez audiofs (CDDA)
108 - obs³uga MAD - MPEG Audio
109 - obs³uga modu³ów (mikmod) (w podpakiecie)
110 - obs³ug bezstratnej kompresji d¼wiêku FLAC
113 - OSS - natywne sterowniki z j±dra
114 - ALSA - oczywi¶cie najlepiej obs³ugiwana :) (w podpakiecie)
115 - Sparc - sterowniki d¼wiêku dla UltraSparca
116 - SGI - biblioteka sterowników d¼wiêku SGI
117 - ESD - obs³uga O¶wieconego demona d¼wiêku (w podpakiecie)
118 - NAS - Sieciowego Systemu Audio (w podpakiecie)
119 - JACK - zestaw po³±czeñ d¼wiêku o ma³ych opó¼nieniach (w podpakiecie)
125 - Wska¼nik poziomu d¼wiêku
126 - Wska¼niki oparte o analizê FFT
127 - analizator spektrum sygna³u w oparciu o OpenGL
130 - Kontrola szybko¶ci (w obie strony)
131 - obs³uga kolejki (playlisty)
132 - obs³uga wielu wska¼ników naraz
134 - interfejs graficzny bazuj±cy na gtk+
135 - operacje bez GUI na potrzeby skryptów
136 - tryb Informacje-na-ekranie oparty o xosd
137 - architektura wtyczek
138 - tryb "czasu rzeczywistego" daj±cy opó¼nienia rzêdu 5ms
139 - programowa kontrola g³o¶no¶ci i balansu
140 - synchronizacja d¼wiêku i wska¼ników przy u¿yciu mo¿liwo¶ci ALSA
143 Summary: Deamon interface for Alsaplayer
144 Summary(pl): Interfejs demona alsaplayera
145 Group: Applications/Sound
146 Requires: %{name} = %{version}
149 Deamon interface for Alsaplayer.
151 %description daemon -l pl
152 Interfejs demona alsaplayera.
154 %package input-audiofile
155 Summary: Alsaplayer plugin for playing wave audio formats using audiofile
156 Summary(pl): Wtyczka alsaplayera do odtwarzania plików audio typu wave przy u¿yciu audiofile
157 Group: Applications/Sound
158 Requires: %{name} = %{version}
160 %description input-audiofile
161 Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
162 WAVE, ...) using audiofile library.
164 %description input-audiofile -l pl
165 Wtyczka alsaplayera do odtwarzania plików audio typu wave (AIFF,
166 AIFC, WAVE, ...) przy u¿yciu biblioteki audiofile.
169 Summary: Alsaplayer plugin for playing FLAC files
170 Summary(pl): Wtyczka alsaplayera do odtwarzania plików FLAC
171 Group: Applications/Sound
172 Requires: %{name} = %{version}
174 %description input-flac
175 Alsaplayer plugin for playing FLAC files.
177 %description input-flac -l pl
178 Wtyczka alsaplayera do odtwarzania plików FLAC.
181 Summary: Alsaplayer plugin for playing MP3 files using MAD
182 Summary(pl): Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
183 Group: Applications/Sound
184 Requires: %{name} = %{version}
186 %description input-mad
187 Alsaplayer plugin for playing MP3 files using MAD.
189 %description input-mad -l pl
190 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
192 %package input-mikmod
193 Summary: Alsaplayer plugin for playing mod files
194 Summary(pl): Wtyczka alsaplayera do odtwarzania plików mod
195 Group: Applications/Sound
196 Requires: %{name} = %{version}
198 %description input-mikmod
199 Alsaplayer plugin for playing mod files.
201 %description input-mikmod -l pl
202 Wtyczka alsaplayera do odtwarzania plików mod.
204 %package input-sndfile
205 Summary: Alsaplayer plugin for playing wave audio formats using libsndfile
206 Summary(pl): Wtyczka alsaplayera do odtwarzania plików audio typu wave przy u¿yciu libsndfile
207 Group: Applications/Sound
208 Requires: %{name} = %{version}
210 %description input-sndfile
211 Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
212 WAVE, ...) using libsndfile library.
214 %description input-sndfile -l pl
215 Wtyczka do alsaplayera do odtwarzania plików audio typu wave (AIFF,
216 AIFC, WAVE, ...) przy u¿yciu biblioteki libsndfile.
218 %package input-vorbis
219 Summary: Alsaplayer plugin for playing ogg/vorbis files
220 Summary(pl): Wtyczka alsaplayera do odtwarzania plików ogg/vorbis
221 Group: Applications/Sound
222 Requires: %{name} = %{version}
224 %description input-vorbis
225 Alsaplayer plugin for playing ogg/vorbis files.
227 %description input-vorbis -l pl
228 Wtyczka alsaplayera do odtwarzania plików ogg/vorbis.
230 %package interface-gtk
231 Summary: GTK+ interface for Alsaplayer
232 Summary(pl): Interfejs GTK+ alsaplayera
233 Group: X11/Applications/Sound
234 Provides: alsaplayer_ui
235 Requires: %{name} = %{version}
237 %description interface-gtk
238 GTK+ interface for Alsaplayer.
240 %description interface-gtk -l pl
241 Interfejs GTK+ alsaplayera.
243 %package interface-text
244 Summary: Text interface for Alsaplayer
245 Summary(pl): Interfejs tekstowy alsaplayera
246 Group: Applications/Sound
247 Provides: alsaplayer_ui
248 Requires: %{name} = %{version}
250 %description interface-text
251 Text interface for Alsaplayer.
253 %description interface-text -l pl
254 Interfejs tekstowy alsaplayera.
256 %package interface-xosd
257 Summary: xosd interface for Alsaplayer
258 Summary(pl): Interfejs xosd alsaplayera
259 Group: X11/Applications/Sound
260 Provides: alsaplayer_ui
261 Requires: %{name} = %{version}
263 %description interface-xosd
264 xosd interface for Alsaplayer.
266 %description interface-xosd -l pl
267 Interfejs xosd alsaplayera.
270 Summary: Alsaplayer plugin for playing through alsa drivers
271 Summary(pl): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
272 Group: Applications/Sound
273 Provides: alsaplayer_output
274 Requires: %{name} = %{version}
276 %description output-alsa
277 Alsaplayer plugin for playing sound through alsa drivers.
279 %description output-alsa -l pl
280 Wtyczka alsaplayera do odtwarzania d¼wiêku przez sterowniki alsa.
282 %package output-esound
283 Summary: Alsaplayer plugin for playing through esound daemon
284 Summary(pl): Wtyczka alsaplayera do odtwarzania przez demona esound
285 Group: Applications/Sound
286 Provides: alsaplayer_output
287 Requires: %{name} = %{version}
289 %description output-esound
290 Alsaplayer plugin for playing sound through esound daemon.
292 %description output-esound -l pl
293 Wtyczka alsaplayera do odtwarzania d¼wiêku przez demona esound.
296 Summary: Alsaplayer plugin for playing through NAS daemon
297 Summary(pl): Wtyczka do alsaplayera do odtwarzania przez demona NAS
298 Group: Applications/Sound
299 Provides: alsaplayer_output
300 Requires: %{name} = %{version}
302 %description output-nas
303 Alsaplayer plugin for playing sound through NAS (network audio system)
306 %description output-nas -l pl
307 Wtyczka alsaplayera do odtwarzania d¼wiêku przez demona NAS (network
311 Summary: Alsaplayer plugin for playing sound through JACK
312 Summary(pl): Wtyczka alsaplayera do odtwarzania d¼wiêku przez JACK
313 Group: Applications/Sound
314 Provides: alsaplayer_output
315 Requires: %{name} = %{version}
317 %description output-jack
318 Alsaplayer plugin for sound through JACK system.
320 %description output-jack -l pl
321 Wtyczka alsaplayera do odtwarzania d¼wiêku przez system JACK.
324 Summary: Alsaplayer plugins for visualization
325 Summary(pl): Wtyczki alsaplayera do wizualizacji
326 Group: X11/Applications/Multimedia
327 Requires: %{name} = %{version}
329 %description scopes-gtk
330 Alsaplayer plugins for visualization.
332 %description scopes-gtk -l pl
333 Wtyczki do alsaplayera do wizualizacji.
335 %package scopes-opengl
336 Summary: Alsaplayer plugin for visualization using OpenGL
337 Summary(pl): Wtyczka alsaplayera do wizualizacji z u¿yciem OpenGL
338 Group: X11/Applications/Multimedia
339 Requires: %{name} = %{version}
342 %description scopes-opengl
343 Alsaplayer plugin for visualization using OpenGL.
345 %description scopes-opengl -l pl
346 Wtyczka do alsaplayera do wizualizacji z u¿yciem OpenGL.
349 Summary: Alsaplayer header files
350 Summary(pl): Pliki nag³ówkowe Alsaplayera
351 Group: Development/Libraries
352 Requires: %{name} = %{version}
355 Header files for Alsaplayer library.
357 %description devel -l pl
358 Pliki nag³ówkowe biblioteki Alsaplayera.
361 Summary: Alsaplayer static library
362 Summary(pl): Biblioteka statyczna Alsaplayera
363 Group: Development/Libraries
364 Requires: %{name}-devel = %{version}
367 Alsaplayer static library.
369 %description static -l pl
370 Biblioteka statyczna Alsaplayera.
383 CPPFLAGS=" -I/usr/X11R6/include"
384 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
385 export CPPFLAGS LDFLAGS
387 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
388 %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
389 %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
390 %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
391 %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
392 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
405 rm -rf $RPM_BUILD_ROOT
406 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
409 DESTDIR=$RPM_BUILD_ROOT \
410 pkgconfigdir=%{_pkgconfigdir}
412 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
413 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
415 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
416 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
417 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
418 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
419 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
422 rm -rf $RPM_BUILD_ROOT
427 echo "Remember to install appropriate alsaplayer-input-* plugins"
428 echo "for files you want to play, for example:"
429 echo "alsaplayer-input-mad to play mp3s."
432 %postun -p /sbin/ldconfig
435 %defattr(644,root,root,755)
436 %doc AUTHORS README ChangeLog
437 %attr(755,root,root) %{_bindir}/alsaplayer
438 %attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
440 %dir %{_pkglibdir}/input
441 %dir %{_pkglibdir}/interface
442 %dir %{_pkglibdir}/output
443 %dir %{_pkglibdir}/reader
444 %dir %{_pkglibdir}/scopes
445 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
446 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
447 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
448 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
449 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
450 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
452 %{_desktopdir}/%{name}.desktop
453 %{_pixmapsdir}/%{name}.png
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
463 %files interface-text
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
467 %files interface-xosd
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
471 %files input-audiofile
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
496 %defattr(644,root,root,755)
497 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
511 %defattr(644,root,root,755)
512 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
517 %defattr(644,root,root,755)
518 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
524 %attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
525 %attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
526 %attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
527 %attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
528 %attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
531 %defattr(644,root,root,755)
532 %attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_libdir}/libalsaplayer.so
537 %{_libdir}/libalsaplayer.la
538 %{_includedir}/alsaplayer
539 %{_pkgconfigdir}/alsaplayer.pc
542 %defattr(644,root,root,755)
543 %{_libdir}/libalsaplayer.a