]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
- up to 0.99.80 (final)
[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.80
13 Release:        1
14 License:        GPLv3
15 Group:          Applications/Sound
16 Source0:        http://www.alsaplayer.org/%{name}-%{version}.tar.bz2
17 # Source0-md5:  04f8c2321a37d15f40f9ee21251c6202
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 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.UTF-8
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.UTF-8):      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.UTF-8
152 Interfejs demona alsaplayera.
153
154 %package input-audiofile
155 Summary:        Alsaplayer plugin for playing WAVE audio formats using audiofile
156 Summary(pl.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
228 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
229
230 %package interface-gtk2
231 Summary:        GTK+ 2 interface for Alsaplayer
232 Summary(pl.UTF-8):      Interfejs GTK+ 2 alsaplayera
233 Group:          X11/Applications/Sound
234 Requires:       %{name} = %{version}-%{release}
235 Provides:       alsaplayer_ui
236
237 %description interface-gtk2
238 GTK+ 2 interface for Alsaplayer.
239
240 %description interface-gtk2 -l pl.UTF-8
241 Interfejs GTK+2 alsaplayera.
242
243 %package interface-text
244 Summary:        Text interface for Alsaplayer
245 Summary(pl.UTF-8):      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.UTF-8
254 Interfejs tekstowy alsaplayera.
255
256 %package interface-xosd
257 Summary:        xosd interface for Alsaplayer
258 Summary(pl.UTF-8):      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.UTF-8
267 Interfejs xosd alsaplayera.
268
269 %package output-alsa
270 Summary:        Alsaplayer plugin for playing through alsa drivers
271 Summary(pl.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
321 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
322
323 %package scopes2-gtk
324 Summary:        Alsaplayer plugins for visualization
325 Summary(pl.UTF-8):      Wtyczki alsaplayera do wizualizacji
326 Group:          X11/Applications/Multimedia
327 Requires:       %{name} = %{version}-%{release}
328 Obsoletes:      alsaplayer-scopes-gtk
329
330 %description scopes2-gtk
331 Alsaplayer plugins for visualization.
332
333 %description scopes2-gtk -l pl.UTF-8
334 Wtyczki do alsaplayera do wizualizacji.
335
336 %package scopes2-opengl
337 Summary:        Alsaplayer plugin for visualization using OpenGL
338 Summary(pl.UTF-8):      Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
339 Group:          X11/Applications/Multimedia
340 Requires:       %{name} = %{version}-%{release}
341 Requires:       OpenGL
342 Obsoletes:      alsaplayer-scopes-opengl
343
344 %description scopes2-opengl
345 Alsaplayer plugin for visualization using OpenGL.
346
347 %description scopes2-opengl -l pl.UTF-8
348 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
349
350 %package devel
351 Summary:        Alsaplayer header files
352 Summary(pl.UTF-8):      Pliki nagłówkowe Alsaplayera
353 Group:          Development/Libraries
354 Requires:       %{name} = %{version}-%{release}
355
356 %description devel
357 Header files for Alsaplayer library.
358
359 %description devel -l pl.UTF-8
360 Pliki nagłówkowe biblioteki Alsaplayera.
361
362 %package static
363 Summary:        Alsaplayer static library
364 Summary(pl.UTF-8):      Biblioteka statyczna Alsaplayera
365 Group:          Development/Libraries
366 Requires:       %{name}-devel = %{version}-%{release}
367
368 %description static
369 Alsaplayer static library.
370
371 %description static -l pl.UTF-8
372 Biblioteka statyczna Alsaplayera.
373
374 %prep
375 %setup -q
376 %patch0 -p1
377
378 %build
379 rm -f missing
380 %{__libtoolize}
381 %{__aclocal}
382 %{__autoconf}
383 %{__automake}
384 CPPFLAGS=" -I/usr/X11R6/include"
385 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
386 export CPPFLAGS LDFLAGS
387 %configure \
388         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
389         %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
390         %{?with_flac:--en}%{!?with_flac:--dis}able-oggflac \
391         %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
392         %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
393         %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
394         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
395         --enable-alsa \
396         --enable-audiofile \
397         --enable-gtk2 \
398         --enable-oggflac \
399         --enable-oggvorbis \
400         --enable-opengl \
401         --enable-oss \
402         --enable-static
403
404 %{__make}
405
406 %install
407 rm -rf $RPM_BUILD_ROOT
408 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
409
410 %{__make} install \
411         DESTDIR=$RPM_BUILD_ROOT \
412         pkgconfigdir=%{_pkgconfigdir}
413
414 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
415 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
416
417 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
418 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
419 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
420 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
421 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la}
422
423 %{find_lang} %{name}
424
425 %clean
426 rm -rf $RPM_BUILD_ROOT
427
428 %post
429 /sbin/ldconfig
430 echo
431 echo "Remember to install appropriate alsaplayer-input-* plugins"
432 echo "for files you want to play, for example:"
433 echo "alsaplayer-input-mad to play MP3s."
434 echo
435
436 %postun -p /sbin/ldconfig
437
438 %files -f %{name}.lang
439 %defattr(644,root,root,755)
440 %doc AUTHORS README ChangeLog
441 %attr(755,root,root) %{_bindir}/alsaplayer
442 %attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
443 %dir %{_pkglibdir}
444 %dir %{_pkglibdir}/input
445 %dir %{_pkglibdir}/interface
446 %dir %{_pkglibdir}/output
447 %dir %{_pkglibdir}/reader
448 %dir %{_pkglibdir}/scopes2
449 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
450 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
451 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
452 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
453 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
454 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
455 %{_mandir}/man*/*
456 %{_desktopdir}/%{name}.desktop
457 %{_pixmapsdir}/%{name}.png
458
459 %files daemon
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
462
463 %files interface-gtk2
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
466
467 %files interface-text
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
470
471 %files interface-xosd
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
474
475 %files input-audiofile
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
478
479 %if %{with flac}
480 %files input-flac
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
483 %endif
484
485 %files input-mad
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
488
489 %if %{with mikmod}
490 %files input-mikmod
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
493 %endif
494
495 %files input-sndfile
496 %defattr(644,root,root,755)
497 %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
498
499 %files input-vorbis
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
502
503 %files output-alsa
504 %defattr(644,root,root,755)
505 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
506
507 %if %{with esound}
508 %files output-esound
509 %defattr(644,root,root,755)
510 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
511 %endif
512
513 %if %{with jack}
514 %files output-jack
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
517 %endif
518
519 %if %{with nas}
520 %files output-nas
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
523 %endif
524
525 %files scopes2-gtk
526 %defattr(644,root,root,755)
527 %attr(755,root,root) %{_pkglibdir}/scopes2/libblurscope.so
528 %attr(755,root,root) %{_pkglibdir}/scopes2/liblevelmeter.so
529 %attr(755,root,root) %{_pkglibdir}/scopes2/liblogbarfft.so
530 %attr(755,root,root) %{_pkglibdir}/scopes2/libmonoscope.so
531 %attr(755,root,root) %{_pkglibdir}/scopes2/libspacescope.so
532 %attr(755,root,root) %{_pkglibdir}/scopes2/libsynaescope.so
533
534 %files scopes2-opengl
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so
537
538 %files devel
539 %defattr(644,root,root,755)
540 %attr(755,root,root) %{_libdir}/libalsaplayer.so
541 %{_libdir}/libalsaplayer.la
542 %{_includedir}/alsaplayer
543 %{_pkgconfigdir}/alsaplayer.pc
544
545 %files static
546 %defattr(644,root,root,755)
547 %{_libdir}/libalsaplayer.a
This page took 0.113443 seconds and 4 git commands to generate.