]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
3ce36748d5556a572f5ae6c4b353317c513a5513
[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.80
13 Release:        3
14 License:        GPL v3+
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 Patch1:         %{name}-g++.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 >= 0.2.4}
29 %{?with_flac:BuildRequires:     flac-c++-devel >= 1.2.0}
30 BuildRequires:  gtk+2-devel >= 1:2.0.3
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 >= 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
164 %description input-audiofile
165 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
166 WAVE, ...) using audiofile library.
167
168 %description input-audiofile -l pl.UTF-8
169 Wtyczka alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
170 AIFC, WAVE, ...) przy użyciu biblioteki audiofile.
171
172 %package input-flac
173 Summary:        Alsaplayer plugin for playing FLAC files
174 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików FLAC
175 Group:          Applications/Sound
176 Requires:       %{name} = %{version}-%{release}
177
178 %description input-flac
179 Alsaplayer plugin for playing FLAC files.
180
181 %description input-flac -l pl.UTF-8
182 Wtyczka alsaplayera do odtwarzania plików FLAC.
183
184 %package input-mad
185 Summary:        Alsaplayer plugin for playing MP3 files using MAD
186 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
187 Group:          Applications/Sound
188 Requires:       %{name} = %{version}-%{release}
189
190 %description input-mad
191 Alsaplayer plugin for playing MP3 files using MAD.
192
193 %description input-mad -l pl.UTF-8
194 Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
195
196 %package input-mikmod
197 Summary:        Alsaplayer plugin for playing mod files
198 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików mod
199 Group:          Applications/Sound
200 Requires:       %{name} = %{version}-%{release}
201
202 %description input-mikmod
203 Alsaplayer plugin for playing mod files.
204
205 %description input-mikmod -l pl.UTF-8
206 Wtyczka alsaplayera do odtwarzania plików mod.
207
208 %package input-sndfile
209 Summary:        Alsaplayer plugin for playing WAVE audio formats using libsndfile
210 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu libsndfile
211 Group:          Applications/Sound
212 Requires:       %{name} = %{version}-%{release}
213
214 %description input-sndfile
215 Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
216 WAVE, ...) using libsndfile library.
217
218 %description input-sndfile -l pl.UTF-8
219 Wtyczka do alsaplayera do odtwarzania plików audio typu WAVE (AIFF,
220 AIFC, WAVE, ...) przy użyciu biblioteki libsndfile.
221
222 %package input-vorbis
223 Summary:        Alsaplayer plugin for playing Ogg/Vorbis files
224 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis
225 Group:          Applications/Sound
226 Requires:       %{name} = %{version}-%{release}
227
228 %description input-vorbis
229 Alsaplayer plugin for playing Ogg/Vorbis files.
230
231 %description input-vorbis -l pl.UTF-8
232 Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
233
234 %package interface-gtk2
235 Summary:        GTK+ 2 interface for Alsaplayer
236 Summary(pl.UTF-8):      Interfejs GTK+ 2 alsaplayera
237 Group:          X11/Applications/Sound
238 Requires:       %{name} = %{version}-%{release}
239 Provides:       alsaplayer_ui
240 Obsoletes:      alsaplayer-interface-gtk
241
242 %description interface-gtk2
243 GTK+ 2 interface for Alsaplayer.
244
245 %description interface-gtk2 -l pl.UTF-8
246 Interfejs GTK+2 alsaplayera.
247
248 %package interface-text
249 Summary:        Text interface for Alsaplayer
250 Summary(pl.UTF-8):      Interfejs tekstowy alsaplayera
251 Group:          Applications/Sound
252 Requires:       %{name} = %{version}-%{release}
253 Provides:       alsaplayer_ui
254
255 %description interface-text
256 Text interface for Alsaplayer.
257
258 %description interface-text -l pl.UTF-8
259 Interfejs tekstowy alsaplayera.
260
261 %package interface-xosd
262 Summary:        xosd interface for Alsaplayer
263 Summary(pl.UTF-8):      Interfejs xosd alsaplayera
264 Group:          X11/Applications/Sound
265 Requires:       %{name} = %{version}-%{release}
266 Provides:       alsaplayer_ui
267
268 %description interface-xosd
269 xosd interface for Alsaplayer.
270
271 %description interface-xosd -l pl.UTF-8
272 Interfejs xosd alsaplayera.
273
274 %package output-alsa
275 Summary:        Alsaplayer plugin for playing through alsa drivers
276 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
277 Group:          Applications/Sound
278 Requires:       %{name} = %{version}-%{release}
279 Provides:       alsaplayer_output
280
281 %description output-alsa
282 Alsaplayer plugin for playing sound through alsa drivers.
283
284 %description output-alsa -l pl.UTF-8
285 Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa.
286
287 %package output-esound
288 Summary:        Alsaplayer plugin for playing through esound daemon
289 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania przez demona esound
290 Group:          Applications/Sound
291 Requires:       %{name} = %{version}-%{release}
292 Provides:       alsaplayer_output
293
294 %description output-esound
295 Alsaplayer plugin for playing sound through esound daemon.
296
297 %description output-esound -l pl.UTF-8
298 Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound.
299
300 %package output-nas
301 Summary:        Alsaplayer plugin for playing through NAS daemon
302 Summary(pl.UTF-8):      Wtyczka do alsaplayera do odtwarzania przez demona NAS
303 Group:          Applications/Sound
304 Requires:       %{name} = %{version}-%{release}
305 Provides:       alsaplayer_output
306
307 %description output-nas
308 Alsaplayer plugin for playing sound through NAS (network audio system)
309 daemon.
310
311 %description output-nas -l pl.UTF-8
312 Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network
313 audio system).
314
315 %package output-jack
316 Summary:        Alsaplayer plugin for playing sound through JACK
317 Summary(pl.UTF-8):      Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a
318 Group:          Applications/Sound
319 Requires:       %{name} = %{version}-%{release}
320 Provides:       alsaplayer_output
321
322 %description output-jack
323 Alsaplayer plugin for sound through JACK system.
324
325 %description output-jack -l pl.UTF-8
326 Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
327
328 %package scopes2-gtk
329 Summary:        Alsaplayer plugins for visualization
330 Summary(pl.UTF-8):      Wtyczki alsaplayera do wizualizacji
331 Group:          X11/Applications/Multimedia
332 Requires:       %{name} = %{version}-%{release}
333 Obsoletes:      alsaplayer-scopes-gtk
334
335 %description scopes2-gtk
336 Alsaplayer plugins for visualization.
337
338 %description scopes2-gtk -l pl.UTF-8
339 Wtyczki do alsaplayera do wizualizacji.
340
341 %package scopes2-opengl
342 Summary:        Alsaplayer plugin for visualization using OpenGL
343 Summary(pl.UTF-8):      Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
344 Group:          X11/Applications/Multimedia
345 Requires:       %{name} = %{version}-%{release}
346 Requires:       OpenGL
347 Obsoletes:      alsaplayer-scopes-opengl
348
349 %description scopes2-opengl
350 Alsaplayer plugin for visualization using OpenGL.
351
352 %description scopes2-opengl -l pl.UTF-8
353 Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
354
355 %package devel
356 Summary:        Alsaplayer header files
357 Summary(pl.UTF-8):      Pliki nagłówkowe Alsaplayera
358 Group:          Development/Libraries
359 Requires:       %{name} = %{version}-%{release}
360
361 %description devel
362 Header files for Alsaplayer library.
363
364 %description devel -l pl.UTF-8
365 Pliki nagłówkowe biblioteki Alsaplayera.
366
367 %package static
368 Summary:        Alsaplayer static library
369 Summary(pl.UTF-8):      Biblioteka statyczna Alsaplayera
370 Group:          Development/Libraries
371 Requires:       %{name}-devel = %{version}-%{release}
372
373 %description static
374 Alsaplayer static library.
375
376 %description static -l pl.UTF-8
377 Biblioteka statyczna Alsaplayera.
378
379 %prep
380 %setup -q
381 %patch0 -p1
382 %patch1 -p1
383
384 %build
385 rm -f missing
386 %{__libtoolize}
387 %{__aclocal}
388 %{__autoconf}
389 %{__automake}
390 CPPFLAGS=" -I/usr/X11R6/include"
391 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
392 export CPPFLAGS LDFLAGS
393 %configure \
394         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
395         %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
396         %{?with_flac:--en}%{!?with_flac:--dis}able-oggflac \
397         %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
398         %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
399         %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
400         %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
401         --enable-alsa \
402         --enable-audiofile \
403         --enable-gtk2 \
404         --enable-oggflac \
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         pkgconfigdir=%{_pkgconfigdir}
419
420 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
421 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
422
423 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
424 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
425 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
426 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
427 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la}
428
429 %find_lang %{name}
430
431 %clean
432 rm -rf $RPM_BUILD_ROOT
433
434 %post   -p /sbin/ldconfig
435 %postun -p /sbin/ldconfig
436
437 %files -f %{name}.lang
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.*.*.*
442 %attr(755,root,root) %ghost %{_libdir}/libalsaplayer.so.0
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.164657 seconds and 2 git commands to generate.