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