]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
6a8798bad42a404bebcc8f93f2bb149aebbfbaa6
[packages/alsaplayer.git] / alsaplayer.spec
1 #
2 # Conditional build
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
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.77
13 Release:        1
14 License:        GPL
15 Group:          Applications/Sound
16 Source0:        http://www.alsaplayer.org/%{name}-%{version}.tar.bz2
17 # Source0-md5:  3280795b199ae1bb245559ccbbca5c02
18 Source1:        %{name}.desktop
19 Source2:        %{name}.png
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 >= 0.2.4}
30 %{?with_flac:BuildRequires:     flac-devel >= 1.1.3}
31 BuildRequires:  gtk+-devel
32 BuildRequires:  gtk+2-devel >= 1:2.0.3
33 %{?with_jack:BuildRequires:     jack-audio-connection-kit-devel >= 0.69.1}
34 %{?with_flac:BuildRequires:     libid3tag-devel}
35 BuildRequires:  libmad-devel
36 %{?with_mikmod:BuildRequires:   libmikmod-devel}
37 BuildRequires:  libsndfile-devel >= 1.0.4
38 BuildRequires:  libstdc++-devel
39 BuildRequires:  libtool
40 BuildRequires:  libvorbis-devel
41 %{?with_nas:BuildRequires:      nas-devel}
42 BuildRequires:  pkgconfig
43 BuildRequires:  xosd-devel
44 Requires(post): /sbin/ldconfig
45 Requires:       alsaplayer_output
46 Requires:       alsaplayer_ui
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-gtk
234 Summary:        GTK+ interface for Alsaplayer
235 Summary(pl.UTF-8):      Interfejs GTK+ alsaplayera
236 Group:          X11/Applications/Sound
237 Requires:       %{name} = %{version}-%{release}
238 Provides:       alsaplayer_ui
239
240 %description interface-gtk
241 GTK+ interface for Alsaplayer.
242
243 %description interface-gtk -l pl.UTF-8
244 Interfejs GTK+ alsaplayera.
245
246 %package interface-gtk2
247 Summary:        GTK+ 2 interface for Alsaplayer
248 Summary(pl.UTF-8):      Interfejs GTK+ 2 alsaplayera
249 Group:          X11/Applications/Sound
250 Requires:       %{name} = %{version}-%{release}
251 Provides:       alsaplayer_ui
252
253 %description interface-gtk2
254 GTK+ 2 interface for Alsaplayer.
255
256 %description interface-gtk2 -l pl.UTF-8
257 Interfejs GTK+2 alsaplayera.
258
259 %package interface-text
260 Summary:        Text interface for Alsaplayer
261 Summary(pl.UTF-8):      Interfejs tekstowy alsaplayera
262 Group:          Applications/Sound
263 Requires:       %{name} = %{version}-%{release}
264 Provides:       alsaplayer_ui
265
266 %description interface-text
267 Text interface for Alsaplayer.
268
269 %description interface-text -l pl.UTF-8
270 Interfejs tekstowy alsaplayera.
271
272 %package interface-xosd
273 Summary:        xosd interface for Alsaplayer
274 Summary(pl.UTF-8):      Interfejs xosd alsaplayera
275 Group:          X11/Applications/Sound
276 Requires:       %{name} = %{version}-%{release}
277 Provides:       alsaplayer_ui
278
279 %description interface-xosd
280 xosd interface for Alsaplayer.
281
282 %description interface-xosd -l pl.UTF-8
283 Interfejs xosd alsaplayera.
284
285 %package output-alsa
286 Summary:        Alsaplayer plugin for playing through alsa drivers
287 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
288 Group:          Applications/Sound
289 Requires:       %{name} = %{version}-%{release}
290 Provides:       alsaplayer_output
291
292 %description output-alsa
293 Alsaplayer plugin for playing sound through alsa drivers.
294
295 %description output-alsa -l pl.UTF-8
296 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
297
298 %package output-esound
299 Summary:        Alsaplayer plugin for playing through esound daemon
300 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania przez demona esound
301 Group:          Applications/Sound
302 Requires:       %{name} = %{version}-%{release}
303 Provides:       alsaplayer_output
304
305 %description output-esound
306 Alsaplayer plugin for playing sound through esound daemon.
307
308 %description output-esound -l pl.UTF-8
309 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
310
311 %package output-nas
312 Summary:        Alsaplayer plugin for playing through NAS daemon
313 Summary(pl.UTF-8):      Wtyczka do alsaplayera do odtwarzania przez demona NAS
314 Group:          Applications/Sound
315 Requires:       %{name} = %{version}-%{release}
316 Provides:       alsaplayer_output
317
318 %description output-nas
319 Alsaplayer plugin for playing sound through NAS (network audio system)
320 daemon.
321
322 %description output-nas -l pl.UTF-8
323 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
324 audio system).
325
326 %package output-jack
327 Summary:        Alsaplayer plugin for playing sound through JACK
328 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a
329 Group:          Applications/Sound
330 Requires:       %{name} = %{version}-%{release}
331 Provides:       alsaplayer_output
332
333 %description output-jack
334 Alsaplayer plugin for sound through JACK system.
335
336 %description output-jack -l pl.UTF-8
337 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
338
339 %package scopes-gtk
340 Summary:        Alsaplayer plugins for visualization
341 Summary(pl.UTF-8):      Wtyczki alsaplayera do wizualizacji
342 Group:          X11/Applications/Multimedia
343 Requires:       %{name} = %{version}-%{release}
344
345 %description scopes-gtk
346 Alsaplayer plugins for visualization.
347
348 %description scopes-gtk -l pl.UTF-8
349 Wtyczki do alsaplayera do wizualizacji.
350
351 %package scopes-opengl
352 Summary:        Alsaplayer plugin for visualization using OpenGL
353 Summary(pl.UTF-8):      Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
354 Group:          X11/Applications/Multimedia
355 Requires:       %{name} = %{version}-%{release}
356 Requires:       OpenGL
357
358 %description scopes-opengl
359 Alsaplayer plugin for visualization using OpenGL.
360
361 %description scopes-opengl -l pl.UTF-8
362 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
363
364 %package devel
365 Summary:        Alsaplayer header files
366 Summary(pl.UTF-8):      Pliki nagłówkowe Alsaplayera
367 Group:          Development/Libraries
368 Requires:       %{name} = %{version}-%{release}
369
370 %description devel
371 Header files for Alsaplayer library.
372
373 %description devel -l pl.UTF-8
374 Pliki nagłówkowe biblioteki Alsaplayera.
375
376 %package static
377 Summary:        Alsaplayer static library
378 Summary(pl.UTF-8):      Biblioteka statyczna Alsaplayera
379 Group:          Development/Libraries
380 Requires:       %{name}-devel = %{version}-%{release}
381
382 %description static
383 Alsaplayer static library.
384
385 %description static -l pl.UTF-8
386 Biblioteka statyczna Alsaplayera.
387
388 %prep
389 %setup -q
390 %patch0 -p1
391 %patch1 -p1
392 %patch2 -p1
393
394 %build
395 rm -f missing
396 %{__libtoolize}
397 %{__aclocal}
398 %{__autoconf}
399 %{__automake}
400 CPPFLAGS=" -I/usr/X11R6/include"
401 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
402 export CPPFLAGS LDFLAGS
403 %configure \
404         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
405         %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
406         %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
407         %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
408         %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
409         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
410         --enable-alsa \
411         --enable-audiofile \
412         --enable-gtk \
413         --enable-oggflac \
414         --enable-oggvorbis \
415         --enable-opengl \
416         --enable-oss \
417         --enable-static
418
419 %{__make}
420
421 %install
422 rm -rf $RPM_BUILD_ROOT
423 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
424
425 %{__make} install \
426         DESTDIR=$RPM_BUILD_ROOT \
427         pkgconfigdir=%{_pkgconfigdir}
428
429 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
430 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
431
432 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
433 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
434 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
435 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
436 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
437
438 %clean
439 rm -rf $RPM_BUILD_ROOT
440
441 %post
442 /sbin/ldconfig
443 echo
444 echo "Remember to install appropriate alsaplayer-input-* plugins"
445 echo "for files you want to play, for example:"
446 echo "alsaplayer-input-mad to play MP3s."
447 echo
448
449 %postun -p /sbin/ldconfig
450
451 %files
452 %defattr(644,root,root,755)
453 %doc AUTHORS README ChangeLog
454 %attr(755,root,root) %{_bindir}/alsaplayer
455 %attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
456 %dir %{_pkglibdir}
457 %dir %{_pkglibdir}/input
458 %dir %{_pkglibdir}/interface
459 %dir %{_pkglibdir}/output
460 %dir %{_pkglibdir}/reader
461 %dir %{_pkglibdir}/scopes
462 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
463 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
464 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
465 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
466 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
467 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
468 %{_mandir}/man*/*
469 %{_desktopdir}/%{name}.desktop
470 %{_pixmapsdir}/%{name}.png
471
472 %files daemon
473 %defattr(644,root,root,755)
474 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
475
476 %files interface-gtk
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
479
480 %files interface-gtk2
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
483
484 %files interface-text
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
487
488 %files interface-xosd
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
491
492 %files input-audiofile
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
495
496 %if %{with flac}
497 %files input-flac
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
500 %endif
501
502 %files input-mad
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
505
506 %if %{with mikmod}
507 %files input-mikmod
508 %defattr(644,root,root,755)
509 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
510 %endif
511
512 %files input-sndfile
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
515
516 %files input-vorbis
517 %defattr(644,root,root,755)
518 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
519
520 %files output-alsa
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
523
524 %if %{with esound}
525 %files output-esound
526 %defattr(644,root,root,755)
527 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
528 %endif
529
530 %if %{with jack}
531 %files output-jack
532 %defattr(644,root,root,755)
533 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
534 %endif
535
536 %if %{with nas}
537 %files output-nas
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
540 %endif
541
542 %files scopes-gtk
543 %defattr(644,root,root,755)
544 %attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
545 %attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
546 %attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
547 %attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
548 %attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
549 %attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
550
551 %files scopes-opengl
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
554
555 %files devel
556 %defattr(644,root,root,755)
557 %attr(755,root,root) %{_libdir}/libalsaplayer.so
558 %{_libdir}/libalsaplayer.la
559 %{_includedir}/alsaplayer
560 %{_pkgconfigdir}/alsaplayer.pc
561
562 %files static
563 %defattr(644,root,root,755)
564 %{_libdir}/libalsaplayer.a
This page took 0.079997 seconds and 2 git commands to generate.