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