]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
flac rebuild
[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:        3
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 >= 0.1.7
25 BuildRequires:  autoconf >= 2.50
26 BuildRequires:  automake
27 %{?with_esound:BuildRequires:   esound-devel >= 0.2.4}
28 %{?with_flac:BuildRequires:     flac-c++-devel >= 1.2.0}
29 BuildRequires:  glib2-devel >= 2.0.3
30 BuildRequires:  gtk+2-devel >= 2:2.10.0
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 >= 3.1.7}
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)
49
50 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
51 %define         _pkglibdir      %{_libdir}/%{name}
52
53 %description
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.
56 Features include:
57
58 Input addons:
59 - MP2 and MP3 support
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)
64 - MAD MPEG audio
65 - Module support (mikmod) (subpcakage)
66 - FLAC support
67
68 Output addons:
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
76 - null :-)
77
78 Visual scopes:
79 - Stereoscope
80 - Monoscope
81 - Levelmeter
82 - Spacescope
83 - FFTscope
84 - FFTscope II
85 - Spectrum GL
86
87 General features:
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
98 - Effects stream
99 - Software based volume/pan control
100 - Accurate scope/audio syncing using ALSA features
101
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:
105
106 Wejście:
107 - obsługa MP2 i MP3
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
115
116 Wyjście:
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)
124 - null :-)
125
126 Wizualizacja:
127 - Stereoskop
128 - Monoskop
129 - Wskaźnik poziomu dźwięku
130 - Wskaźniki oparte o analizę FFT
131 - analizator spektrum sygnału w oparciu o OpenGL
132
133 Ogólne cechy:
134 - Kontrola szybkości (w obie strony)
135 - obsługa kolejki (playlisty)
136 - obsługa wielu wskaźników naraz
137 - wielowątkowość
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
145
146 %package daemon
147 Summary:        Deamon interface for Alsaplayer
148 Summary(pl.UTF-8):      Interfejs demona alsaplayera
149 Group:          Applications/Sound
150 Requires:       %{name} = %{version}-%{release}
151
152 %description daemon
153 Deamon interface for Alsaplayer.
154
155 %description daemon -l pl.UTF-8
156 Interfejs demona alsaplayera.
157
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}
163 Requires:       audiofile >= 0.1.7
164
165 %description input-audiofile
166 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
167 WAVE, ...) using audiofile library.
168
169 %description input-audiofile -l pl.UTF-8
170 Wtyczka alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
171 AIFC, WAVE, ...) przy użyciu biblioteki audiofile.
172
173 %package input-flac
174 Summary:        Alsaplayer plugin for playing FLAC files
175 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików FLAC
176 Group:          Applications/Sound
177 Requires:       %{name} = %{version}-%{release}
178
179 %description input-flac
180 Alsaplayer plugin for playing FLAC files.
181
182 %description input-flac -l pl.UTF-8
183 Wtyczka alsaplayera do odtwarzania plików FLAC.
184
185 %package input-mad
186 Summary:        Alsaplayer plugin for playing MP3 files using MAD
187 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
188 Group:          Applications/Sound
189 Requires:       %{name} = %{version}-%{release}
190
191 %description input-mad
192 Alsaplayer plugin for playing MP3 files using MAD.
193
194 %description input-mad -l pl.UTF-8
195 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
196
197 %package input-mikmod
198 Summary:        Alsaplayer plugin for playing mod files
199 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików mod
200 Group:          Applications/Sound
201 Requires:       %{name} = %{version}-%{release}
202 Requires:       libmikmod >= 3.1.7
203
204 %description input-mikmod
205 Alsaplayer plugin for playing mod files.
206
207 %description input-mikmod -l pl.UTF-8
208 Wtyczka alsaplayera do odtwarzania plików mod.
209
210 %package input-sndfile
211 Summary:        Alsaplayer plugin for playing WAVE audio formats using libsndfile
212 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu libsndfile
213 Group:          Applications/Sound
214 Requires:       %{name} = %{version}-%{release}
215 Requires:       libsndfile >= 1.0.4
216
217 %description input-sndfile
218 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
219 WAVE, ...) using libsndfile library.
220
221 %description input-sndfile -l pl.UTF-8
222 Wtyczka do alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
223 AIFC, WAVE, ...) przy użyciu biblioteki libsndfile.
224
225 %package input-vorbis
226 Summary:        Alsaplayer plugin for playing Ogg/Vorbis files
227 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis
228 Group:          Applications/Sound
229 Requires:       %{name} = %{version}-%{release}
230
231 %description input-vorbis
232 Alsaplayer plugin for playing Ogg/Vorbis files.
233
234 %description input-vorbis -l pl.UTF-8
235 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
236
237 %package interface-gtk2
238 Summary:        GTK+ 2 interface for Alsaplayer
239 Summary(pl.UTF-8):      Interfejs GTK+ 2 alsaplayera
240 Group:          X11/Applications/Sound
241 Requires:       %{name} = %{version}-%{release}
242 Requires:       gtk+2 >= 2:2.10.0
243 Provides:       alsaplayer_ui
244 Obsoletes:      alsaplayer-interface-gtk
245
246 %description interface-gtk2
247 GTK+ 2 interface for Alsaplayer.
248
249 %description interface-gtk2 -l pl.UTF-8
250 Interfejs GTK+2 alsaplayera.
251
252 %package interface-text
253 Summary:        Text interface for Alsaplayer
254 Summary(pl.UTF-8):      Interfejs tekstowy alsaplayera
255 Group:          Applications/Sound
256 Requires:       %{name} = %{version}-%{release}
257 Provides:       alsaplayer_ui
258
259 %description interface-text
260 Text interface for Alsaplayer.
261
262 %description interface-text -l pl.UTF-8
263 Interfejs tekstowy alsaplayera.
264
265 %package interface-xosd
266 Summary:        xosd interface for Alsaplayer
267 Summary(pl.UTF-8):      Interfejs xosd alsaplayera
268 Group:          X11/Applications/Sound
269 Requires:       %{name} = %{version}-%{release}
270 Provides:       alsaplayer_ui
271
272 %description interface-xosd
273 xosd interface for Alsaplayer.
274
275 %description interface-xosd -l pl.UTF-8
276 Interfejs xosd alsaplayera.
277
278 %package output-alsa
279 Summary:        Alsaplayer plugin for playing through alsa drivers
280 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
281 Group:          Applications/Sound
282 Requires:       %{name} = %{version}-%{release}
283 Provides:       alsaplayer_output
284
285 %description output-alsa
286 Alsaplayer plugin for playing sound through alsa drivers.
287
288 %description output-alsa -l pl.UTF-8
289 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
290
291 %package output-esound
292 Summary:        Alsaplayer plugin for playing through esound daemon
293 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania przez demona esound
294 Group:          Applications/Sound
295 Requires:       %{name} = %{version}-%{release}
296 Requires:       esound-libs >= 0.2.4
297 Provides:       alsaplayer_output
298
299 %description output-esound
300 Alsaplayer plugin for playing sound through esound daemon.
301
302 %description output-esound -l pl.UTF-8
303 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
304
305 %package output-nas
306 Summary:        Alsaplayer plugin for playing through NAS daemon
307 Summary(pl.UTF-8):      Wtyczka do alsaplayera do odtwarzania przez demona NAS
308 Group:          Applications/Sound
309 Requires:       %{name} = %{version}-%{release}
310 Provides:       alsaplayer_output
311
312 %description output-nas
313 Alsaplayer plugin for playing sound through NAS (network audio system)
314 daemon.
315
316 %description output-nas -l pl.UTF-8
317 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
318 audio system).
319
320 %package output-jack
321 Summary:        Alsaplayer plugin for playing sound through JACK
322 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a
323 Group:          Applications/Sound
324 Requires:       %{name} = %{version}-%{release}
325 Requires:       jack-audio-connection-kit-libs >= 0.69.1
326 Provides:       alsaplayer_output
327
328 %description output-jack
329 Alsaplayer plugin for sound through JACK system.
330
331 %description output-jack -l pl.UTF-8
332 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
333
334 %package scopes2-gtk
335 Summary:        Alsaplayer plugins for visualization
336 Summary(pl.UTF-8):      Wtyczki alsaplayera do wizualizacji
337 Group:          X11/Applications/Multimedia
338 Requires:       %{name} = %{version}-%{release}
339 Obsoletes:      alsaplayer-scopes-gtk
340
341 %description scopes2-gtk
342 Alsaplayer plugins for visualization.
343
344 %description scopes2-gtk -l pl.UTF-8
345 Wtyczki do alsaplayera do wizualizacji.
346
347 %package scopes2-opengl
348 Summary:        Alsaplayer plugin for visualization using OpenGL
349 Summary(pl.UTF-8):      Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
350 Group:          X11/Applications/Multimedia
351 Requires:       %{name} = %{version}-%{release}
352 Requires:       OpenGL
353 Obsoletes:      alsaplayer-scopes-opengl
354
355 %description scopes2-opengl
356 Alsaplayer plugin for visualization using OpenGL.
357
358 %description scopes2-opengl -l pl.UTF-8
359 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
360
361 %package devel
362 Summary:        Alsaplayer header files
363 Summary(pl.UTF-8):      Pliki nagłówkowe Alsaplayera
364 Group:          Development/Libraries
365 Requires:       %{name} = %{version}-%{release}
366
367 %description devel
368 Header files for Alsaplayer library.
369
370 %description devel -l pl.UTF-8
371 Pliki nagłówkowe biblioteki Alsaplayera.
372
373 %package static
374 Summary:        Alsaplayer static library
375 Summary(pl.UTF-8):      Biblioteka statyczna Alsaplayera
376 Group:          Development/Libraries
377 Requires:       %{name}-devel = %{version}-%{release}
378
379 %description static
380 Alsaplayer static library.
381
382 %description static -l pl.UTF-8
383 Biblioteka statyczna Alsaplayera.
384
385 %prep
386 %setup -q
387 %patch0 -p1
388
389 %build
390 %{__libtoolize}
391 %{__aclocal}
392 %{__autoconf}
393 %{__autoheader}
394 %{__automake}
395 %configure \
396         --enable-alsa \
397         --enable-audiofile \
398         --enable-esd%{!?with_esound:=no} \
399         --enable-flac%{!?with_flac:=no} \
400         --enable-gtk2 \
401         --enable-jack%{!?with_jack:=no} \
402         --enable-mikmod%{!?with_mikmod:=no} \
403         --enable-nas%{!?with_nas:=no} \
404         --enable-oggflac%{!?with_flac:=no} \
405         --enable-oggvorbis \
406         --enable-opengl \
407         --enable-oss \
408         --enable-static
409
410 %{__make}
411
412 %install
413 rm -rf $RPM_BUILD_ROOT
414 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
415
416 %{__make} install \
417         DESTDIR=$RPM_BUILD_ROOT
418
419 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
420 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
421
422 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
423 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
424 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
425 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
426 %{__rm} $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la}
427
428 %find_lang %{name}
429
430 %clean
431 rm -rf $RPM_BUILD_ROOT
432
433 %post   -p /sbin/ldconfig
434 %postun -p /sbin/ldconfig
435
436 %files -f %{name}.lang
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.*.*.*
441 %attr(755,root,root) %ghost %{_libdir}/libalsaplayer.so.0
442 %dir %{_pkglibdir}
443 %dir %{_pkglibdir}/input
444 %dir %{_pkglibdir}/interface
445 %dir %{_pkglibdir}/output
446 %dir %{_pkglibdir}/reader
447 %dir %{_pkglibdir}/scopes2
448 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
449 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
450 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
451 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
452 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
453 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
454 %{_mandir}/man*/*
455 %{_desktopdir}/%{name}.desktop
456 %{_pixmapsdir}/%{name}.png
457
458 %files daemon
459 %defattr(644,root,root,755)
460 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
461
462 %files interface-gtk2
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
465
466 %files interface-text
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
469
470 %files interface-xosd
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
473
474 %files input-audiofile
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
477
478 %if %{with flac}
479 %files input-flac
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
482 %endif
483
484 %files input-mad
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
487
488 %if %{with mikmod}
489 %files input-mikmod
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
492 %endif
493
494 %files input-sndfile
495 %defattr(644,root,root,755)
496 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
497
498 %files input-vorbis
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
501
502 %files output-alsa
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
505
506 %if %{with esound}
507 %files output-esound
508 %defattr(644,root,root,755)
509 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
510 %endif
511
512 %if %{with jack}
513 %files output-jack
514 %defattr(644,root,root,755)
515 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
516 %endif
517
518 %if %{with nas}
519 %files output-nas
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
522 %endif
523
524 %files scopes2-gtk
525 %defattr(644,root,root,755)
526 %attr(755,root,root) %{_pkglibdir}/scopes2/libblurscope.so
527 %attr(755,root,root) %{_pkglibdir}/scopes2/liblevelmeter.so
528 %attr(755,root,root) %{_pkglibdir}/scopes2/liblogbarfft.so
529 %attr(755,root,root) %{_pkglibdir}/scopes2/libmonoscope.so
530 %attr(755,root,root) %{_pkglibdir}/scopes2/libspacescope.so
531 %attr(755,root,root) %{_pkglibdir}/scopes2/libsynaescope.so
532
533 %files scopes2-opengl
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so
536
537 %files devel
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_libdir}/libalsaplayer.so
540 %{_libdir}/libalsaplayer.la
541 %{_includedir}/alsaplayer
542 %{_pkgconfigdir}/alsaplayer.pc
543
544 %files static
545 %defattr(644,root,root,755)
546 %{_libdir}/libalsaplayer.a
This page took 0.1116 seconds and 4 git commands to generate.