]>
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 | 5 | |
c7ccbf07 | 6 | Summary: Console audio player with simple ncurses interface |
3d2628ad | 7 | Summary(hu.UTF-8): Konzolos audiólejátszó egyszerű ncurses felülettel |
a345b7c9 | 8 | Summary(pl.UTF-8): Konsolowy odtwarzacz audio z prostym interfejsem ncurses |
c7ccbf07 | 9 | Name: moc |
22542c27 | 10 | Version: 2.5.0 |
d9378fa5 | 11 | Release: 3 |
c7ccbf07 | 12 | License: GPL |
13 | Group: Applications/Sound | |
7f6e0551 JR |
14 | Source0: http://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2 |
15 | # Source0-md5: 18e3a979b67091bfee4b62217908c473 | |
c8387c7f | 16 | Patch0: %{name}-home_etc.patch |
7f6e0551 | 17 | Patch1: ffmpeg3.patch |
5fae7d1d | 18 | Patch2: ffmpeg4.patch |
8e1e5061 | 19 | URL: http://moc.daper.net/ |
c5979edd | 20 | BuildRequires: a52dec-libs-devel |
cc2ffc66 | 21 | BuildRequires: alsa-lib-devel |
0c945e10 JB |
22 | BuildRequires: autoconf |
23 | BuildRequires: automake | |
e65ad672 | 24 | BuildRequires: curl-devel |
39297dff | 25 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9-4.20080822.1} |
d75deb5b | 26 | BuildRequires: flac-devel >= 1.1.3 |
c7ccbf07 | 27 | BuildRequires: libao-devel |
af3b8ba1 | 28 | BuildRequires: libid3tag-devel |
2fb10303 | 29 | BuildRequires: libltdl-devel |
38905600 | 30 | BuildRequires: libmad-devel |
e65ad672 JW |
31 | BuildRequires: libmpcdec-devel >= 1.2 |
32 | BuildRequires: libsamplerate-devel | |
cb9be878 | 33 | BuildRequires: libsndfile-devel |
649cafba | 34 | BuildRequires: libtool |
c7ccbf07 | 35 | BuildRequires: libvorbis-devel |
c7ccbf07 | 36 | BuildRequires: ncurses-devel |
739c4f67 | 37 | BuildRequires: pkgconfig |
54cfe0c7 | 38 | BuildRequires: speex-devel |
e65ad672 | 39 | BuildRequires: taglib-devel >= 1.3.1 |
c7ccbf07 | 40 | BuildRequires: zlib-devel |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
5d72a8a0 JB |
42 | |
43 | %define _decoder_plugins %{_libdir}/%{name}/decoder_plugins | |
c7ccbf07 | 44 | |
45 | %description | |
46 | MOC is a console audio player with simple ncurses interface in | |
e65ad672 | 47 | playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV |
54cfe0c7 ER |
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. | |
c7ccbf07 | 51 | |
3d2628ad ZU |
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 | ||
754c2cae JR |
60 | %description -l pl.UTF-8 |
61 | MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym | |
54cfe0c7 ER |
62 | skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack, |
63 | Speex, WAV oraz inne mniej popularne formaty wspierane przez | |
754c2cae JR |
64 | bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać |
65 | się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie | |
2fb10303 | 66 | sieciowe (shoutcast, icecast, HTTP, FTP). |
c7ccbf07 | 67 | |
22542c27 JR |
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 | ||
c8387c7f JK |
88 | %package mp3 |
89 | Summary: MP3 decoder for MoC - Music on Console | |
3d2628ad | 90 | Summary(hu.UTF-8): MP3 formátum támogatása MoC-hoz |
a345b7c9 | 91 | Summary(pl.UTF-8): Dekoder MP3 dla MOC |
c8387c7f | 92 | Group: Applications/Sound |
5d72a8a0 JB |
93 | Requires: %{name} = %{version}-%{release} |
94 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
95 | |
96 | %description mp3 | |
54cfe0c7 ER |
97 | This package contains the MP3 decoder. After install you should reload |
98 | MOC player. | |
c8387c7f | 99 | |
3d2628ad ZU |
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 | ||
754c2cae | 104 | %description mp3 -l pl.UTF-8 |
54cfe0c7 ER |
105 | Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy |
106 | uruchomić ponownie MOC. | |
c8387c7f JK |
107 | |
108 | %package musepack | |
109 | Summary: Musepack (MPC) decoder for MoC - Music on Console | |
3d2628ad | 110 | Summary(hu.UTF-8): Musepack (MPC) dekóder MoC-hoz |
a345b7c9 | 111 | Summary(pl.UTF-8): Dekoder Musepack (MPC) dla MOC |
c8387c7f | 112 | Group: Applications/Sound |
5d72a8a0 JB |
113 | Requires: %{name} = %{version}-%{release} |
114 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
115 | |
116 | %description musepack | |
54cfe0c7 ER |
117 | This package contains the Musepack (MPC) decoder. After install you |
118 | should reload MOC player. | |
c8387c7f | 119 | |
3d2628ad ZU |
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 | ||
754c2cae | 124 | %description musepack -l pl.UTF-8 |
54cfe0c7 ER |
125 | Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po |
126 | zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
127 | |
128 | %package ogg | |
129 | Summary: Ogg decoder for MoC - Music on Console | |
3d2628ad | 130 | Summary(hu.UTF-8): Ogg dekóder MOC-hoz |
a345b7c9 | 131 | Summary(pl.UTF-8): Dekoder Ogg dla MOC |
c8387c7f | 132 | Group: Applications/Sound |
5d72a8a0 JB |
133 | Requires: %{name} = %{version}-%{release} |
134 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
135 | |
136 | %description ogg | |
54cfe0c7 ER |
137 | This package contains the Ogg decoder. After install you should reload |
138 | MOC player. | |
c8387c7f | 139 | |
3d2628ad ZU |
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 | ||
754c2cae | 144 | %description ogg -l pl.UTF-8 |
54cfe0c7 ER |
145 | Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy |
146 | uruchomić ponownie MOC. | |
c8387c7f JK |
147 | |
148 | %package flac | |
149 | Summary: FLAC decoder for MoC - Music on Console | |
3d2628ad | 150 | Summary(hu.UTF-8): FLAC dekóder MOC-hoz |
a345b7c9 | 151 | Summary(pl.UTF-8): Dekoder FLAC dla MOC |
c8387c7f | 152 | Group: Applications/Sound |
5d72a8a0 JB |
153 | Requires: %{name} = %{version}-%{release} |
154 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
155 | |
156 | %description flac | |
54cfe0c7 ER |
157 | This package contains the FLAC decoder. After install you should |
158 | reload MOC player. | |
c8387c7f | 159 | |
3d2628ad ZU |
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 | ||
754c2cae | 164 | %description flac -l pl.UTF-8 |
54cfe0c7 ER |
165 | Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy |
166 | uruchomić ponownie MOC. | |
03adbdf0 | 167 | |
f9361176 JK |
168 | %package ffmpeg |
169 | Summary: ffmpeg decoder for MoC - Music on Console | |
3d2628ad | 170 | Summary(hu.UTF-8): ffmpeg dekóder MOC-hoz |
a345b7c9 | 171 | Summary(pl.UTF-8): Dekoder ffmpeg dla MOC |
f9361176 JK |
172 | Group: Applications/Sound |
173 | Requires: %{name} = %{version}-%{release} | |
174 | Provides: %{name}-input = %{version}-%{release} | |
175 | ||
176 | %description ffmpeg | |
54cfe0c7 ER |
177 | This package contains module to decode WMA (and others) files. After |
178 | install you should reload MOC player. | |
f9361176 | 179 | |
3d2628ad ZU |
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 | ||
754c2cae JR |
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. | |
c8387c7f JK |
187 | |
188 | %package sndfile | |
189 | Summary: Decoder of the sndfile formats for MoC - Music on Console | |
3d2628ad | 190 | Summary(hu.UTF-8): sndfile dekóder MOC-hoz |
a345b7c9 | 191 | Summary(pl.UTF-8): Dekoder plików WAV/AIFF |
c8387c7f | 192 | Group: Applications/Sound |
5d72a8a0 JB |
193 | Requires: %{name} = %{version}-%{release} |
194 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
195 | |
196 | %description sndfile | |
54cfe0c7 ER |
197 | This package contains the decoders of sndfile. After install you |
198 | should reload MOC player. | |
c8387c7f | 199 | |
3d2628ad ZU |
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 | ||
754c2cae | 204 | %description sndfile -l pl.UTF-8 |
54cfe0c7 ER |
205 | Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu |
206 | należy uruchomić ponownie MOC. | |
c8387c7f JK |
207 | |
208 | %package speex | |
209 | Summary: Speex decoder for MoC - Music on Console | |
3d2628ad | 210 | Summary(hu.UTF-8): Speex dekóder MOC-hoz |
a345b7c9 | 211 | Summary(pl.UTF-8): Dekoder formatu Speex dla MOC |
c8387c7f | 212 | Group: Applications/Sound |
5d72a8a0 JB |
213 | Requires: %{name} = %{version}-%{release} |
214 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
215 | |
216 | %description speex | |
54cfe0c7 ER |
217 | This package contains the Speex decoder. After install you should |
218 | reload MOC player. | |
c8387c7f | 219 | |
3d2628ad ZU |
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 | ||
754c2cae | 224 | %description speex -l pl.UTF-8 |
54cfe0c7 ER |
225 | Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu |
226 | należy uruchomić ponownie MOC. | |
c8387c7f | 227 | |
22542c27 JR |
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 | ||
c7ccbf07 | 268 | %prep |
7f6e0551 | 269 | %setup -q |
c8387c7f | 270 | %{?with_home_etc:%patch0 -p1} |
7f6e0551 | 271 | %patch1 -p1 |
5fae7d1d | 272 | %patch2 -p1 |
96d76936 ER |
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 | ||
c7ccbf07 | 284 | %build |
285 | CFLAGS="-I/usr/include/ncurses %{rpmcflags}" | |
286 | ||
ad3712db | 287 | %{__libtoolize} |
af3b8ba1 | 288 | %{__aclocal} -I m4 |
c7ccbf07 | 289 | %{__autoconf} |
290 | %{__automake} | |
2fb10303 | 291 | %configure \ |
39297dff | 292 | %{!?with_ffmpeg:--without-ffmpeg} \ |
54cfe0c7 | 293 | --disable-debug |
af3b8ba1 | 294 | |
96d76936 ER |
295 | %{__make} \ |
296 | LIBLTDL=-lltdl | |
20e5e609 | 297 | |
c7ccbf07 | 298 | %install |
299 | rm -rf $RPM_BUILD_ROOT | |
300 | install -d $RPM_BUILD_ROOT | |
301 | ||
0c945e10 JB |
302 | %{__make} install \ |
303 | DESTDIR=$RPM_BUILD_ROOT | |
c7ccbf07 | 304 | |
649cafba | 305 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
c8387c7f | 306 | rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la |
14c22435 | 307 | |
c7ccbf07 | 308 | %clean |
309 | rm -rf $RPM_BUILD_ROOT | |
310 | ||
311 | %files | |
312 | %defattr(644,root,root,755) | |
649cafba | 313 | %doc AUTHORS NEWS README THANKS TODO *.example |
c7ccbf07 | 314 | %attr(755,root,root) %{_bindir}/* |
2fb10303 | 315 | %dir %{_libdir}/moc |
5d72a8a0 | 316 | %dir %{_libdir}/moc/decoder_plugins |
ab0d17ae | 317 | %{_datadir}/%{name} |
56070975 | 318 | %{_mandir}/man1/mocp* |
c8387c7f JK |
319 | |
320 | %files musepack | |
5d72a8a0 JB |
321 | %defattr(644,root,root,755) |
322 | %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so* | |
c8387c7f JK |
323 | |
324 | %files flac | |
5d72a8a0 JB |
325 | %defattr(644,root,root,755) |
326 | %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so* | |
c8387c7f | 327 | |
39297dff | 328 | %if %{with ffmpeg} |
f9361176 | 329 | %files ffmpeg |
54cfe0c7 | 330 | %defattr(644,root,root,755) |
f9361176 | 331 | %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so |
39297dff | 332 | %endif |
f9361176 | 333 | |
22542c27 JR |
334 | %files aac |
335 | %defattr(644,root,root,755) | |
336 | %attr(755,root,root) %{_decoder_plugins}/libaac_decoder.so* | |
337 | ||
c8387c7f | 338 | %files mp3 |
5d72a8a0 JB |
339 | %defattr(644,root,root,755) |
340 | %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so* | |
c8387c7f JK |
341 | |
342 | %files ogg | |
5d72a8a0 JB |
343 | %defattr(644,root,root,755) |
344 | %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so* | |
c8387c7f JK |
345 | |
346 | %files sndfile | |
5d72a8a0 | 347 | %defattr(644,root,root,755) |
22542c27 | 348 | %attr(755,root,root) %{_decoder_plugins}/libsndfile_decoder.so* |
c8387c7f JK |
349 | |
350 | %files speex | |
5d72a8a0 JB |
351 | %defattr(644,root,root,755) |
352 | %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so* | |
22542c27 JR |
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* |