]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
- esound, flac, jack, mikmod, nas bconds added
[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):    Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/OGG/WAV
11 Name:           alsaplayer
12 Version:        0.99.76
13 Release:        1
14 License:        GPL
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
19 Source2:        %{name}.png
20 Patch0:         %{name}-docs.patch
21 Patch1:         %{name}-gcc33.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}
29 %{?with_flac:BuildRequires:     flac-devel}
30 BuildRequires:  gtk+-devel
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
36 BuildRequires:  libstdc++-devel
37 BuildRequires:  libtool
38 BuildRequires:  libvorbis-devel
39 %{?with_nas:BuildRequires:      nas-devel}
40 BuildRequires:  xosd-devel
41 Requires(post): /sbin/ldconfig
42 Requires:       alsaplayer_output
43 Requires:       alsaplayer_ui
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
47 %define         _pkglibdir      %{_libdir}/%{name}
48
49 %description
50 AlsaPlayer is a new type of PCM player. It is heavily multi-threaded
51 and tries to exercise the ALSA library and driver quite a bit.
52 Features include:
53
54 Input addons:
55  - MP2 and MP3 support
56  - Ogg Vorbis support (subpackage)
57  - WAV support, 8-, 16-bit, mono, stereo, any sample rate
58  - CDDA support, CD Digital Audio playback! and thus USB ready :)
59  - Also plays files mapped by audiofs (CDDA)
60  - MAD MPEG audio
61  - Module support (mikmod) (subpcakage)
62  - FLAC support
63
64 Output addons:
65  - ALSA. Best supported of course :) (subpackage)
66  - OSS. Kernel native sound drivers
67  - Sparc. UltraSparc sound drivers
68  - SGI. SGI audio library driver
69  - ESD. Enlightened sound daemon support (subpackage)
70  - NAS. Network Audio System (subpakcage)
71  - low latency JACK output
72  - null :-)
73
74 Visual scopes:
75  - Stereoscope
76  - Monoscope
77  - Levelmeter
78  - Spacescope
79  - FFTscope
80  - FFTscope II
81  - Spectrum GL
82
83 General features:
84  - Full speed (pitch) control, positive *and* negative! (First Linux
85    player that does this!! MP3's and CD's do varispeed :)
86  - Queue (playlist) support
87  - Concurrent visual scopes (open as many as you want)
88  - Multi-threaded design for efficient/skip free playback (RT)
89  - GUI Interface based on gtk+
90  - NOGUI operation for shell script usage
91  - On-screen-display based on xosd
92  - Plug-in core architecture
93  - Low latency mode, as low as 5ms when scheduled RT
94  - Effects stream
95  - Software based volume/pan control
96  - Accurate scope/audio syncing using ALSA features
97
98 %description -l pl
99 AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielow±tkowy i próbuje
100 solidnie przeæwiczyæ sterowniki i bibliotekê ALSA. Jego cechy to:
101
102 Wej¶cie:
103  - obs³uga MP2 i MP3
104  - obs³uga Ogg Vorbis (w podpakiecie)
105  - obs³uga WAV, 8 i 16-bitowych, mono, stereo o dowolnej czêstotliwo¶ci
106  - obs³uga CD Digital Audio
107  - odtwarzanie plików podmapowanych przez audiofs (CDDA)
108  - obs³uga MAD - MPEG Audio
109  - obs³uga modu³ów (mikmod) (w podpakiecie)
110  - obs³ug bezstratnej kompresji d¼wiêku FLAC
111
112 Wyj¶cie:
113  - OSS - natywne sterowniki z j±dra
114  - ALSA - oczywi¶cie najlepiej obs³ugiwana :) (w podpakiecie)
115  - Sparc - sterowniki d¼wiêku dla UltraSparca
116  - SGI - biblioteka sterowników d¼wiêku SGI
117  - ESD - obs³uga O¶wieconego demona d¼wiêku (w podpakiecie)
118  - NAS - Sieciowego Systemu Audio (w podpakiecie)
119  - JACK - zestaw po³±czeñ d¼wiêku o ma³ych opó¼nieniach (w podpakiecie)
120  - null :-)
121
122 Wizualizacja:
123  - Stereoskop
124  - Monoskop
125  - Wska¼nik poziomu d¼wiêku
126  - Wska¼niki oparte o analizê FFT
127  - analizator spektrum sygna³u w oparciu o OpenGL
128
129 Ogólne cechy:
130  - Kontrola szybko¶ci (w obie strony)
131  - obs³uga kolejki (playlisty)
132  - obs³uga wielu wska¼ników naraz
133  - wielow±tkowo¶æ
134  - interfejs graficzny bazuj±cy na gtk+
135  - operacje bez GUI na potrzeby skryptów
136  - tryb Informacje-na-ekranie oparty o xosd
137  - architektura wtyczek
138  - tryb "czasu rzeczywistego" daj±cy opó¼nienia rzêdu 5ms
139  - programowa kontrola g³o¶no¶ci i balansu
140  - synchronizacja d¼wiêku i wska¼ników przy u¿yciu mo¿liwo¶ci ALSA
141
142 %package daemon
143 Summary:        Deamon interface for Alsaplayer
144 Summary(pl):    Interfejs demona alsaplayera
145 Group:          Applications/Sound
146 Requires:       %{name} = %{version}
147
148 %description daemon
149 Deamon interface for Alsaplayer.
150
151 %description daemon -l pl
152 Interfejs demona alsaplayera.
153
154 %package input-audiofile
155 Summary:        Alsaplayer plugin for playing wave audio formats using audiofile
156 Summary(pl):    Wtyczka alsaplayera do odtwarzania plików audio typu wave przy u¿yciu audiofile
157 Group:          Applications/Sound
158 Requires:       %{name} = %{version}
159
160 %description input-audiofile
161 Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
162 WAVE, ...) using audiofile library.
163
164 %description input-audiofile -l pl
165 Wtyczka alsaplayera do odtwarzania plików audio typu wave (AIFF,
166 AIFC, WAVE, ...) przy u¿yciu biblioteki audiofile.
167
168 %package input-flac
169 Summary:        Alsaplayer plugin for playing FLAC files
170 Summary(pl):    Wtyczka alsaplayera do odtwarzania plików FLAC
171 Group:          Applications/Sound
172 Requires:       %{name} = %{version}
173
174 %description input-flac
175 Alsaplayer plugin for playing FLAC files.
176
177 %description input-flac -l pl
178 Wtyczka alsaplayera do odtwarzania plików FLAC.
179
180 %package input-mad
181 Summary:        Alsaplayer plugin for playing MP3 files using MAD
182 Summary(pl):    Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
183 Group:          Applications/Sound
184 Requires:       %{name} = %{version}
185
186 %description input-mad
187 Alsaplayer plugin for playing MP3 files using MAD.
188
189 %description input-mad -l pl
190 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
191
192 %package input-mikmod
193 Summary:        Alsaplayer plugin for playing mod files
194 Summary(pl):    Wtyczka alsaplayera do odtwarzania plików mod
195 Group:          Applications/Sound
196 Requires:       %{name} = %{version}
197
198 %description input-mikmod
199 Alsaplayer plugin for playing mod files.
200
201 %description input-mikmod -l pl
202 Wtyczka alsaplayera do odtwarzania plików mod.
203
204 %package input-sndfile
205 Summary:        Alsaplayer plugin for playing wave audio formats using libsndfile
206 Summary(pl):    Wtyczka alsaplayera do odtwarzania plików audio typu wave przy u¿yciu libsndfile
207 Group:          Applications/Sound
208 Requires:       %{name} = %{version}
209
210 %description input-sndfile
211 Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
212 WAVE, ...) using libsndfile library.
213
214 %description input-sndfile -l pl
215 Wtyczka do alsaplayera do odtwarzania plików audio typu wave (AIFF,
216 AIFC, WAVE, ...) przy u¿yciu biblioteki libsndfile.
217
218 %package input-vorbis
219 Summary:        Alsaplayer plugin for playing ogg/vorbis files
220 Summary(pl):    Wtyczka alsaplayera do odtwarzania plików ogg/vorbis
221 Group:          Applications/Sound
222 Requires:       %{name} = %{version}
223
224 %description input-vorbis
225 Alsaplayer plugin for playing ogg/vorbis files.
226
227 %description input-vorbis -l pl
228 Wtyczka alsaplayera do odtwarzania plików ogg/vorbis.
229
230 %package interface-gtk
231 Summary:        GTK+ interface for Alsaplayer
232 Summary(pl):    Interfejs GTK+ alsaplayera
233 Group:          X11/Applications/Sound
234 Provides:       alsaplayer_ui
235 Requires:       %{name} = %{version}
236
237 %description interface-gtk
238 GTK+ interface for Alsaplayer.
239
240 %description interface-gtk -l pl
241 Interfejs GTK+ alsaplayera.
242
243 %package interface-text
244 Summary:        Text interface for Alsaplayer
245 Summary(pl):    Interfejs tekstowy alsaplayera
246 Group:          Applications/Sound
247 Provides:       alsaplayer_ui
248 Requires:       %{name} = %{version}
249
250 %description interface-text
251 Text interface for Alsaplayer.
252
253 %description interface-text -l pl
254 Interfejs tekstowy alsaplayera.
255
256 %package interface-xosd
257 Summary:        xosd interface for Alsaplayer
258 Summary(pl):    Interfejs xosd alsaplayera
259 Group:          X11/Applications/Sound
260 Provides:       alsaplayer_ui
261 Requires:       %{name} = %{version}
262
263 %description interface-xosd
264 xosd interface for Alsaplayer.
265
266 %description interface-xosd -l pl
267 Interfejs xosd alsaplayera.
268
269 %package output-alsa
270 Summary:        Alsaplayer plugin for playing through alsa drivers
271 Summary(pl):    Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
272 Group:          Applications/Sound
273 Provides:       alsaplayer_output
274 Requires:       %{name} = %{version}
275
276 %description output-alsa
277 Alsaplayer plugin for playing sound through alsa drivers.
278
279 %description output-alsa -l pl
280 Wtyczka alsaplayera do odtwarzania d¼wiêku przez sterowniki alsa.
281
282 %package output-esound
283 Summary:        Alsaplayer plugin for playing through esound daemon
284 Summary(pl):    Wtyczka alsaplayera do odtwarzania przez demona esound
285 Group:          Applications/Sound
286 Provides:       alsaplayer_output
287 Requires:       %{name} = %{version}
288
289 %description output-esound
290 Alsaplayer plugin for playing sound through esound daemon.
291
292 %description output-esound -l pl
293 Wtyczka alsaplayera do odtwarzania d¼wiêku przez demona esound.
294
295 %package output-nas
296 Summary:        Alsaplayer plugin for playing through NAS daemon
297 Summary(pl):    Wtyczka do alsaplayera do odtwarzania przez demona NAS
298 Group:          Applications/Sound
299 Provides:       alsaplayer_output
300 Requires:       %{name} = %{version}
301
302 %description output-nas
303 Alsaplayer plugin for playing sound through NAS (network audio system)
304 daemon.
305
306 %description output-nas -l pl
307 Wtyczka alsaplayera do odtwarzania d¼wiêku przez demona NAS (network
308 audio system).
309
310 %package output-jack
311 Summary:        Alsaplayer plugin for playing sound through JACK
312 Summary(pl):    Wtyczka alsaplayera do odtwarzania d¼wiêku przez JACK
313 Group:          Applications/Sound
314 Provides:       alsaplayer_output
315 Requires:       %{name} = %{version}
316
317 %description output-jack
318 Alsaplayer plugin for sound through JACK system.
319
320 %description output-jack -l pl
321 Wtyczka alsaplayera do odtwarzania d¼wiêku przez system JACK.
322
323 %package scopes-gtk
324 Summary:        Alsaplayer plugins for visualization
325 Summary(pl):    Wtyczki alsaplayera do wizualizacji
326 Group:          X11/Applications/Multimedia
327 Requires:       %{name} = %{version}
328
329 %description scopes-gtk
330 Alsaplayer plugins for visualization.
331
332 %description scopes-gtk -l pl
333 Wtyczki do alsaplayera do wizualizacji.
334
335 %package scopes-opengl
336 Summary:        Alsaplayer plugin for visualization using OpenGL
337 Summary(pl):    Wtyczka alsaplayera do wizualizacji z u¿yciem OpenGL
338 Group:          X11/Applications/Multimedia
339 Requires:       %{name} = %{version}
340 Requires:       OpenGL
341
342 %description scopes-opengl
343 Alsaplayer plugin for visualization using OpenGL.
344
345 %description scopes-opengl -l pl
346 Wtyczka do alsaplayera do wizualizacji z u¿yciem OpenGL.
347
348 %package devel
349 Summary:        Alsaplayer header files
350 Summary(pl):    Pliki nag³ówkowe Alsaplayera
351 Group:          Development/Libraries
352 Requires:       %{name} = %{version}
353
354 %description devel
355 Header files for Alsaplayer library.
356
357 %description devel -l pl
358 Pliki nag³ówkowe biblioteki Alsaplayera.
359
360 %package static
361 Summary:        Alsaplayer static library
362 Summary(pl):    Biblioteka statyczna Alsaplayera
363 Group:          Development/Libraries
364 Requires:       %{name}-devel = %{version}
365
366 %description static
367 Alsaplayer static library.
368
369 %description static -l pl
370 Biblioteka statyczna Alsaplayera.
371
372 %prep
373 %setup -q
374 %patch0 -p1
375 %patch1 -p1
376
377 %build
378 rm -f missing
379 %{__libtoolize}
380 %{__aclocal}
381 %{__autoconf}
382 %{__automake}
383 CPPFLAGS=" -I/usr/X11R6/include"
384 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
385 export CPPFLAGS LDFLAGS
386 %configure \
387         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
388         %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
389         %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
390         %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
391         %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
392         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
393         --enable-alsa \
394         --enable-audiofile \
395         --enable-gtk \
396         --enable-oggflac \
397         --enable-oggvorbis \
398         --enable-opengl \
399         --enable-oss \
400         --enable-static \
401 %ifarch sparc
402         --enable-sparc
403 %endif
404
405 %{__make}
406
407 %install
408 rm -rf $RPM_BUILD_ROOT
409 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
410
411 %{__make} install \
412         DESTDIR=$RPM_BUILD_ROOT \
413         pkgconfigdir=%{_pkgconfigdir}
414
415 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
416 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
417
418 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
419 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
420 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
421 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
422 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
423
424 %clean
425 rm -rf $RPM_BUILD_ROOT
426
427 %post
428 /sbin/ldconfig
429 echo
430 echo "Remember to install appropriate alsaplayer-input-* plugins"
431 echo "for files you want to play, for example:"
432 echo "alsaplayer-input-mad to play mp3s."
433 echo
434
435 %postun -p /sbin/ldconfig
436
437 %files
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.0.0.2
442 %dir %{_pkglibdir}
443 %dir %{_pkglibdir}/input
444 %dir %{_pkglibdir}/interface
445 %dir %{_pkglibdir}/output
446 %dir %{_pkglibdir}/reader
447 %dir %{_pkglibdir}/scopes
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 %ifarch sparc
459 %attr(755,root,root) %{_pkglibdir}/output/libsparc_out.so
460 %endif
461
462 %files daemon
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
465
466 %files interface-gtk
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
469
470 %files interface-text
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
473
474 %files interface-xosd
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
477
478 %files input-audiofile
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
481
482 %if %{with flac}
483 %files input-flac
484 %defattr(644,root,root,755)
485 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
486 %endif
487
488 %files input-mad
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
491
492 %if %{with mikmod}
493 %files input-mikmod
494 %defattr(644,root,root,755)
495 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
496 %endif
497
498 %files input-sndfile
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
501
502 %files input-vorbis
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
505
506 %files output-alsa
507 %defattr(644,root,root,755)
508 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
509
510 %if %{with esound}
511 %files output-esound
512 %defattr(644,root,root,755)
513 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
514 %endif
515
516 %if %{with jack}
517 %files output-jack
518 %defattr(644,root,root,755)
519 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
520 %endif
521
522 %if %{with nas}
523 %files output-nas
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
526 %endif
527
528 %files scopes-gtk
529 %defattr(644,root,root,755)
530 %attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
531 %attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
532 %attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
533 %attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
534 %attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
535 %attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
536
537 %files scopes-opengl
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
540
541 %files devel
542 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_libdir}/libalsaplayer.so
544 %{_libdir}/libalsaplayer.la
545 %{_includedir}/alsaplayer
546 %{_pkgconfigdir}/alsaplayer.pc
547
548 %files static
549 %defattr(644,root,root,755)
550 %{_libdir}/libalsaplayer.a
This page took 0.235627 seconds and 4 git commands to generate.