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 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}
30 %{?with_flac:BuildRequires: flac-devel >= 1.1.3}
31 BuildRequires: gtk+-devel
32 %{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.69.1}
33 %{?with_flac:BuildRequires: libid3tag-devel}
34 BuildRequires: libmad-devel
35 %{?with_mikmod:BuildRequires: libmikmod-devel}
36 BuildRequires: libsndfile-devel
37 BuildRequires: libstdc++-devel
38 BuildRequires: libtool
39 BuildRequires: libvorbis-devel
40 %{?with_nas:BuildRequires: nas-devel}
41 BuildRequires: xosd-devel
42 Requires(post): /sbin/ldconfig
43 Requires: alsaplayer_output
44 Requires: alsaplayer_ui
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define _noautoreqdep libGL.so.1 libGLU.so.1
48 %define _pkglibdir %{_libdir}/%{name}
51 AlsaPlayer is a new type of PCM player. It is heavily multi-threaded
52 and tries to exercise the ALSA library and driver quite a bit.
57 - Ogg Vorbis support (subpackage)
58 - WAV support, 8-, 16-bit, mono, stereo, any sample rate
59 - CDDA support, CD Digital Audio playback! and thus USB ready :)
60 - Also plays files mapped by audiofs (CDDA)
62 - Module support (mikmod) (subpcakage)
66 - ALSA. Best supported of course :) (subpackage)
67 - OSS. Kernel native sound drivers
68 - Sparc. UltraSparc sound drivers
69 - SGI. SGI audio library driver
70 - ESD. Enlightened sound daemon support (subpackage)
71 - NAS. Network Audio System (subpakcage)
72 - low latency JACK output
85 - Full speed (pitch) control, positive *and* negative! (First Linux
86 player that does this!! MP3's and CD's do varispeed :)
87 - Queue (playlist) support
88 - Concurrent visual scopes (open as many as you want)
89 - Multi-threaded design for efficient/skip free playback (RT)
90 - GUI Interface based on GTK+
91 - NOGUI operation for shell script usage
92 - On-screen-display based on xosd
93 - Plug-in core architecture
94 - Low latency mode, as low as 5ms when scheduled RT
96 - Software based volume/pan control
97 - Accurate scope/audio syncing using ALSA features
100 AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielow±tkowy i próbuje
101 solidnie przeæwiczyæ sterowniki i bibliotekê ALSA. Jego cechy to:
105 - obs³uga Ogg Vorbis (w podpakiecie)
106 - obs³uga WAV, 8 i 16-bitowych, mono, stereo o dowolnej czêstotliwo¶ci
107 - obs³uga CD Digital Audio
108 - odtwarzanie plików podmapowanych przez audiofs (CDDA)
109 - obs³uga MAD - MPEG Audio
110 - obs³uga modu³ów (mikmod) (w podpakiecie)
111 - obs³ug bezstratnej kompresji d¼wiêku FLAC
114 - OSS - natywne sterowniki z j±dra
115 - ALSA - oczywi¶cie najlepiej obs³ugiwana :) (w podpakiecie)
116 - Sparc - sterowniki d¼wiêku dla UltraSparca
117 - SGI - biblioteka sterowników d¼wiêku SGI
118 - ESD - obs³uga O¶wieconego demona d¼wiêku (w podpakiecie)
119 - NAS - Sieciowego Systemu Audio (w podpakiecie)
120 - JACK - zestaw po³±czeñ d¼wiêku o ma³ych opó¼nieniach (w podpakiecie)
126 - Wska¼nik poziomu d¼wiêku
127 - Wska¼niki oparte o analizê FFT
128 - analizator spektrum sygna³u w oparciu o OpenGL
131 - Kontrola szybko¶ci (w obie strony)
132 - obs³uga kolejki (playlisty)
133 - obs³uga wielu wska¼ników naraz
135 - interfejs graficzny bazuj±cy na GTK+
136 - operacje bez GUI na potrzeby skryptów
137 - tryb Informacje-na-ekranie oparty o xosd
138 - architektura wtyczek
139 - tryb "czasu rzeczywistego" daj±cy opó¼nienia rzêdu 5ms
140 - programowa kontrola g³o¶no¶ci i balansu
141 - synchronizacja d¼wiêku i wska¼ników przy u¿yciu mo¿liwo¶ci ALSA
144 Summary: Deamon interface for Alsaplayer
145 Summary(pl): Interfejs demona alsaplayera
146 Group: Applications/Sound
147 Requires: %{name} = %{version}-%{release}
150 Deamon interface for Alsaplayer.
152 %description daemon -l pl
153 Interfejs demona alsaplayera.
155 %package input-audiofile
156 Summary: Alsaplayer plugin for playing WAVE audio formats using audiofile
157 Summary(pl): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy u¿yciu audiofile
158 Group: Applications/Sound
159 Requires: %{name} = %{version}-%{release}
161 %description input-audiofile
162 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
163 WAVE, ...) using audiofile library.
165 %description input-audiofile -l pl
166 Wtyczka alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
167 AIFC, WAVE, ...) przy u¿yciu biblioteki audiofile.
170 Summary: Alsaplayer plugin for playing FLAC files
171 Summary(pl): Wtyczka alsaplayera do odtwarzania plików FLAC
172 Group: Applications/Sound
173 Requires: %{name} = %{version}-%{release}
175 %description input-flac
176 Alsaplayer plugin for playing FLAC files.
178 %description input-flac -l pl
179 Wtyczka alsaplayera do odtwarzania plików FLAC.
182 Summary: Alsaplayer plugin for playing MP3 files using MAD
183 Summary(pl): Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
184 Group: Applications/Sound
185 Requires: %{name} = %{version}-%{release}
187 %description input-mad
188 Alsaplayer plugin for playing MP3 files using MAD.
190 %description input-mad -l pl
191 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
193 %package input-mikmod
194 Summary: Alsaplayer plugin for playing mod files
195 Summary(pl): Wtyczka alsaplayera do odtwarzania plików mod
196 Group: Applications/Sound
197 Requires: %{name} = %{version}-%{release}
199 %description input-mikmod
200 Alsaplayer plugin for playing mod files.
202 %description input-mikmod -l pl
203 Wtyczka alsaplayera do odtwarzania plików mod.
205 %package input-sndfile
206 Summary: Alsaplayer plugin for playing WAVE audio formats using libsndfile
207 Summary(pl): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy u¿yciu libsndfile
208 Group: Applications/Sound
209 Requires: %{name} = %{version}-%{release}
211 %description input-sndfile
212 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
213 WAVE, ...) using libsndfile library.
215 %description input-sndfile -l pl
216 Wtyczka do alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
217 AIFC, WAVE, ...) przy u¿yciu biblioteki libsndfile.
219 %package input-vorbis
220 Summary: Alsaplayer plugin for playing Ogg/Vorbis files
221 Summary(pl): Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis
222 Group: Applications/Sound
223 Requires: %{name} = %{version}-%{release}
225 %description input-vorbis
226 Alsaplayer plugin for playing Ogg/Vorbis files.
228 %description input-vorbis -l pl
229 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
231 %package interface-gtk
232 Summary: GTK+ interface for Alsaplayer
233 Summary(pl): Interfejs GTK+ alsaplayera
234 Group: X11/Applications/Sound
235 Requires: %{name} = %{version}-%{release}
236 Provides: alsaplayer_ui
238 %description interface-gtk
239 GTK+ interface for Alsaplayer.
241 %description interface-gtk -l pl
242 Interfejs GTK+ alsaplayera.
244 %package interface-text
245 Summary: Text interface for Alsaplayer
246 Summary(pl): Interfejs tekstowy alsaplayera
247 Group: Applications/Sound
248 Requires: %{name} = %{version}-%{release}
249 Provides: alsaplayer_ui
251 %description interface-text
252 Text interface for Alsaplayer.
254 %description interface-text -l pl
255 Interfejs tekstowy alsaplayera.
257 %package interface-xosd
258 Summary: xosd interface for Alsaplayer
259 Summary(pl): Interfejs xosd alsaplayera
260 Group: X11/Applications/Sound
261 Requires: %{name} = %{version}-%{release}
262 Provides: alsaplayer_ui
264 %description interface-xosd
265 xosd interface for Alsaplayer.
267 %description interface-xosd -l pl
268 Interfejs xosd alsaplayera.
271 Summary: Alsaplayer plugin for playing through alsa drivers
272 Summary(pl): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
273 Group: Applications/Sound
274 Requires: %{name} = %{version}-%{release}
275 Provides: alsaplayer_output
277 %description output-alsa
278 Alsaplayer plugin for playing sound through alsa drivers.
280 %description output-alsa -l pl
281 Wtyczka alsaplayera do odtwarzania d¼wiêku przez sterowniki alsa.
283 %package output-esound
284 Summary: Alsaplayer plugin for playing through esound daemon
285 Summary(pl): Wtyczka alsaplayera do odtwarzania przez demona esound
286 Group: Applications/Sound
287 Requires: %{name} = %{version}-%{release}
288 Provides: alsaplayer_output
290 %description output-esound
291 Alsaplayer plugin for playing sound through esound daemon.
293 %description output-esound -l pl
294 Wtyczka alsaplayera do odtwarzania d¼wiêku przez demona esound.
297 Summary: Alsaplayer plugin for playing through NAS daemon
298 Summary(pl): Wtyczka do alsaplayera do odtwarzania przez demona NAS
299 Group: Applications/Sound
300 Requires: %{name} = %{version}-%{release}
301 Provides: alsaplayer_output
303 %description output-nas
304 Alsaplayer plugin for playing sound through NAS (network audio system)
307 %description output-nas -l pl
308 Wtyczka alsaplayera do odtwarzania d¼wiêku przez demona NAS (network
312 Summary: Alsaplayer plugin for playing sound through JACK
313 Summary(pl): Wtyczka alsaplayera do odtwarzania d¼wiêku przez JACK-a
314 Group: Applications/Sound
315 Requires: %{name} = %{version}-%{release}
316 Provides: alsaplayer_output
318 %description output-jack
319 Alsaplayer plugin for sound through JACK system.
321 %description output-jack -l pl
322 Wtyczka alsaplayera do odtwarzania d¼wiêku przez system JACK.
325 Summary: Alsaplayer plugins for visualization
326 Summary(pl): Wtyczki alsaplayera do wizualizacji
327 Group: X11/Applications/Multimedia
328 Requires: %{name} = %{version}-%{release}
330 %description scopes-gtk
331 Alsaplayer plugins for visualization.
333 %description scopes-gtk -l pl
334 Wtyczki do alsaplayera do wizualizacji.
336 %package scopes-opengl
337 Summary: Alsaplayer plugin for visualization using OpenGL
338 Summary(pl): Wtyczka alsaplayera do wizualizacji z u¿yciem OpenGL
339 Group: X11/Applications/Multimedia
340 Requires: %{name} = %{version}-%{release}
343 %description scopes-opengl
344 Alsaplayer plugin for visualization using OpenGL.
346 %description scopes-opengl -l pl
347 Wtyczka do alsaplayera do wizualizacji z u¿yciem OpenGL.
350 Summary: Alsaplayer header files
351 Summary(pl): Pliki nag³ówkowe Alsaplayera
352 Group: Development/Libraries
353 Requires: %{name} = %{version}-%{release}
356 Header files for Alsaplayer library.
358 %description devel -l pl
359 Pliki nag³ówkowe biblioteki Alsaplayera.
362 Summary: Alsaplayer static library
363 Summary(pl): Biblioteka statyczna Alsaplayera
364 Group: Development/Libraries
365 Requires: %{name}-devel = %{version}-%{release}
368 Alsaplayer static library.
370 %description static -l pl
371 Biblioteka statyczna Alsaplayera.
385 CPPFLAGS=" -I/usr/X11R6/include"
386 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
387 export CPPFLAGS LDFLAGS
389 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
390 %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
391 %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
392 %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
393 %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
394 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
407 rm -rf $RPM_BUILD_ROOT
408 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
411 DESTDIR=$RPM_BUILD_ROOT \
412 pkgconfigdir=%{_pkgconfigdir}
414 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
415 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
417 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
418 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
419 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
420 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
421 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
424 rm -rf $RPM_BUILD_ROOT
429 echo "Remember to install appropriate alsaplayer-input-* plugins"
430 echo "for files you want to play, for example:"
431 echo "alsaplayer-input-mad to play MP3s."
434 %postun -p /sbin/ldconfig
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.0.0.2
442 %dir %{_pkglibdir}/input
443 %dir %{_pkglibdir}/interface
444 %dir %{_pkglibdir}/output
445 %dir %{_pkglibdir}/reader
446 %dir %{_pkglibdir}/scopes
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
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_pkglibdir}/interface/libgtk_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}/scopes/libblurscope.so
526 %attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
527 %attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
528 %attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
529 %attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
530 %attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
533 %defattr(644,root,root,755)
534 %attr(755,root,root) %{_pkglibdir}/scopes/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