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: 04f8c2321a37d15f40f9ee21251c6202
18 Source1: %{name}.desktop
20 Patch0: %{name}-docs.patch
21 Patch1: %{name}-g++.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 >= 0.2.4}
29 %{?with_flac:BuildRequires: flac-c++-devel >= 1.2.0}
30 BuildRequires: gtk+2-devel >= 1:2.0.3
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 >= 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}
164 %description input-audiofile
165 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
166 WAVE, ...) using audiofile library.
168 %description input-audiofile -l pl.UTF-8
169 Wtyczka alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
170 AIFC, WAVE, ...) przy użyciu biblioteki audiofile.
173 Summary: Alsaplayer plugin for playing FLAC files
174 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików FLAC
175 Group: Applications/Sound
176 Requires: %{name} = %{version}-%{release}
178 %description input-flac
179 Alsaplayer plugin for playing FLAC files.
181 %description input-flac -l pl.UTF-8
182 Wtyczka alsaplayera do odtwarzania plików FLAC.
185 Summary: Alsaplayer plugin for playing MP3 files using MAD
186 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
187 Group: Applications/Sound
188 Requires: %{name} = %{version}-%{release}
190 %description input-mad
191 Alsaplayer plugin for playing MP3 files using MAD.
193 %description input-mad -l pl.UTF-8
194 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
196 %package input-mikmod
197 Summary: Alsaplayer plugin for playing mod files
198 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików mod
199 Group: Applications/Sound
200 Requires: %{name} = %{version}-%{release}
202 %description input-mikmod
203 Alsaplayer plugin for playing mod files.
205 %description input-mikmod -l pl.UTF-8
206 Wtyczka alsaplayera do odtwarzania plików mod.
208 %package input-sndfile
209 Summary: Alsaplayer plugin for playing WAVE audio formats using libsndfile
210 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu libsndfile
211 Group: Applications/Sound
212 Requires: %{name} = %{version}-%{release}
214 %description input-sndfile
215 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
216 WAVE, ...) using libsndfile library.
218 %description input-sndfile -l pl.UTF-8
219 Wtyczka do alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
220 AIFC, WAVE, ...) przy użyciu biblioteki libsndfile.
222 %package input-vorbis
223 Summary: Alsaplayer plugin for playing Ogg/Vorbis files
224 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis
225 Group: Applications/Sound
226 Requires: %{name} = %{version}-%{release}
228 %description input-vorbis
229 Alsaplayer plugin for playing Ogg/Vorbis files.
231 %description input-vorbis -l pl.UTF-8
232 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
234 %package interface-gtk2
235 Summary: GTK+ 2 interface for Alsaplayer
236 Summary(pl.UTF-8): Interfejs GTK+ 2 alsaplayera
237 Group: X11/Applications/Sound
238 Requires: %{name} = %{version}-%{release}
239 Provides: alsaplayer_ui
240 Obsoletes: alsaplayer-interface-gtk
242 %description interface-gtk2
243 GTK+ 2 interface for Alsaplayer.
245 %description interface-gtk2 -l pl.UTF-8
246 Interfejs GTK+2 alsaplayera.
248 %package interface-text
249 Summary: Text interface for Alsaplayer
250 Summary(pl.UTF-8): Interfejs tekstowy alsaplayera
251 Group: Applications/Sound
252 Requires: %{name} = %{version}-%{release}
253 Provides: alsaplayer_ui
255 %description interface-text
256 Text interface for Alsaplayer.
258 %description interface-text -l pl.UTF-8
259 Interfejs tekstowy alsaplayera.
261 %package interface-xosd
262 Summary: xosd interface for Alsaplayer
263 Summary(pl.UTF-8): Interfejs xosd alsaplayera
264 Group: X11/Applications/Sound
265 Requires: %{name} = %{version}-%{release}
266 Provides: alsaplayer_ui
268 %description interface-xosd
269 xosd interface for Alsaplayer.
271 %description interface-xosd -l pl.UTF-8
272 Interfejs xosd alsaplayera.
275 Summary: Alsaplayer plugin for playing through alsa drivers
276 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
277 Group: Applications/Sound
278 Requires: %{name} = %{version}-%{release}
279 Provides: alsaplayer_output
281 %description output-alsa
282 Alsaplayer plugin for playing sound through alsa drivers.
284 %description output-alsa -l pl.UTF-8
285 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
287 %package output-esound
288 Summary: Alsaplayer plugin for playing through esound daemon
289 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez demona esound
290 Group: Applications/Sound
291 Requires: %{name} = %{version}-%{release}
292 Provides: alsaplayer_output
294 %description output-esound
295 Alsaplayer plugin for playing sound through esound daemon.
297 %description output-esound -l pl.UTF-8
298 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
301 Summary: Alsaplayer plugin for playing through NAS daemon
302 Summary(pl.UTF-8): Wtyczka do alsaplayera do odtwarzania przez demona NAS
303 Group: Applications/Sound
304 Requires: %{name} = %{version}-%{release}
305 Provides: alsaplayer_output
307 %description output-nas
308 Alsaplayer plugin for playing sound through NAS (network audio system)
311 %description output-nas -l pl.UTF-8
312 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
316 Summary: Alsaplayer plugin for playing sound through JACK
317 Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a
318 Group: Applications/Sound
319 Requires: %{name} = %{version}-%{release}
320 Provides: alsaplayer_output
322 %description output-jack
323 Alsaplayer plugin for sound through JACK system.
325 %description output-jack -l pl.UTF-8
326 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
329 Summary: Alsaplayer plugins for visualization
330 Summary(pl.UTF-8): Wtyczki alsaplayera do wizualizacji
331 Group: X11/Applications/Multimedia
332 Requires: %{name} = %{version}-%{release}
333 Obsoletes: alsaplayer-scopes-gtk
335 %description scopes2-gtk
336 Alsaplayer plugins for visualization.
338 %description scopes2-gtk -l pl.UTF-8
339 Wtyczki do alsaplayera do wizualizacji.
341 %package scopes2-opengl
342 Summary: Alsaplayer plugin for visualization using OpenGL
343 Summary(pl.UTF-8): Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
344 Group: X11/Applications/Multimedia
345 Requires: %{name} = %{version}-%{release}
347 Obsoletes: alsaplayer-scopes-opengl
349 %description scopes2-opengl
350 Alsaplayer plugin for visualization using OpenGL.
352 %description scopes2-opengl -l pl.UTF-8
353 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
356 Summary: Alsaplayer header files
357 Summary(pl.UTF-8): Pliki nagłówkowe Alsaplayera
358 Group: Development/Libraries
359 Requires: %{name} = %{version}-%{release}
362 Header files for Alsaplayer library.
364 %description devel -l pl.UTF-8
365 Pliki nagłówkowe biblioteki Alsaplayera.
368 Summary: Alsaplayer static library
369 Summary(pl.UTF-8): Biblioteka statyczna Alsaplayera
370 Group: Development/Libraries
371 Requires: %{name}-devel = %{version}-%{release}
374 Alsaplayer static library.
376 %description static -l pl.UTF-8
377 Biblioteka statyczna Alsaplayera.
390 CPPFLAGS=" -I/usr/X11R6/include"
391 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
392 export CPPFLAGS LDFLAGS
394 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
395 %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
396 %{?with_flac:--en}%{!?with_flac:--dis}able-oggflac \
397 %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
398 %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
399 %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
400 %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
413 rm -rf $RPM_BUILD_ROOT
414 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
417 DESTDIR=$RPM_BUILD_ROOT \
418 pkgconfigdir=%{_pkgconfigdir}
420 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
421 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
423 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
424 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
425 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
426 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
427 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la}
432 rm -rf $RPM_BUILD_ROOT
434 %post -p /sbin/ldconfig
435 %postun -p /sbin/ldconfig
437 %files -f %{name}.lang
438 %defattr(644,root,root,755)
439 %doc AUTHORS README ChangeLog
440 %attr(755,root,root) %{_bindir}/alsaplayer
441 %attr(755,root,root) %{_libdir}/libalsaplayer.so.*.*.*
442 %attr(755,root,root) %ghost %{_libdir}/libalsaplayer.so.0
444 %dir %{_pkglibdir}/input
445 %dir %{_pkglibdir}/interface
446 %dir %{_pkglibdir}/output
447 %dir %{_pkglibdir}/reader
448 %dir %{_pkglibdir}/scopes2
449 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
450 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
451 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
452 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
453 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
454 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
456 %{_desktopdir}/%{name}.desktop
457 %{_pixmapsdir}/%{name}.png
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
463 %files interface-gtk2
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
467 %files interface-text
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
471 %files interface-xosd
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
475 %files input-audiofile
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
496 %defattr(644,root,root,755)
497 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
504 %defattr(644,root,root,755)
505 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
509 %defattr(644,root,root,755)
510 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
526 %defattr(644,root,root,755)
527 %attr(755,root,root) %{_pkglibdir}/scopes2/libblurscope.so
528 %attr(755,root,root) %{_pkglibdir}/scopes2/liblevelmeter.so
529 %attr(755,root,root) %{_pkglibdir}/scopes2/liblogbarfft.so
530 %attr(755,root,root) %{_pkglibdir}/scopes2/libmonoscope.so
531 %attr(755,root,root) %{_pkglibdir}/scopes2/libspacescope.so
532 %attr(755,root,root) %{_pkglibdir}/scopes2/libsynaescope.so
534 %files scopes2-opengl
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so
539 %defattr(644,root,root,755)
540 %attr(755,root,root) %{_libdir}/libalsaplayer.so
541 %{_libdir}/libalsaplayer.la
542 %{_includedir}/alsaplayer
543 %{_pkgconfigdir}/alsaplayer.pc
546 %defattr(644,root,root,755)
547 %{_libdir}/libalsaplayer.a