]> git.pld-linux.org Git - packages/alsaplayer.git/blob - alsaplayer.spec
- fix building OpenGL scope and move to scopes-opengl subpackage
[packages/alsaplayer.git] / alsaplayer.spec
1 # TODO:
2 # - fix description 
3 # ** mpg123 plugin are removed, so alsaplayer play mp3 only via mad plugin
4 # ** add info about new subpackages (scopes, interface-gtk and others)
5 # - add output-jack plugin (requires jackit.sf.net)
6 # - add input-flac plugin (requires flac.sf.net)
7 # - think about static libalsaplayer.a (add --enable-static to %%configure and make subpackage)
8 # - add/check translations
9 Summary:        Alsaplayer - MP2/MP3/WAV/CD player
10 Summary(pl):    Alsaplayer - odtwarzacz MP2/MP3/WAV/CD
11 Name:           alsaplayer
12 Version:        0.99.71
13 Release:        1.1
14 License:        GPL
15 Group:          X11/Applications/Multimedia
16 Source0:        ftp://ftp.alsa-project.org/pub/people/andy/%{name}-%{version}.tar.bz2
17 Patch0:         %{name}-nas.patch
18 Patch1:         %{name}-docs.patch
19 BuildRequires:  alsa-lib-devel
20 BuildRequires:  audiofile-devel
21 BuildRequires:  esound-devel
22 BuildRequires:  gtk+-devel
23 BuildRequires:  libmikmod-devel
24 BuildRequires:  libvorbis-devel
25 BuildRequires:  mad-devel
26 BuildRequires:  nas-devel
27 BuildRequires:  libtool
28 BuildRequires:  automake
29 BuildRequires:  autoconf
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
33 %define         _pkglibdir      %{_libdir}/%{name}
34 %define         _prefix         /usr/X11R6
35 %define         _mandir         %{_prefix}/man
36
37 %description
38 AlsaPlayer is a new type of PCM player. It is heavily multi-threaded
39 and tries to excercise the ALSA library and driver quite a bit.
40 Features include:
41
42 Input addons:
43  - MP2 and MP3 support
44  - Ogg Vorbis support (subpackage)
45  - WAV support, 8-, 16-bit, mono, stereo, any sample rate
46  - CDDA support, CD Digital Audio playback! and thus USB ready :)
47  - Also plays files mapped by audiofs (CDDA)
48  - MAD MPEG audio
49  - Module support (mikmod) (subpcakage)
50
51 Output addons:
52  - ALSA. Best supported of course :) (subpackage)
53  - OSS. Kernel native sound drivers
54  - Sparc. UltraSparc sound drivers
55  - SGI. SGI audio library driver
56  - ESD. Enlightened sound daemon support (subpackage)
57  - NAS. Network Audio System (subpakcage)
58  - null :-)
59
60 Visual scopes:
61  - Stereoscope
62  - Monoscope
63  - Levelmeter
64  - Spacescope
65  - FFTscope
66  - FFTscope II
67  - More being developed...
68
69 General features:
70  - Full speed (pitch) control, positive *and* negative! (First Linux
71    player that does this!! MP3's and CD's do varispeed :)
72  - Queue (playlist) support
73  - Concurrent visual scopes (open as many as you want)
74  - Multi-threaded design for efficient/skip free playback (RT)
75  - GUI Interface based on gtk+
76  - NOGUI operation for shell script usage
77  - Plug-in core architecture
78  - Low latency mode, as low as 5ms when scheduled RT
79  - Effects stream
80  - Software based volume/pan control
81  - Accurate scope/audio syncing using ALSA features
82  - Portable (well, we'll see about that :)
83  - Open source(tm)
84
85 %description -l pl
86 AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielow±tkowy i próbuje
87 solidnie przeæwiczyæ sterowniki i bibliotekê ALSA. Jego cechy to:
88
89 Wej¶cie:
90  - obs³uga MP2 i MP3
91  - obs³uga Ogg Vorbis (w podpakiecie)
92  - obs³uga WAV, 8 i 16-bitowych, mono, stereo, dowolna czêstotliwo¶æ
93  - obs³uga CD Digital Audio
94  - odtwarzanie plików podmapowanych przez audiofs (CDDA)
95  - obs³uga MAD - MPEG Audio
96  - obs³uga modu³ów (mikmod) (w podpakiecie)
97
98 Wyj¶cie:
99  - OSS - natywne sterowniki z j±dra
100  - ALSA - oczywi¶cie najlepiej obs³ugiwana :) (w podpakiecie)
101  - Sparc - sterowniki d¼wiêku dla UltraSparca
102  - SGI - biblioteka sterowników d¼wiêku SGI
103  - ESD - obs³uga O¶wieconego demona d¼wiêku (w podpakiecie)
104  - NAS - Sieciowego Systemu Audio (w podpakiecie)
105  - null :-)
106
107 Wizualizacja:
108  - Stereoskop
109  - Monoskop
110  - Wska¼nik poziomu d¼wiêku
111  - inne, wkrótce wiêcej...
112
113 Ogólne cechy:
114  - Kontrola szybko¶ci (w obie strony)
115  - obs³uga kolejki (playlisty)
116  - obs³uga wielu wska¼ników naraz
117  - wielow±tkowo¶æ
118  - interfejs graficzny bazuj±cy na gtk+
119  - operacje bez GUI na potrzeby skryptów
120  - architektura wtyczek
121  - programowa kontrola g³o¶no¶ci i balansu
122  - synchronizacja d¼wiêku i wska¼ników przy u¿yciu mo¿liwo¶ci ALSA
123
124 %package input-mikmod
125 Summary:        Alsaplayer plugin for playing mod files
126 Summary(pl):    Wtyczka do alsaplayera do odtwarzania plików mod
127 Group:          X11/Applications/Multimedia
128 Requires:       %{name} = %{version}
129
130 %description input-mikmod
131 Alsaplayer plugin for playing mod files.
132
133 %description input-mikmod -l pl 
134 Wtyczka do alsaplayera do odtwarzania plików mod.
135
136 %package input-vorbis
137 Summary:        Alsaplayer plugin for playing ogg/vorbis files
138 Summary(pl):    Wtyczka do alsaplayera do odtwarzania plików ogg/vorbis
139 Group:          X11/Applications/Multimedia
140 Requires:       %{name} = %{version}
141
142 %description input-vorbis
143 Alsaplayer plugin for playing ogg/vorbis files.
144
145 %description input-vorbis -l pl 
146 Wtyczka do alsaplayera do odtwarzania plików ogg/vorbis.
147
148 %package input-audiofile
149 Summary:        Alsaplayer plugin for playing wave audio formats
150 Summary(pl):    Wtyczka do alsaplayera do odtwarzania plików audio typu wave
151 Group:          X11/Applications/Multimedia
152 Requires:       %{name} = %{version}
153
154 %description input-audiofile
155 Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
156 WAVE, ...).
157
158 %description input-audiofile -l pl 
159 Wtyczka do alsaplayera do odtwarzania plików audio typa wave (AIFF,
160 AIFC, WAVE, ...)
161
162 %package input-mad
163 Summary:        Alsaplayer plugin for playing MP3 files using MAD 
164 Summary(pl):    Wtyczka do alsaplayera do odtwarzania plików MP3 przy pomocy MAD
165 Group:          X11/Applications/Multimedia
166 Requires:       %{name} = %{version}
167
168 %description input-mad
169 Alsaplayer plugin for playing MP3 files using MAD.
170
171 %description input-mad -l pl 
172 Wtyczka do alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
173
174 %package output-alsa
175 # this plugin come in two versions, for alsa 0.5.x and 0.9.x
176 # but this libraraies provide different .so number, so the
177 # version built will work only with correct alsa-lib version,
178 # what we do want :-)
179
180 Summary:        Alsaplayer plugin for playing through alsa drivers
181 Summary(pl):    Wtyczka do alsaplayera do odtwarzania przez drivery alsa
182 Group:          X11/Applications/Multimedia
183 Requires:       %{name} = %{version}
184
185 %description output-alsa
186 Alsaplayer plugin for playing sound through alsa drivers.
187
188 %description output-alsa -l pl 
189 Wtyczka do alsaplayera do odtwarzania d¼wiêku przez drivery alsa.
190
191 %package output-esound
192 Summary:        Alsaplayer plugin for playing through esound daemon
193 Summary(pl):    Wtyczka do alsaplayera do odtwarzania przez demona esound
194 Group:          X11/Applications/Multimedia
195 Requires:       %{name} = %{version}
196
197 %description output-esound
198 Alsaplayer plugin for playing sound through esound daemon.
199
200 %description output-esound -l pl 
201 Wtyczka do alsaplayera do odtwarzania d¼wiêku przez demona esound.
202
203 %package output-nas
204 Summary:        Alsaplayer plugin for playing through NAS daemon
205 Summary(pl):    Wtyczka do alsaplayera do odtwarzania przez demona NAS
206 Group:          X11/Applications/Multimedia
207 Requires:       %{name} = %{version}
208
209 %description output-nas
210 Alsaplayer plugin for playing sound through NAS (network audio
211 system) daemon.
212
213 %description output-nas -l pl 
214 Wtyczka do alsaplayera do odtwarzania d¼wiêku przez demona NAS
215 (network audio system).
216
217 %package reader-curl
218 Summary:        Alsaplayer plugin for reading files from network
219 Summary(pl):    Wtyczka do alsaplayera do odczytu plików z sieci
220 Group:          X11/Applications/Multimedia
221 Requires:       %{name} = %{version}
222
223 %description reader-curl
224 Alsaplayer plugin for reading files from network.
225
226 %description reader-curl -l pl 
227 Wtyczka do alsaplayera do odczytu plików z sieci.
228
229 %package scopes-gtk
230 Summary:        Alsaplayer plugin for visualization
231 Group:          X11/Applications/Multimedia
232 Requires:       %{name} = %{version}
233
234 %description scopes-gtk
235 Alsaplayer plugin for visualization.
236
237 %package scopes-opengl
238 Summary:        Alsaplayer plugin for visualization using OpenGL
239 Group:          X11/Applications/Multimedia
240 Requires:       %{name} = %{version}
241
242 %description scopes-opengl
243 Alsaplayer plugin for visualization using OpenGL.
244
245 %package interface-gtk
246 Summary:        GTK+ interface for Alsaplayer.
247 Group:          X11/Applications/Multimedia
248 Requires:       %{name} = %{version}
249
250 %description interface-gtk
251 GTK+ interface for Alsaplayer.
252
253 %package lib
254 Summary:        Library for remote control Alsaplayer.
255 Group:          X11/Applications/Multimedia
256 Requires:       %{name} = %{version}
257
258 %description lib
259 Library for remote control Alsaplayer.
260
261 %package devel
262 Summary:        Library for remote control Alsaplayer - development files
263 Group:          X11/Applications/Multimedia
264 Requires:       %{name}-lib = %{version}
265
266 %description devel
267 Library for remote control Alsaplayer - development files
268
269 %prep
270 %setup -q
271 %patch0 -p1
272 %patch1 -p1
273
274 %build
275 rm -f missing
276 %{__libtoolize}
277 aclocal
278 %{__autoconf}
279 %{__automake}
280 CPPFLAGS=" -I/usr/X11R6/include"
281 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
282 export CPPFLAGS LDFLAGS
283 %configure \
284         --enable-alsa \
285         --enable-audiofile \
286         --enable-esd \
287         --enable-gtk \
288         --enable-mikmod \
289         --enable-nas \
290         --enable-oggvorbis \
291         --enable-opengl \
292         --enable-oss \
293 %ifarch sparc   
294         --enable-sparc
295 %endif
296
297 %{__make}
298
299 %install
300 rm -rf $RPM_BUILD_ROOT
301
302 %{__make} install \
303         DESTDIR=$RPM_BUILD_ROOT \
304         pkgconfigdir=%{_pkgconfigdir}
305
306 %clean
307 rm -rf $RPM_BUILD_ROOT
308
309 %files
310 %defattr(644,root,root,755)
311 %doc AUTHORS README ChangeLog
312 %attr(755,root,root) %{_bindir}/alsaplayer
313 %dir %{_pkglibdir}
314 %dir %{_pkglibdir}/input
315 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
316 %{_pkglibdir}/input/libcdda.la
317 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
318 %{_pkglibdir}/input/libwav.la
319 %dir %{_pkglibdir}/output
320 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
321 %{_pkglibdir}/output/liboss_out.la
322 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
323 %{_pkglibdir}/output/libnull_out.la
324 %ifarch sparc
325 %attr(755,root,root) %{_pkglibdir}/output/libsparc_out.so
326 %{_pkglibdir}/output/libsparc_out.la
327 %endif
328 %dir %{_pkglibdir}/interface
329 %attr(755,root,root) %{_pkglibdir}/interface/libtext.so
330 %{_pkglibdir}/interface/libtext.la
331 %attr(755,root,root) %{_pkglibdir}/interface/libdaemon.so
332 %{_pkglibdir}/interface/libdaemon.la
333 %dir %{_pkglibdir}/scopes
334 %dir %{_pkglibdir}/reader
335 %{_pkglibdir}/reader/libfile.la
336 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
337 %{_pkglibdir}/reader/libhttp.la
338 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
339 %{_mandir}/man*/*
340
341 %files interface-gtk
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_pkglibdir}/interface/libgtk.so
344 %{_pkglibdir}/interface/libgtk.la
345
346 %files scopes-gtk
347 %attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
348 %{_pkglibdir}/scopes/libblurscope.la
349 %attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
350 %{_pkglibdir}/scopes/liblevelmeter.la
351 %attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
352 %{_pkglibdir}/scopes/liblogbarfft.la
353 %attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
354 %{_pkglibdir}/scopes/libmonoscope.la
355 %attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
356 %{_pkglibdir}/scopes/libspacescope.la
357 %attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
358 %{_pkglibdir}/scopes/libsynaescope.la
359
360 %files scopes-opengl
361 %attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
362 %{_pkglibdir}/scopes/liboglspectrum.la
363
364 %files input-mikmod
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_pkglibdir}/input/libmod.so
367 %{_pkglibdir}/input/libmod.la
368
369 %files input-vorbis
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
372 %{_pkglibdir}/input/libvorbis_in.la
373
374 %files input-audiofile
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
377 %{_pkglibdir}/input/libaf.la
378
379 %files input-mad
380 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
381 %{_pkglibdir}/input/libmad_in.la
382
383 %files output-alsa
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
386 %{_pkglibdir}/output/libalsa_out.la
387
388 %files output-esound
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
391 %{_pkglibdir}/output/libesound_out.la
392
393 %files output-nas
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
396 %{_pkglibdir}/output/libnas_out.la
397
398 %files reader-curl
399 %defattr(644,root,root,755)
400 %{_pkglibdir}/reader/libcurl.la
401 %attr(755,root,root) %{_pkglibdir}/reader/libcurl.so
402
403 %files lib
404 %attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
405
406 %files devel
407 %{_includedir}/alsaplayer
408 %{_libdir}/libalsaplayer.la
409 %{_libdir}/libalsaplayer.so
410 %{_pkgconfigdir}/alsaplayer.pc
This page took 0.093412 seconds and 4 git commands to generate.