]>
Commit | Line | Data |
---|---|---|
c8387c7f JK |
1 | # |
2 | # bconds: | |
22542c27 | 3 | %bcond_with home_etc # enable HOME_ETC support |
39297dff | 4 | %bcond_without ffmpeg # disable ffmpeg |
3689b9a9 ER |
5 | |
6 | %define subver beta1 | |
4fa38afc | 7 | %define rel 5 |
c7ccbf07 | 8 | Summary: Console audio player with simple ncurses interface |
3d2628ad | 9 | Summary(hu.UTF-8): Konzolos audiólejátszó egyszerű ncurses felülettel |
a345b7c9 | 10 | Summary(pl.UTF-8): Konsolowy odtwarzacz audio z prostym interfejsem ncurses |
c7ccbf07 | 11 | Name: moc |
22542c27 | 12 | Version: 2.5.0 |
3689b9a9 | 13 | Release: 0.%{subver}.%{rel} |
c7ccbf07 | 14 | License: GPL |
15 | Group: Applications/Sound | |
22542c27 | 16 | #Source0: ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2 |
3689b9a9 | 17 | Source0: ftp://ftp.daper.net/pub/soft/moc/unstable/%{name}-%{version}-%{subver}.tar.bz2 |
22542c27 | 18 | # Source0-md5: 795ecba86847e082aa2f21937cc04804 |
c8387c7f | 19 | Patch0: %{name}-home_etc.patch |
8e1e5061 | 20 | URL: http://moc.daper.net/ |
c5979edd | 21 | BuildRequires: a52dec-libs-devel |
cc2ffc66 | 22 | BuildRequires: alsa-lib-devel |
0c945e10 JB |
23 | BuildRequires: autoconf |
24 | BuildRequires: automake | |
e65ad672 | 25 | BuildRequires: curl-devel |
39297dff | 26 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9-4.20080822.1} |
d75deb5b | 27 | BuildRequires: flac-devel >= 1.1.3 |
c7ccbf07 | 28 | BuildRequires: libao-devel |
af3b8ba1 | 29 | BuildRequires: libid3tag-devel |
2fb10303 | 30 | BuildRequires: libltdl-devel |
38905600 | 31 | BuildRequires: libmad-devel |
e65ad672 JW |
32 | BuildRequires: libmpcdec-devel >= 1.2 |
33 | BuildRequires: libsamplerate-devel | |
cb9be878 | 34 | BuildRequires: libsndfile-devel |
649cafba | 35 | BuildRequires: libtool |
c7ccbf07 | 36 | BuildRequires: libvorbis-devel |
c7ccbf07 | 37 | BuildRequires: ncurses-devel |
739c4f67 | 38 | BuildRequires: pkgconfig |
54cfe0c7 | 39 | BuildRequires: speex-devel |
e65ad672 | 40 | BuildRequires: taglib-devel >= 1.3.1 |
c7ccbf07 | 41 | BuildRequires: zlib-devel |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
5d72a8a0 JB |
43 | |
44 | %define _decoder_plugins %{_libdir}/%{name}/decoder_plugins | |
c7ccbf07 | 45 | |
46 | %description | |
47 | MOC is a console audio player with simple ncurses interface in | |
e65ad672 | 48 | playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV |
54cfe0c7 ER |
49 | and other less popular formats supported by libsndfile. It has all |
50 | functions one may expect from simple audio player. Now it supports net | |
51 | streams (shoutcast, icecast, regular HTTP, FTP) also. | |
c7ccbf07 | 52 | |
3d2628ad ZU |
53 | %description -l hu.UTF-8 |
54 | MOC egy konzolos audió lejátszó egyszerű ncurses felülettel | |
55 | playmp3list stílusban. MP3, Ogg, FLAC, Musepack, Speex, WAV és egyéb | |
56 | kevésbé elterjedt formátumokat támogat a libsndfile segítségével. | |
57 | Minden funkció megtalálható a programban, amelyet egy egyszerű audió | |
58 | lejátszótól elvárható. A hálózati streameket (shoutcast, icecast, | |
59 | általános HTTP, FTP) is támogatja. | |
60 | ||
754c2cae JR |
61 | %description -l pl.UTF-8 |
62 | MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym | |
54cfe0c7 ER |
63 | skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack, |
64 | Speex, WAV oraz inne mniej popularne formaty wspierane przez | |
754c2cae JR |
65 | bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać |
66 | się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie | |
2fb10303 | 67 | sieciowe (shoutcast, icecast, HTTP, FTP). |
c7ccbf07 | 68 | |
22542c27 JR |
69 | %package aac |
70 | Summary: AAC decoder for MoC - Music on Console | |
71 | Summary(hu.UTF-8): AAC formátum támogatása MoC-hoz | |
72 | Summary(pl.UTF-8): Dekoder AAC dla MOC | |
73 | Group: Applications/Sound | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | Provides: %{name}-input = %{version}-%{release} | |
76 | ||
77 | %description aac | |
78 | This package contains the AAC decoder. After install you should reload | |
79 | MOC player. | |
80 | ||
81 | %description aac -l hu.UTF-8 | |
82 | Ez a csomag az AAC dekódert tartalmazza. A telepítés után a MOC | |
83 | lejátsztót újra kell indítani. | |
84 | ||
85 | %description aac -l pl.UTF-8 | |
86 | Ten pakiet zawiera dekodowanie formatu AAC. Po zainstalowaniu należy | |
87 | uruchomić ponownie MOC. | |
88 | ||
c8387c7f JK |
89 | %package mp3 |
90 | Summary: MP3 decoder for MoC - Music on Console | |
3d2628ad | 91 | Summary(hu.UTF-8): MP3 formátum támogatása MoC-hoz |
a345b7c9 | 92 | Summary(pl.UTF-8): Dekoder MP3 dla MOC |
c8387c7f | 93 | Group: Applications/Sound |
5d72a8a0 JB |
94 | Requires: %{name} = %{version}-%{release} |
95 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
96 | |
97 | %description mp3 | |
54cfe0c7 ER |
98 | This package contains the MP3 decoder. After install you should reload |
99 | MOC player. | |
c8387c7f | 100 | |
3d2628ad ZU |
101 | %description mp3 -l hu.UTF-8 |
102 | Ez a csomag az MP3 dekódert tartalmazza. A telepítés után a MOC | |
103 | lejátsztót újra kell indítani. | |
104 | ||
754c2cae | 105 | %description mp3 -l pl.UTF-8 |
54cfe0c7 ER |
106 | Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy |
107 | uruchomić ponownie MOC. | |
c8387c7f JK |
108 | |
109 | %package musepack | |
110 | Summary: Musepack (MPC) decoder for MoC - Music on Console | |
3d2628ad | 111 | Summary(hu.UTF-8): Musepack (MPC) dekóder MoC-hoz |
a345b7c9 | 112 | Summary(pl.UTF-8): Dekoder Musepack (MPC) dla MOC |
c8387c7f | 113 | Group: Applications/Sound |
5d72a8a0 JB |
114 | Requires: %{name} = %{version}-%{release} |
115 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
116 | |
117 | %description musepack | |
54cfe0c7 ER |
118 | This package contains the Musepack (MPC) decoder. After install you |
119 | should reload MOC player. | |
c8387c7f | 120 | |
3d2628ad ZU |
121 | %description musepack -l hu.UTF-8 |
122 | Ez a csomag a Musepack (MPC) dekódert tartalmazza. A telepítés után a | |
123 | MOC lejátsztót újra kell indítani. | |
124 | ||
754c2cae | 125 | %description musepack -l pl.UTF-8 |
54cfe0c7 ER |
126 | Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po |
127 | zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
128 | |
129 | %package ogg | |
130 | Summary: Ogg decoder for MoC - Music on Console | |
3d2628ad | 131 | Summary(hu.UTF-8): Ogg dekóder MOC-hoz |
a345b7c9 | 132 | Summary(pl.UTF-8): Dekoder Ogg dla MOC |
c8387c7f | 133 | Group: Applications/Sound |
5d72a8a0 JB |
134 | Requires: %{name} = %{version}-%{release} |
135 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
136 | |
137 | %description ogg | |
54cfe0c7 ER |
138 | This package contains the Ogg decoder. After install you should reload |
139 | MOC player. | |
c8387c7f | 140 | |
3d2628ad ZU |
141 | %description ogg -l hu.UTF-8 |
142 | Ez a csomag az Ogg dekódert tartalmazza. A telepítés után a MOC | |
143 | lejátsztót újra kell indítani. | |
144 | ||
754c2cae | 145 | %description ogg -l pl.UTF-8 |
54cfe0c7 ER |
146 | Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy |
147 | uruchomić ponownie MOC. | |
c8387c7f JK |
148 | |
149 | %package flac | |
150 | Summary: FLAC decoder for MoC - Music on Console | |
3d2628ad | 151 | Summary(hu.UTF-8): FLAC dekóder MOC-hoz |
a345b7c9 | 152 | Summary(pl.UTF-8): Dekoder FLAC dla MOC |
c8387c7f | 153 | Group: Applications/Sound |
5d72a8a0 JB |
154 | Requires: %{name} = %{version}-%{release} |
155 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
156 | |
157 | %description flac | |
54cfe0c7 ER |
158 | This package contains the FLAC decoder. After install you should |
159 | reload MOC player. | |
c8387c7f | 160 | |
3d2628ad ZU |
161 | %description flac -l hu.UTF-8 |
162 | Ez a csomag az FLAC dekódert tartalmazza. A telepítés után a MOC | |
163 | lejátsztót újra kell indítani. | |
164 | ||
754c2cae | 165 | %description flac -l pl.UTF-8 |
54cfe0c7 ER |
166 | Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy |
167 | uruchomić ponownie MOC. | |
03adbdf0 | 168 | |
f9361176 JK |
169 | %package ffmpeg |
170 | Summary: ffmpeg decoder for MoC - Music on Console | |
3d2628ad | 171 | Summary(hu.UTF-8): ffmpeg dekóder MOC-hoz |
a345b7c9 | 172 | Summary(pl.UTF-8): Dekoder ffmpeg dla MOC |
f9361176 JK |
173 | Group: Applications/Sound |
174 | Requires: %{name} = %{version}-%{release} | |
175 | Provides: %{name}-input = %{version}-%{release} | |
176 | ||
177 | %description ffmpeg | |
54cfe0c7 ER |
178 | This package contains module to decode WMA (and others) files. After |
179 | install you should reload MOC player. | |
f9361176 | 180 | |
3d2628ad ZU |
181 | %description ffmpeg -l hu.UTF-8 |
182 | Ez a csomag az ffmpeg dekódert tartalmazza. A telepítés után a MOC | |
183 | lejátsztót újra kell indítani. | |
184 | ||
754c2cae JR |
185 | %description ffmpeg -l pl.UTF-8 |
186 | Ten pakiet zawiera moduł dekodujący pliki w formacie WMA (i nie tylko) | |
187 | Po zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
188 | |
189 | %package sndfile | |
190 | Summary: Decoder of the sndfile formats for MoC - Music on Console | |
3d2628ad | 191 | Summary(hu.UTF-8): sndfile dekóder MOC-hoz |
a345b7c9 | 192 | Summary(pl.UTF-8): Dekoder plików WAV/AIFF |
c8387c7f | 193 | Group: Applications/Sound |
5d72a8a0 JB |
194 | Requires: %{name} = %{version}-%{release} |
195 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
196 | |
197 | %description sndfile | |
54cfe0c7 ER |
198 | This package contains the decoders of sndfile. After install you |
199 | should reload MOC player. | |
c8387c7f | 200 | |
3d2628ad ZU |
201 | %description sndfile -l hu.UTF-8 |
202 | Ez a csomag az sndfile dekódert tartalmazza. A telepítés után a MOC | |
203 | lejátsztót újra kell indítani. | |
204 | ||
754c2cae | 205 | %description sndfile -l pl.UTF-8 |
54cfe0c7 ER |
206 | Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu |
207 | należy uruchomić ponownie MOC. | |
c8387c7f JK |
208 | |
209 | %package speex | |
210 | Summary: Speex decoder for MoC - Music on Console | |
3d2628ad | 211 | Summary(hu.UTF-8): Speex dekóder MOC-hoz |
a345b7c9 | 212 | Summary(pl.UTF-8): Dekoder formatu Speex dla MOC |
c8387c7f | 213 | Group: Applications/Sound |
5d72a8a0 JB |
214 | Requires: %{name} = %{version}-%{release} |
215 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
216 | |
217 | %description speex | |
54cfe0c7 ER |
218 | This package contains the Speex decoder. After install you should |
219 | reload MOC player. | |
c8387c7f | 220 | |
3d2628ad ZU |
221 | %description speex -l hu.UTF-8 |
222 | Ez a csomag az speex dekódert tartalmazza. A telepítés után a MOC | |
223 | lejátsztót újra kell indítani. | |
224 | ||
754c2cae | 225 | %description speex -l pl.UTF-8 |
54cfe0c7 ER |
226 | Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu |
227 | należy uruchomić ponownie MOC. | |
c8387c7f | 228 | |
22542c27 JR |
229 | %package modplug |
230 | Summary: ModPlug decoder for MoC - Music on Console | |
231 | Summary(hu.UTF-8): ModPlug dekóder MOC-hoz | |
232 | Summary(pl.UTF-8): Dekoder formatów ModPlug dla MOC | |
233 | Group: Applications/Sound | |
234 | Requires: %{name} = %{version}-%{release} | |
235 | Provides: %{name}-input = %{version}-%{release} | |
236 | ||
237 | %description modplug | |
238 | This package contains the ModPlug decoder. After install you should | |
239 | reload MOC player. | |
240 | ||
241 | %description modplug -l hu.UTF-8 | |
242 | Ez a csomag az ModPlug dekódert tartalmazza. A telepítés után a MOC | |
243 | lejátsztót újra kell indítani. | |
244 | ||
245 | %description modplug -l pl.UTF-8 | |
246 | Ten pakiet zapewnia dekodowanie formatów ModPlug. Po zainstalowaniu | |
247 | należy uruchomić ponownie MOC. | |
248 | ||
249 | %package wavpack | |
250 | Summary: WavPack decoder for MoC - Music on Console | |
251 | Summary(hu.UTF-8): WavPack dekóder MOC-hoz | |
252 | Summary(pl.UTF-8): Dekoder formatu WavPack dla MOC | |
253 | Group: Applications/Sound | |
254 | Requires: %{name} = %{version}-%{release} | |
255 | Provides: %{name}-input = %{version}-%{release} | |
256 | ||
257 | %description wavpack | |
258 | This package contains the WavPack decoder. After install you should | |
259 | reload MOC player. | |
260 | ||
261 | %description wavpack -l hu.UTF-8 | |
262 | Ez a csomag az WavPack dekódert tartalmazza. A telepítés után a MOC | |
263 | lejátsztót újra kell indítani. | |
264 | ||
265 | %description wavpack -l pl.UTF-8 | |
266 | Ten pakiet zapewnia dekodowanie formatu WavPack. Po zainstalowaniu | |
267 | należy uruchomić ponownie MOC. | |
268 | ||
c7ccbf07 | 269 | %prep |
3689b9a9 | 270 | %setup -q -n %{name}-%{version}-%{subver} |
c8387c7f | 271 | %{?with_home_etc:%patch0 -p1} |
96d76936 ER |
272 | |
273 | rm -rf libltdl | |
274 | %{__sed} -i -e '/SUBDIRS/ s/libltdl//' Makefile.am | |
275 | %{__sed} -i -e ' | |
276 | /LT_CONFIG_LTDL_DIR/d | |
277 | /LT_INIT/d | |
278 | /LTDL_INIT/d | |
279 | /AC_CONFIG_AUX_DIR/d | |
280 | /AC_CONFIG_MACRO_DIR/d | |
281 | ' configure.in | |
282 | ||
c7ccbf07 | 283 | %build |
284 | CFLAGS="-I/usr/include/ncurses %{rpmcflags}" | |
285 | ||
ad3712db | 286 | %{__libtoolize} |
af3b8ba1 | 287 | %{__aclocal} -I m4 |
c7ccbf07 | 288 | %{__autoconf} |
289 | %{__automake} | |
2fb10303 | 290 | %configure \ |
39297dff | 291 | %{!?with_ffmpeg:--without-ffmpeg} \ |
54cfe0c7 | 292 | --disable-debug |
af3b8ba1 | 293 | |
96d76936 ER |
294 | %{__make} \ |
295 | LIBLTDL=-lltdl | |
20e5e609 | 296 | |
c7ccbf07 | 297 | %install |
298 | rm -rf $RPM_BUILD_ROOT | |
299 | install -d $RPM_BUILD_ROOT | |
300 | ||
0c945e10 JB |
301 | %{__make} install \ |
302 | DESTDIR=$RPM_BUILD_ROOT | |
c7ccbf07 | 303 | |
649cafba | 304 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
c8387c7f | 305 | rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la |
14c22435 | 306 | |
c7ccbf07 | 307 | %clean |
308 | rm -rf $RPM_BUILD_ROOT | |
309 | ||
310 | %files | |
311 | %defattr(644,root,root,755) | |
649cafba | 312 | %doc AUTHORS NEWS README THANKS TODO *.example |
c7ccbf07 | 313 | %attr(755,root,root) %{_bindir}/* |
2fb10303 | 314 | %dir %{_libdir}/moc |
5d72a8a0 | 315 | %dir %{_libdir}/moc/decoder_plugins |
ab0d17ae | 316 | %{_datadir}/%{name} |
56070975 | 317 | %{_mandir}/man1/mocp* |
c8387c7f JK |
318 | |
319 | %files musepack | |
5d72a8a0 JB |
320 | %defattr(644,root,root,755) |
321 | %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so* | |
c8387c7f JK |
322 | |
323 | %files flac | |
5d72a8a0 JB |
324 | %defattr(644,root,root,755) |
325 | %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so* | |
c8387c7f | 326 | |
39297dff | 327 | %if %{with ffmpeg} |
f9361176 | 328 | %files ffmpeg |
54cfe0c7 | 329 | %defattr(644,root,root,755) |
f9361176 | 330 | %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so |
39297dff | 331 | %endif |
f9361176 | 332 | |
22542c27 JR |
333 | %files aac |
334 | %defattr(644,root,root,755) | |
335 | %attr(755,root,root) %{_decoder_plugins}/libaac_decoder.so* | |
336 | ||
c8387c7f | 337 | %files mp3 |
5d72a8a0 JB |
338 | %defattr(644,root,root,755) |
339 | %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so* | |
c8387c7f JK |
340 | |
341 | %files ogg | |
5d72a8a0 JB |
342 | %defattr(644,root,root,755) |
343 | %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so* | |
c8387c7f JK |
344 | |
345 | %files sndfile | |
5d72a8a0 | 346 | %defattr(644,root,root,755) |
22542c27 | 347 | %attr(755,root,root) %{_decoder_plugins}/libsndfile_decoder.so* |
c8387c7f JK |
348 | |
349 | %files speex | |
5d72a8a0 JB |
350 | %defattr(644,root,root,755) |
351 | %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so* | |
22542c27 JR |
352 | |
353 | %files modplug | |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_decoder_plugins}/libmodplug_decoder.so* | |
356 | ||
357 | %files wavpack | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_decoder_plugins}/libwavpack_decoder.so* |