]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
- postun dep is autogenerated here
[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:        3
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}-%{release}
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}-%{release}
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}-%{release}
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}-%{release}
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}-%{release}
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}-%{release}
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}-%{release}
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 Requires:       %{name} = %{version}-%{release}
235 Provides:       alsaplayer_ui
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 Requires:       %{name} = %{version}-%{release}
248 Provides:       alsaplayer_ui
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 Requires:       %{name} = %{version}-%{release}
261 Provides:       alsaplayer_ui
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 Requires:       %{name} = %{version}-%{release}
274 Provides:       alsaplayer_output
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 Requires:       %{name} = %{version}-%{release}
287 Provides:       alsaplayer_output
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 Requires:       %{name} = %{version}-%{release}
300 Provides:       alsaplayer_output
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-a
313 Group:          Applications/Sound
314 Requires:       %{name} = %{version}-%{release}
315 Provides:       alsaplayer_output
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}-%{release}
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}-%{release}
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}-%{release}
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}-%{release}
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
402 %{__make}
403
404 %install
405 rm -rf $RPM_BUILD_ROOT
406 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
407
408 %{__make} install \
409         DESTDIR=$RPM_BUILD_ROOT \
410         pkgconfigdir=%{_pkgconfigdir}
411
412 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
413 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
414
415 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
416 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
417 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
418 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
419 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
420
421 %clean
422 rm -rf $RPM_BUILD_ROOT
423
424 %post
425 /sbin/ldconfig
426 echo
427 echo "Remember to install appropriate alsaplayer-input-* plugins"
428 echo "for files you want to play, for example:"
429 echo "alsaplayer-input-mad to play MP3s."
430 echo
431
432 %postun -p /sbin/ldconfig
433
434 %files
435 %defattr(644,root,root,755)
436 %doc AUTHORS README ChangeLog
437 %attr(755,root,root) %{_bindir}/alsaplayer
438 %attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
439 %dir %{_pkglibdir}
440 %dir %{_pkglibdir}/input
441 %dir %{_pkglibdir}/interface
442 %dir %{_pkglibdir}/output
443 %dir %{_pkglibdir}/reader
444 %dir %{_pkglibdir}/scopes
445 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
446 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
447 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
448 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
449 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
450 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
451 %{_mandir}/man*/*
452 %{_desktopdir}/%{name}.desktop
453 %{_pixmapsdir}/%{name}.png
454
455 %files daemon
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
458
459 %files interface-gtk
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
462
463 %files interface-text
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
466
467 %files interface-xosd
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
470
471 %files input-audiofile
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
474
475 %if %{with flac}
476 %files input-flac
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
479 %endif
480
481 %files input-mad
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
484
485 %if %{with mikmod}
486 %files input-mikmod
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
489 %endif
490
491 %files input-sndfile
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
494
495 %files input-vorbis
496 %defattr(644,root,root,755)
497 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
498
499 %files output-alsa
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
502
503 %if %{with esound}
504 %files output-esound
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
507 %endif
508
509 %if %{with jack}
510 %files output-jack
511 %defattr(644,root,root,755)
512 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
513 %endif
514
515 %if %{with nas}
516 %files output-nas
517 %defattr(644,root,root,755)
518 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
519 %endif
520
521 %files scopes-gtk
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
524 %attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
525 %attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
526 %attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
527 %attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
528 %attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
529
530 %files scopes-opengl
531 %defattr(644,root,root,755)
532 %attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
533
534 %files devel
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_libdir}/libalsaplayer.so
537 %{_libdir}/libalsaplayer.la
538 %{_includedir}/alsaplayer
539 %{_pkgconfigdir}/alsaplayer.pc
540
541 %files static
542 %defattr(644,root,root,755)
543 %{_libdir}/libalsaplayer.a
This page took 0.106396 seconds and 3 git commands to generate.