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