]>
Commit | Line | Data |
---|---|---|
337b99ea | 1 | # |
2 | # Conditional build | |
5b4b54e4 | 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 | |
337b99ea | 8 | # |
4302bf8b | 9 | Summary: Alsaplayer - CD/FLAC/MOD/MP3/Ogg/WAV player |
aa542d0b | 10 | Summary(pl.UTF-8): Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/Ogg/WAV |
f79d02ae | 11 | Name: alsaplayer |
3978f024 JR |
12 | Version: 0.99.80 |
13 | %define pre rc2 | |
14 | Release: 0.%{pre}.1 | |
15 | License: GPLv3 | |
46b1d468 | 16 | Group: Applications/Sound |
3978f024 JR |
17 | Source0: http://www.alsaplayer.org/%{name}-%{version}-%{pre}.tar.bz2 |
18 | # Source0-md5: bc8325c704f6cad167236055e1ff3ebb | |
c8dfdbcd | 19 | Source1: %{name}.desktop |
337b99ea | 20 | Source2: %{name}.png |
9c0e77e3 | 21 | Patch0: %{name}-docs.patch |
3978f024 | 22 | Patch1: %{name}-flac.patch |
9c0e77e3 | 23 | URL: http://www.alsaplayer.org/ |
d479e38b | 24 | BuildRequires: OpenGL-devel |
25 | BuildRequires: alsa-lib-devel | |
26 | BuildRequires: audiofile-devel | |
27 | BuildRequires: autoconf | |
28 | BuildRequires: automake | |
aa67f71c | 29 | %{?with_esound:BuildRequires: esound-devel >= 0.2.4} |
f9bd6ffe | 30 | %{?with_flac:BuildRequires: flac-c++-devel >= 1.2.0} |
aa67f71c | 31 | BuildRequires: gtk+2-devel >= 1:2.0.3 |
337b99ea | 32 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.69.1} |
33 | %{?with_flac:BuildRequires: libid3tag-devel} | |
0f25b7a7 | 34 | BuildRequires: libmad-devel |
337b99ea | 35 | %{?with_mikmod:BuildRequires: libmikmod-devel} |
aa67f71c | 36 | BuildRequires: libsndfile-devel >= 1.0.4 |
dadc5112 | 37 | BuildRequires: libstdc++-devel |
d479e38b | 38 | BuildRequires: libtool |
39 | BuildRequires: libvorbis-devel | |
337b99ea | 40 | %{?with_nas:BuildRequires: nas-devel} |
aa67f71c | 41 | BuildRequires: pkgconfig |
d479e38b | 42 | BuildRequires: xosd-devel |
1d73465c | 43 | Requires(post): /sbin/ldconfig |
337b99ea | 44 | Requires: alsaplayer_output |
45 | Requires: alsaplayer_ui | |
4d4f8253 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8927a08a | 47 | |
0d2a9f5a AF |
48 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
49 | %define _pkglibdir %{_libdir}/%{name} | |
0d2a9f5a | 50 | |
8927a08a | 51 | %description |
6e4571c1 | 52 | AlsaPlayer is a new type of PCM player. It is heavily multi-threaded |
c3f685ab | 53 | and tries to exercise the ALSA library and driver quite a bit. |
6e4571c1 | 54 | Features include: |
8927a08a | 55 | |
56 | Input addons: | |
0fbee9ea | 57 | - MP2 and MP3 support |
58 | - Ogg Vorbis support (subpackage) | |
59 | - WAV support, 8-, 16-bit, mono, stereo, any sample rate | |
60 | - CDDA support, CD Digital Audio playback! and thus USB ready :) | |
61 | - Also plays files mapped by audiofs (CDDA) | |
62 | - MAD MPEG audio | |
63 | - Module support (mikmod) (subpcakage) | |
64 | - FLAC support | |
fa53bf85 | 65 | |
8927a08a | 66 | Output addons: |
0fbee9ea | 67 | - ALSA. Best supported of course :) (subpackage) |
68 | - OSS. Kernel native sound drivers | |
69 | - Sparc. UltraSparc sound drivers | |
70 | - SGI. SGI audio library driver | |
71 | - ESD. Enlightened sound daemon support (subpackage) | |
72 | - NAS. Network Audio System (subpakcage) | |
73 | - low latency JACK output | |
74 | - null :-) | |
8927a08a | 75 | |
76 | Visual scopes: | |
0fbee9ea | 77 | - Stereoscope |
78 | - Monoscope | |
79 | - Levelmeter | |
80 | - Spacescope | |
81 | - FFTscope | |
82 | - FFTscope II | |
83 | - Spectrum GL | |
8927a08a | 84 | |
85 | General features: | |
0fbee9ea | 86 | - Full speed (pitch) control, positive *and* negative! (First Linux |
87 | player that does this!! MP3's and CD's do varispeed :) | |
88 | - Queue (playlist) support | |
89 | - Concurrent visual scopes (open as many as you want) | |
90 | - Multi-threaded design for efficient/skip free playback (RT) | |
4c20a058 | 91 | - GUI Interface based on GTK+ |
0fbee9ea | 92 | - NOGUI operation for shell script usage |
93 | - On-screen-display based on xosd | |
94 | - Plug-in core architecture | |
95 | - Low latency mode, as low as 5ms when scheduled RT | |
96 | - Effects stream | |
97 | - Software based volume/pan control | |
98 | - Accurate scope/audio syncing using ALSA features | |
8927a08a | 99 | |
fc4fc5a8 JR |
100 | %description -l pl.UTF-8 |
101 | AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielowątkowy i próbuje | |
102 | solidnie przećwiczyć sterowniki i bibliotekę ALSA. Jego cechy to: | |
103 | ||
104 | Wejście: | |
105 | - obsługa MP2 i MP3 | |
106 | - obsługa Ogg Vorbis (w podpakiecie) | |
107 | - obsługa WAV, 8 i 16-bitowych, mono, stereo o dowolnej częstotliwości | |
108 | - obsługa CD Digital Audio | |
109 | - odtwarzanie plików podmapowanych przez audiofs (CDDA) | |
110 | - obsługa MAD - MPEG Audio | |
111 | - obsługa modułów (mikmod) (w podpakiecie) | |
112 | - obsług bezstratnej kompresji dźwięku FLAC | |
113 | ||
114 | Wyjście: | |
115 | - OSS - natywne sterowniki z jądra | |
116 | - ALSA - oczywiście najlepiej obsługiwana :) (w podpakiecie) | |
117 | - Sparc - sterowniki dźwięku dla UltraSparca | |
118 | - SGI - biblioteka sterowników dźwięku SGI | |
119 | - ESD - obsługa Oświeconego demona dźwięku (w podpakiecie) | |
0fbee9ea | 120 | - NAS - Sieciowego Systemu Audio (w podpakiecie) |
fc4fc5a8 | 121 | - JACK - zestaw połączeń dźwięku o małych opóźnieniach (w podpakiecie) |
0fbee9ea | 122 | - null :-) |
a42091c1 JB |
123 | |
124 | Wizualizacja: | |
0fbee9ea | 125 | - Stereoskop |
126 | - Monoskop | |
fc4fc5a8 JR |
127 | - Wskaźnik poziomu dźwięku |
128 | - Wskaźniki oparte o analizę FFT | |
129 | - analizator spektrum sygnału w oparciu o OpenGL | |
130 | ||
131 | Ogólne cechy: | |
132 | - Kontrola szybkości (w obie strony) | |
133 | - obsługa kolejki (playlisty) | |
134 | - obsługa wielu wskaźników naraz | |
135 | - wielowątkowość | |
136 | - interfejs graficzny bazujący na GTK+ | |
137 | - operacje bez GUI na potrzeby skryptów | |
0fbee9ea | 138 | - tryb Informacje-na-ekranie oparty o xosd |
139 | - architektura wtyczek | |
fc4fc5a8 JR |
140 | - tryb "czasu rzeczywistego" dający opóźnienia rzędu 5ms |
141 | - programowa kontrola głośności i balansu | |
142 | - synchronizacja dźwięku i wskaźników przy użyciu możliwości ALSA | |
a42091c1 | 143 | |
c8dfdbcd | 144 | %package daemon |
145 | Summary: Deamon interface for Alsaplayer | |
aa542d0b | 146 | Summary(pl.UTF-8): Interfejs demona alsaplayera |
46b1d468 | 147 | Group: Applications/Sound |
1d73465c | 148 | Requires: %{name} = %{version}-%{release} |
c8dfdbcd | 149 | |
150 | %description daemon | |
151 | Deamon interface for Alsaplayer. | |
152 | ||
fc4fc5a8 | 153 | %description daemon -l pl.UTF-8 |
c8dfdbcd | 154 | Interfejs demona alsaplayera. |
155 | ||
4386a2bb | 156 | %package input-audiofile |
e36c8eb3 | 157 | Summary: Alsaplayer plugin for playing WAVE audio formats using audiofile |
aa542d0b | 158 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu audiofile |
46b1d468 | 159 | Group: Applications/Sound |
1d73465c | 160 | Requires: %{name} = %{version}-%{release} |
4386a2bb | 161 | |
162 | %description input-audiofile | |
e36c8eb3 | 163 | Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC, |
46b1d468 | 164 | WAVE, ...) using audiofile library. |
4386a2bb | 165 | |
fc4fc5a8 JR |
166 | %description input-audiofile -l pl.UTF-8 |
167 | Wtyczka alsaplayera do odtwarzania plików audio typu WAVE (AIFF, | |
168 | AIFC, WAVE, ...) przy użyciu biblioteki audiofile. | |
4386a2bb | 169 | |
9c0e77e3 | 170 | %package input-flac |
d479e38b | 171 | Summary: Alsaplayer plugin for playing FLAC files |
aa542d0b | 172 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików FLAC |
d479e38b | 173 | Group: Applications/Sound |
1d73465c | 174 | Requires: %{name} = %{version}-%{release} |
9c0e77e3 | 175 | |
176 | %description input-flac | |
177 | Alsaplayer plugin for playing FLAC files. | |
178 | ||
fc4fc5a8 JR |
179 | %description input-flac -l pl.UTF-8 |
180 | Wtyczka alsaplayera do odtwarzania plików FLAC. | |
9c0e77e3 | 181 | |
0d2a9f5a | 182 | %package input-mad |
90802fc9 | 183 | Summary: Alsaplayer plugin for playing MP3 files using MAD |
aa542d0b | 184 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD |
46b1d468 | 185 | Group: Applications/Sound |
1d73465c | 186 | Requires: %{name} = %{version}-%{release} |
0d2a9f5a AF |
187 | |
188 | %description input-mad | |
189 | Alsaplayer plugin for playing MP3 files using MAD. | |
190 | ||
fc4fc5a8 JR |
191 | %description input-mad -l pl.UTF-8 |
192 | Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD. | |
0d2a9f5a | 193 | |
9c0e77e3 | 194 | %package input-mikmod |
195 | Summary: Alsaplayer plugin for playing mod files | |
aa542d0b | 196 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików mod |
46b1d468 | 197 | Group: Applications/Sound |
1d73465c | 198 | Requires: %{name} = %{version}-%{release} |
9c0e77e3 | 199 | |
200 | %description input-mikmod | |
201 | Alsaplayer plugin for playing mod files. | |
202 | ||
fc4fc5a8 JR |
203 | %description input-mikmod -l pl.UTF-8 |
204 | Wtyczka alsaplayera do odtwarzania plików mod. | |
4386a2bb | 205 | |
9c0e77e3 | 206 | %package input-sndfile |
e36c8eb3 | 207 | Summary: Alsaplayer plugin for playing WAVE audio formats using libsndfile |
aa542d0b | 208 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy użyciu libsndfile |
46b1d468 | 209 | Group: Applications/Sound |
1d73465c | 210 | Requires: %{name} = %{version}-%{release} |
9c0e77e3 | 211 | |
212 | %description input-sndfile | |
e36c8eb3 | 213 | Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC, |
46b1d468 | 214 | WAVE, ...) using libsndfile library. |
9c0e77e3 | 215 | |
fc4fc5a8 JR |
216 | %description input-sndfile -l pl.UTF-8 |
217 | Wtyczka do alsaplayera do odtwarzania plików audio typu WAVE (AIFF, | |
218 | AIFC, WAVE, ...) przy użyciu biblioteki libsndfile. | |
9c0e77e3 | 219 | |
220 | %package input-vorbis | |
4302bf8b | 221 | Summary: Alsaplayer plugin for playing Ogg/Vorbis files |
aa542d0b | 222 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis |
46b1d468 | 223 | Group: Applications/Sound |
1d73465c | 224 | Requires: %{name} = %{version}-%{release} |
9c0e77e3 | 225 | |
226 | %description input-vorbis | |
4302bf8b | 227 | Alsaplayer plugin for playing Ogg/Vorbis files. |
9c0e77e3 | 228 | |
fc4fc5a8 JR |
229 | %description input-vorbis -l pl.UTF-8 |
230 | Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis. | |
9c0e77e3 | 231 | |
aa67f71c JB |
232 | %package interface-gtk2 |
233 | Summary: GTK+ 2 interface for Alsaplayer | |
234 | Summary(pl.UTF-8): Interfejs GTK+ 2 alsaplayera | |
235 | Group: X11/Applications/Sound | |
236 | Requires: %{name} = %{version}-%{release} | |
237 | Provides: alsaplayer_ui | |
238 | ||
239 | %description interface-gtk2 | |
240 | GTK+ 2 interface for Alsaplayer. | |
241 | ||
242 | %description interface-gtk2 -l pl.UTF-8 | |
243 | Interfejs GTK+2 alsaplayera. | |
244 | ||
c8dfdbcd | 245 | %package interface-text |
246 | Summary: Text interface for Alsaplayer | |
aa542d0b | 247 | Summary(pl.UTF-8): Interfejs tekstowy alsaplayera |
46b1d468 | 248 | Group: Applications/Sound |
1d73465c | 249 | Requires: %{name} = %{version}-%{release} |
337b99ea | 250 | Provides: alsaplayer_ui |
c8dfdbcd | 251 | |
252 | %description interface-text | |
253 | Text interface for Alsaplayer. | |
254 | ||
fc4fc5a8 | 255 | %description interface-text -l pl.UTF-8 |
c8dfdbcd | 256 | Interfejs tekstowy alsaplayera. |
257 | ||
258 | %package interface-xosd | |
259 | Summary: xosd interface for Alsaplayer | |
aa542d0b | 260 | Summary(pl.UTF-8): Interfejs xosd alsaplayera |
c8dfdbcd | 261 | Group: X11/Applications/Sound |
1d73465c | 262 | Requires: %{name} = %{version}-%{release} |
337b99ea | 263 | Provides: alsaplayer_ui |
c8dfdbcd | 264 | |
265 | %description interface-xosd | |
266 | xosd interface for Alsaplayer. | |
267 | ||
fc4fc5a8 | 268 | %description interface-xosd -l pl.UTF-8 |
c8dfdbcd | 269 | Interfejs xosd alsaplayera. |
9c0e77e3 | 270 | |
271 | %package output-alsa | |
4386a2bb | 272 | Summary: Alsaplayer plugin for playing through alsa drivers |
aa542d0b | 273 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa |
46b1d468 | 274 | Group: Applications/Sound |
1d73465c | 275 | Requires: %{name} = %{version}-%{release} |
337b99ea | 276 | Provides: alsaplayer_output |
4386a2bb | 277 | |
278 | %description output-alsa | |
279 | Alsaplayer plugin for playing sound through alsa drivers. | |
280 | ||
fc4fc5a8 JR |
281 | %description output-alsa -l pl.UTF-8 |
282 | Wtyczka alsaplayera do odtwarzania dźwięku przez sterowniki alsa. | |
4386a2bb | 283 | |
284 | %package output-esound | |
285 | Summary: Alsaplayer plugin for playing through esound daemon | |
aa542d0b | 286 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania przez demona esound |
46b1d468 | 287 | Group: Applications/Sound |
1d73465c | 288 | Requires: %{name} = %{version}-%{release} |
337b99ea | 289 | Provides: alsaplayer_output |
4386a2bb | 290 | |
291 | %description output-esound | |
292 | Alsaplayer plugin for playing sound through esound daemon. | |
293 | ||
fc4fc5a8 JR |
294 | %description output-esound -l pl.UTF-8 |
295 | Wtyczka alsaplayera do odtwarzania dźwięku przez demona esound. | |
4386a2bb | 296 | |
297 | %package output-nas | |
298 | Summary: Alsaplayer plugin for playing through NAS daemon | |
aa542d0b | 299 | Summary(pl.UTF-8): Wtyczka do alsaplayera do odtwarzania przez demona NAS |
46b1d468 | 300 | Group: Applications/Sound |
1d73465c | 301 | Requires: %{name} = %{version}-%{release} |
337b99ea | 302 | Provides: alsaplayer_output |
4386a2bb | 303 | |
304 | %description output-nas | |
90802fc9 | 305 | Alsaplayer plugin for playing sound through NAS (network audio system) |
306 | daemon. | |
4386a2bb | 307 | |
fc4fc5a8 JR |
308 | %description output-nas -l pl.UTF-8 |
309 | Wtyczka alsaplayera do odtwarzania dźwięku przez demona NAS (network | |
46b1d468 JB |
310 | audio system). |
311 | ||
312 | %package output-jack | |
313 | Summary: Alsaplayer plugin for playing sound through JACK | |
aa542d0b | 314 | Summary(pl.UTF-8): Wtyczka alsaplayera do odtwarzania dźwięku przez JACK-a |
46b1d468 | 315 | Group: Applications/Sound |
1d73465c | 316 | Requires: %{name} = %{version}-%{release} |
337b99ea | 317 | Provides: alsaplayer_output |
46b1d468 JB |
318 | |
319 | %description output-jack | |
320 | Alsaplayer plugin for sound through JACK system. | |
321 | ||
fc4fc5a8 JR |
322 | %description output-jack -l pl.UTF-8 |
323 | Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK. | |
4386a2bb | 324 | |
3978f024 | 325 | %package scopes2-gtk |
46b1d468 | 326 | Summary: Alsaplayer plugins for visualization |
aa542d0b | 327 | Summary(pl.UTF-8): Wtyczki alsaplayera do wizualizacji |
0d2a9f5a | 328 | Group: X11/Applications/Multimedia |
1d73465c | 329 | Requires: %{name} = %{version}-%{release} |
3978f024 | 330 | Obsoletes: alsaplayer-scopes-gtk |
0d2a9f5a | 331 | |
3978f024 | 332 | %description scopes2-gtk |
46b1d468 | 333 | Alsaplayer plugins for visualization. |
0d2a9f5a | 334 | |
3978f024 | 335 | %description scopes2-gtk -l pl.UTF-8 |
46b1d468 | 336 | Wtyczki do alsaplayera do wizualizacji. |
90802fc9 | 337 | |
3978f024 | 338 | %package scopes2-opengl |
0d2a9f5a | 339 | Summary: Alsaplayer plugin for visualization using OpenGL |
aa542d0b | 340 | Summary(pl.UTF-8): Wtyczka alsaplayera do wizualizacji z użyciem OpenGL |
0d2a9f5a | 341 | Group: X11/Applications/Multimedia |
1d73465c | 342 | Requires: %{name} = %{version}-%{release} |
dadc5112 | 343 | Requires: OpenGL |
3978f024 | 344 | Obsoletes: alsaplayer-scopes-opengl |
0d2a9f5a | 345 | |
3978f024 | 346 | %description scopes2-opengl |
0d2a9f5a AF |
347 | Alsaplayer plugin for visualization using OpenGL. |
348 | ||
3978f024 | 349 | %description scopes2-opengl -l pl.UTF-8 |
fc4fc5a8 | 350 | Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL. |
90802fc9 | 351 | |
0d2a9f5a | 352 | %package devel |
dadc5112 | 353 | Summary: Alsaplayer header files |
aa542d0b | 354 | Summary(pl.UTF-8): Pliki nagłówkowe Alsaplayera |
46b1d468 | 355 | Group: Development/Libraries |
1d73465c | 356 | Requires: %{name} = %{version}-%{release} |
0d2a9f5a AF |
357 | |
358 | %description devel | |
46b1d468 | 359 | Header files for Alsaplayer library. |
90802fc9 | 360 | |
fc4fc5a8 JR |
361 | %description devel -l pl.UTF-8 |
362 | Pliki nagłówkowe biblioteki Alsaplayera. | |
4386a2bb | 363 | |
9c0e77e3 | 364 | %package static |
dadc5112 | 365 | Summary: Alsaplayer static library |
aa542d0b | 366 | Summary(pl.UTF-8): Biblioteka statyczna Alsaplayera |
46b1d468 | 367 | Group: Development/Libraries |
1d73465c | 368 | Requires: %{name}-devel = %{version}-%{release} |
9c0e77e3 | 369 | |
370 | %description static | |
dadc5112 | 371 | Alsaplayer static library. |
9c0e77e3 | 372 | |
fc4fc5a8 | 373 | %description static -l pl.UTF-8 |
dadc5112 | 374 | Biblioteka statyczna Alsaplayera. |
9c0e77e3 | 375 | |
8927a08a | 376 | %prep |
3978f024 | 377 | %setup -q -n %{name}-%{version}-%{pre} |
9c0e77e3 | 378 | %patch0 -p1 |
3978f024 | 379 | #patch1 -p1 |
8927a08a | 380 | |
381 | %build | |
cefd3f73 | 382 | rm -f missing |
9516d46e | 383 | %{__libtoolize} |
0bea0f83 | 384 | %{__aclocal} |
4f69f1aa | 385 | %{__autoconf} |
386 | %{__automake} | |
0d2a9f5a AF |
387 | CPPFLAGS=" -I/usr/X11R6/include" |
388 | LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib" | |
389 | export CPPFLAGS LDFLAGS | |
4386a2bb | 390 | %configure \ |
337b99ea | 391 | %{?with_esound:--en}%{!?with_esound:--dis}able-esd \ |
392 | %{?with_flac:--en}%{!?with_flac:--dis}able-flac \ | |
3978f024 | 393 | %{?with_flac:--en}%{!?with_flac:--dis}able-oggflac \ |
337b99ea | 394 | %{?with_jack:--en}%{!?with_jack:--dis}able-jack \ |
395 | %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \ | |
396 | %{?with_nas:--en}%{!?with_nas:--dis}able-nas \ | |
397 | %{?with_esound:--en}%{!?with_esound:--dis}able-esd \ | |
4386a2bb | 398 | --enable-alsa \ |
399 | --enable-audiofile \ | |
3978f024 | 400 | --enable-gtk2 \ |
9c0e77e3 | 401 | --enable-oggflac \ |
4386a2bb | 402 | --enable-oggvorbis \ |
403 | --enable-opengl \ | |
404 | --enable-oss \ | |
09ccddef | 405 | --enable-static |
4386a2bb | 406 | |
c8c462fe | 407 | %{__make} |
8927a08a | 408 | |
409 | %install | |
46f3c363 | 410 | rm -rf $RPM_BUILD_ROOT |
337b99ea | 411 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
46f3c363 | 412 | |
4386a2bb | 413 | %{__make} install \ |
0d2a9f5a AF |
414 | DESTDIR=$RPM_BUILD_ROOT \ |
415 | pkgconfigdir=%{_pkgconfigdir} | |
4386a2bb | 416 | |
15c5bd4c | 417 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
418 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
c8dfdbcd | 419 | |
dadc5112 | 420 | rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la} |
421 | rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la} | |
422 | rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la} | |
423 | rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la} | |
3978f024 JR |
424 | rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la} |
425 | ||
426 | %{find_lang} %{name} | |
dadc5112 | 427 | |
8927a08a | 428 | %clean |
429 | rm -rf $RPM_BUILD_ROOT | |
430 | ||
337b99ea | 431 | %post |
432 | /sbin/ldconfig | |
433 | echo | |
434 | echo "Remember to install appropriate alsaplayer-input-* plugins" | |
435 | echo "for files you want to play, for example:" | |
6f5a43f8 | 436 | echo "alsaplayer-input-mad to play MP3s." |
337b99ea | 437 | echo |
438 | ||
dadc5112 | 439 | %postun -p /sbin/ldconfig |
440 | ||
3978f024 | 441 | %files -f %{name}.lang |
46f3c363 | 442 | %defattr(644,root,root,755) |
684cd9a3 | 443 | %doc AUTHORS README ChangeLog |
46f3c363 | 444 | %attr(755,root,root) %{_bindir}/alsaplayer |
dadc5112 | 445 | %attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2 |
4386a2bb | 446 | %dir %{_pkglibdir} |
447 | %dir %{_pkglibdir}/input | |
9c0e77e3 | 448 | %dir %{_pkglibdir}/interface |
449 | %dir %{_pkglibdir}/output | |
450 | %dir %{_pkglibdir}/reader | |
3978f024 | 451 | %dir %{_pkglibdir}/scopes2 |
99c70596 | 452 | %attr(755,root,root) %{_pkglibdir}/input/libcdda.so |
99c70596 | 453 | %attr(755,root,root) %{_pkglibdir}/input/libwav.so |
c06fc5a4 | 454 | %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so |
c06fc5a4 | 455 | %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so |
0d2a9f5a | 456 | %attr(755,root,root) %{_pkglibdir}/reader/libfile.so |
0d2a9f5a | 457 | %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so |
4386a2bb | 458 | %{_mandir}/man*/* |
c8dfdbcd | 459 | %{_desktopdir}/%{name}.desktop |
337b99ea | 460 | %{_pixmapsdir}/%{name}.png |
4386a2bb | 461 | |
7b5f3111 | 462 | %files daemon |
90802fc9 | 463 | %defattr(644,root,root,755) |
9c0e77e3 | 464 | %attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so |
9c0e77e3 | 465 | |
aa67f71c JB |
466 | %files interface-gtk2 |
467 | %defattr(644,root,root,755) | |
468 | %attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so | |
469 | ||
9c0e77e3 | 470 | %files interface-text |
99c70596 | 471 | %defattr(644,root,root,755) |
9c0e77e3 | 472 | %attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so |
4386a2bb | 473 | |
9c0e77e3 | 474 | %files interface-xosd |
99c70596 | 475 | %defattr(644,root,root,755) |
9c0e77e3 | 476 | %attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so |
4386a2bb | 477 | |
478 | %files input-audiofile | |
99c70596 | 479 | %defattr(644,root,root,755) |
480 | %attr(755,root,root) %{_pkglibdir}/input/libaf.so | |
4386a2bb | 481 | |
337b99ea | 482 | %if %{with flac} |
9c0e77e3 | 483 | %files input-flac |
484 | %defattr(644,root,root,755) | |
485 | %attr(755,root,root) %{_pkglibdir}/input/libflac_in.so | |
337b99ea | 486 | %endif |
9c0e77e3 | 487 | |
0d2a9f5a | 488 | %files input-mad |
90802fc9 | 489 | %defattr(644,root,root,755) |
0d2a9f5a | 490 | %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so |
0d2a9f5a | 491 | |
337b99ea | 492 | %if %{with mikmod} |
9c0e77e3 | 493 | %files input-mikmod |
494 | %defattr(644,root,root,755) | |
495 | %attr(755,root,root) %{_pkglibdir}/input/libmod.so | |
337b99ea | 496 | %endif |
9c0e77e3 | 497 | |
498 | %files input-sndfile | |
499 | %defattr(644,root,root,755) | |
500 | %attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so | |
9c0e77e3 | 501 | |
502 | %files input-vorbis | |
503 | %defattr(644,root,root,755) | |
504 | %attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so | |
9c0e77e3 | 505 | |
4386a2bb | 506 | %files output-alsa |
99c70596 | 507 | %defattr(644,root,root,755) |
c06fc5a4 | 508 | %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so |
4386a2bb | 509 | |
337b99ea | 510 | %if %{with esound} |
4386a2bb | 511 | %files output-esound |
99c70596 | 512 | %defattr(644,root,root,755) |
c06fc5a4 | 513 | %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so |
337b99ea | 514 | %endif |
4386a2bb | 515 | |
337b99ea | 516 | %if %{with jack} |
9c0e77e3 | 517 | %files output-jack |
518 | %defattr(644,root,root,755) | |
9c0e77e3 | 519 | %attr(755,root,root) %{_pkglibdir}/output/libjack_out.so |
337b99ea | 520 | %endif |
9c0e77e3 | 521 | |
337b99ea | 522 | %if %{with nas} |
4386a2bb | 523 | %files output-nas |
99c70596 | 524 | %defattr(644,root,root,755) |
c06fc5a4 | 525 | %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so |
337b99ea | 526 | %endif |
0d2a9f5a | 527 | |
3978f024 | 528 | %files scopes2-gtk |
9c0e77e3 | 529 | %defattr(644,root,root,755) |
3978f024 JR |
530 | %attr(755,root,root) %{_pkglibdir}/scopes2/libblurscope.so |
531 | %attr(755,root,root) %{_pkglibdir}/scopes2/liblevelmeter.so | |
532 | %attr(755,root,root) %{_pkglibdir}/scopes2/liblogbarfft.so | |
533 | %attr(755,root,root) %{_pkglibdir}/scopes2/libmonoscope.so | |
534 | %attr(755,root,root) %{_pkglibdir}/scopes2/libspacescope.so | |
535 | %attr(755,root,root) %{_pkglibdir}/scopes2/libsynaescope.so | |
536 | ||
537 | %files scopes2-opengl | |
9c0e77e3 | 538 | %defattr(644,root,root,755) |
3978f024 | 539 | %attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so |
0d2a9f5a AF |
540 | |
541 | %files devel | |
90802fc9 | 542 | %defattr(644,root,root,755) |
46b1d468 | 543 | %attr(755,root,root) %{_libdir}/libalsaplayer.so |
0d2a9f5a | 544 | %{_libdir}/libalsaplayer.la |
46b1d468 | 545 | %{_includedir}/alsaplayer |
0d2a9f5a | 546 | %{_pkgconfigdir}/alsaplayer.pc |
9c0e77e3 | 547 | |
548 | %files static | |
549 | %defattr(644,root,root,755) | |
550 | %{_libdir}/libalsaplayer.a |