]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
- updated to 0.99.81
[packages/alsaplayer.git] / alsaplayer.spec
1 #
2 # Conditional build
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
8 #
9 Summary:        Alsaplayer - CD/FLAC/MOD/MP3/Ogg/WAV player
10 Summary(pl.UTF-8):      Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/Ogg/WAV
11 Name:           alsaplayer
12 Version:        0.99.81
13 Release:        1
14 License:        GPL v3+
15 Group:          Applications/Sound
16 Source0:        http://www.alsaplayer.org/%{name}-%{version}.tar.bz2
17 # Source0-md5:  845c53975791ba342e316ceac8aa1527
18 Source1:        %{name}.desktop
19 Source2:        %{name}.png
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)
48
49 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
50 %define         _pkglibdir      %{_libdir}/%{name}
51
52 %description
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.
55 Features include:
56
57 Input addons:
58 - MP2 and MP3 support
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)
63 - MAD MPEG audio
64 - Module support (mikmod) (subpcakage)
65 - FLAC support
66
67 Output addons:
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
75 - null :-)
76
77 Visual scopes:
78 - Stereoscope
79 - Monoscope
80 - Levelmeter
81 - Spacescope
82 - FFTscope
83 - FFTscope II
84 - Spectrum GL
85
86 General features:
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
97 - Effects stream
98 - Software based volume/pan control
99 - Accurate scope/audio syncing using ALSA features
100
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:
104
105 Wejście:
106 - obsługa MP2 i MP3
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
114
115 Wyjście:
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)
123 - null :-)
124
125 Wizualizacja:
126 - Stereoskop
127 - Monoskop
128 - Wskaźnik poziomu dźwięku
129 - Wskaźniki oparte o analizę FFT
130 - analizator spektrum sygnału w oparciu o OpenGL
131
132 Ogólne cechy:
133 - Kontrola szybkości (w obie strony)
134 - obsługa kolejki (playlisty)
135 - obsługa wielu wskaźników naraz
136 - wielowątkowość
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
144
145 %package daemon
146 Summary:        Deamon interface for Alsaplayer
147 Summary(pl.UTF-8):      Interfejs demona alsaplayera
148 Group:          Applications/Sound
149 Requires:       %{name} = %{version}-%{release}
150
151 %description daemon
152 Deamon interface for Alsaplayer.
153
154 %description daemon -l pl.UTF-8
155 Interfejs demona alsaplayera.
156
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}
162
163 %description input-audiofile
164 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
165 WAVE, ...) using audiofile library.
166
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.
170
171 %package input-flac
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}
176
177 %description input-flac
178 Alsaplayer plugin for playing FLAC files.
179
180 %description input-flac -l pl.UTF-8
181 Wtyczka alsaplayera do odtwarzania plików FLAC.
182
183 %package input-mad
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}
188
189 %description input-mad
190 Alsaplayer plugin for playing MP3 files using MAD.
191
192 %description input-mad -l pl.UTF-8
193 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
194
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}
200
201 %description input-mikmod
202 Alsaplayer plugin for playing mod files.
203
204 %description input-mikmod -l pl.UTF-8
205 Wtyczka alsaplayera do odtwarzania plików mod.
206
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}
212
213 %description input-sndfile
214 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
215 WAVE, ...) using libsndfile library.
216
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.
220
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}
226
227 %description input-vorbis
228 Alsaplayer plugin for playing Ogg/Vorbis files.
229
230 %description input-vorbis -l pl.UTF-8
231 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
232
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
240
241 %description interface-gtk2
242 GTK+ 2 interface for Alsaplayer.
243
244 %description interface-gtk2 -l pl.UTF-8
245 Interfejs GTK+2 alsaplayera.
246
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
253
254 %description interface-text
255 Text interface for Alsaplayer.
256
257 %description interface-text -l pl.UTF-8
258 Interfejs tekstowy alsaplayera.
259
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
266
267 %description interface-xosd
268 xosd interface for Alsaplayer.
269
270 %description interface-xosd -l pl.UTF-8
271 Interfejs xosd alsaplayera.
272
273 %package output-alsa
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
279
280 %description output-alsa
281 Alsaplayer plugin for playing sound through alsa drivers.
282
283 %description output-alsa -l pl.UTF-8
284 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
285
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
292
293 %description output-esound
294 Alsaplayer plugin for playing sound through esound daemon.
295
296 %description output-esound -l pl.UTF-8
297 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
298
299 %package output-nas
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
305
306 %description output-nas
307 Alsaplayer plugin for playing sound through NAS (network audio system)
308 daemon.
309
310 %description output-nas -l pl.UTF-8
311 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
312 audio system).
313
314 %package output-jack
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
320
321 %description output-jack
322 Alsaplayer plugin for sound through JACK system.
323
324 %description output-jack -l pl.UTF-8
325 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
326
327 %package scopes2-gtk
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
333
334 %description scopes2-gtk
335 Alsaplayer plugins for visualization.
336
337 %description scopes2-gtk -l pl.UTF-8
338 Wtyczki do alsaplayera do wizualizacji.
339
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}
345 Requires:       OpenGL
346 Obsoletes:      alsaplayer-scopes-opengl
347
348 %description scopes2-opengl
349 Alsaplayer plugin for visualization using OpenGL.
350
351 %description scopes2-opengl -l pl.UTF-8
352 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
353
354 %package devel
355 Summary:        Alsaplayer header files
356 Summary(pl.UTF-8):      Pliki nagłówkowe Alsaplayera
357 Group:          Development/Libraries
358 Requires:       %{name} = %{version}-%{release}
359
360 %description devel
361 Header files for Alsaplayer library.
362
363 %description devel -l pl.UTF-8
364 Pliki nagłówkowe biblioteki Alsaplayera.
365
366 %package static
367 Summary:        Alsaplayer static library
368 Summary(pl.UTF-8):      Biblioteka statyczna Alsaplayera
369 Group:          Development/Libraries
370 Requires:       %{name}-devel = %{version}-%{release}
371
372 %description static
373 Alsaplayer static library.
374
375 %description static -l pl.UTF-8
376 Biblioteka statyczna Alsaplayera.
377
378 %prep
379 %setup -q
380 %patch0 -p1
381
382 %build
383 rm -f missing
384 %{__libtoolize}
385 %{__aclocal}
386 %{__autoconf}
387 %{__automake}
388 CPPFLAGS=" -I/usr/X11R6/include"
389 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
390 export CPPFLAGS LDFLAGS
391 %configure \
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 \
399         --enable-alsa \
400         --enable-audiofile \
401         --enable-gtk2 \
402         --enable-oggflac \
403         --enable-oggvorbis \
404         --enable-opengl \
405         --enable-oss \
406         --enable-static
407
408 %{__make}
409
410 %install
411 rm -rf $RPM_BUILD_ROOT
412 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
413
414 %{__make} install \
415         DESTDIR=$RPM_BUILD_ROOT \
416         pkgconfigdir=%{_pkgconfigdir}
417
418 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
419 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
420
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}
426
427 %find_lang %{name}
428
429 %clean
430 rm -rf $RPM_BUILD_ROOT
431
432 %post   -p /sbin/ldconfig
433 %postun -p /sbin/ldconfig
434
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
441 %dir %{_pkglibdir}
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
453 %{_mandir}/man*/*
454 %{_desktopdir}/%{name}.desktop
455 %{_pixmapsdir}/%{name}.png
456
457 %files daemon
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
460
461 %files interface-gtk2
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
464
465 %files interface-text
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
468
469 %files interface-xosd
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
472
473 %files input-audiofile
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
476
477 %if %{with flac}
478 %files input-flac
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
481 %endif
482
483 %files input-mad
484 %defattr(644,root,root,755)
485 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
486
487 %if %{with mikmod}
488 %files input-mikmod
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
491 %endif
492
493 %files input-sndfile
494 %defattr(644,root,root,755)
495 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
496
497 %files input-vorbis
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
500
501 %files output-alsa
502 %defattr(644,root,root,755)
503 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
504
505 %if %{with esound}
506 %files output-esound
507 %defattr(644,root,root,755)
508 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
509 %endif
510
511 %if %{with jack}
512 %files output-jack
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
515 %endif
516
517 %if %{with nas}
518 %files output-nas
519 %defattr(644,root,root,755)
520 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
521 %endif
522
523 %files scopes2-gtk
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
531
532 %files scopes2-opengl
533 %defattr(644,root,root,755)
534 %attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so
535
536 %files devel
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
542
543 %files static
544 %defattr(644,root,root,755)
545 %{_libdir}/libalsaplayer.a
This page took 0.084201 seconds and 3 git commands to generate.