]>
Commit | Line | Data |
---|---|---|
c8387c7f JK |
1 | # |
2 | # bconds: | |
3 | %bcond_without home_etc # disable HOME_ETC support | |
39297dff | 4 | %bcond_without ffmpeg # disable ffmpeg |
c8387c7f | 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 |
be561a03 | 10 | Version: 2.4.4 |
ebcbdd1f | 11 | Release: 8 |
c7ccbf07 | 12 | License: GPL |
13 | Group: Applications/Sound | |
03adbdf0 | 14 | Source0: ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2 |
be561a03 | 15 | # Source0-md5: 647c770a5542a4ae5437386807a89796 |
c8387c7f | 16 | Patch0: %{name}-home_etc.patch |
a0f6fa21 | 17 | Patch1: ncurses-tinfo.patch |
3154e659 | 18 | Patch2: ffmpeg071.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 | |
c8387c7f JK |
68 | %package mp3 |
69 | Summary: MP3 decoder for MoC - Music on Console | |
3d2628ad | 70 | Summary(hu.UTF-8): MP3 formátum támogatása MoC-hoz |
a345b7c9 | 71 | Summary(pl.UTF-8): Dekoder MP3 dla MOC |
c8387c7f | 72 | Group: Applications/Sound |
5d72a8a0 JB |
73 | Requires: %{name} = %{version}-%{release} |
74 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
75 | |
76 | %description mp3 | |
54cfe0c7 ER |
77 | This package contains the MP3 decoder. After install you should reload |
78 | MOC player. | |
c8387c7f | 79 | |
3d2628ad ZU |
80 | %description mp3 -l hu.UTF-8 |
81 | Ez a csomag az MP3 dekódert tartalmazza. A telepítés után a MOC | |
82 | lejátsztót újra kell indítani. | |
83 | ||
754c2cae | 84 | %description mp3 -l pl.UTF-8 |
54cfe0c7 ER |
85 | Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy |
86 | uruchomić ponownie MOC. | |
c8387c7f JK |
87 | |
88 | %package musepack | |
89 | Summary: Musepack (MPC) decoder for MoC - Music on Console | |
3d2628ad | 90 | Summary(hu.UTF-8): Musepack (MPC) dekóder MoC-hoz |
a345b7c9 | 91 | Summary(pl.UTF-8): Dekoder Musepack (MPC) 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 musepack | |
54cfe0c7 ER |
97 | This package contains the Musepack (MPC) decoder. After install you |
98 | should reload MOC player. | |
c8387c7f | 99 | |
3d2628ad ZU |
100 | %description musepack -l hu.UTF-8 |
101 | Ez a csomag a Musepack (MPC) dekódert tartalmazza. A telepítés után a | |
102 | MOC lejátsztót újra kell indítani. | |
103 | ||
754c2cae | 104 | %description musepack -l pl.UTF-8 |
54cfe0c7 ER |
105 | Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po |
106 | zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
107 | |
108 | %package ogg | |
109 | Summary: Ogg decoder for MoC - Music on Console | |
3d2628ad | 110 | Summary(hu.UTF-8): Ogg dekóder MOC-hoz |
a345b7c9 | 111 | Summary(pl.UTF-8): Dekoder Ogg 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 ogg | |
54cfe0c7 ER |
117 | This package contains the Ogg decoder. After install you should reload |
118 | MOC player. | |
c8387c7f | 119 | |
3d2628ad ZU |
120 | %description ogg -l hu.UTF-8 |
121 | Ez a csomag az Ogg dekódert tartalmazza. A telepítés után a MOC | |
122 | lejátsztót újra kell indítani. | |
123 | ||
754c2cae | 124 | %description ogg -l pl.UTF-8 |
54cfe0c7 ER |
125 | Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy |
126 | uruchomić ponownie MOC. | |
c8387c7f JK |
127 | |
128 | %package flac | |
129 | Summary: FLAC decoder for MoC - Music on Console | |
3d2628ad | 130 | Summary(hu.UTF-8): FLAC dekóder MOC-hoz |
a345b7c9 | 131 | Summary(pl.UTF-8): Dekoder FLAC 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 flac | |
54cfe0c7 ER |
137 | This package contains the FLAC decoder. After install you should |
138 | reload MOC player. | |
c8387c7f | 139 | |
3d2628ad ZU |
140 | %description flac -l hu.UTF-8 |
141 | Ez a csomag az FLAC dekódert tartalmazza. A telepítés után a MOC | |
142 | lejátsztót újra kell indítani. | |
143 | ||
754c2cae | 144 | %description flac -l pl.UTF-8 |
54cfe0c7 ER |
145 | Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy |
146 | uruchomić ponownie MOC. | |
03adbdf0 | 147 | |
f9361176 JK |
148 | %package ffmpeg |
149 | Summary: ffmpeg decoder for MoC - Music on Console | |
3d2628ad | 150 | Summary(hu.UTF-8): ffmpeg dekóder MOC-hoz |
a345b7c9 | 151 | Summary(pl.UTF-8): Dekoder ffmpeg dla MOC |
f9361176 JK |
152 | Group: Applications/Sound |
153 | Requires: %{name} = %{version}-%{release} | |
154 | Provides: %{name}-input = %{version}-%{release} | |
155 | ||
156 | %description ffmpeg | |
54cfe0c7 ER |
157 | This package contains module to decode WMA (and others) files. After |
158 | install you should reload MOC player. | |
f9361176 | 159 | |
3d2628ad ZU |
160 | %description ffmpeg -l hu.UTF-8 |
161 | Ez a csomag az ffmpeg dekódert tartalmazza. A telepítés után a MOC | |
162 | lejátsztót újra kell indítani. | |
163 | ||
754c2cae JR |
164 | %description ffmpeg -l pl.UTF-8 |
165 | Ten pakiet zawiera moduł dekodujący pliki w formacie WMA (i nie tylko) | |
166 | Po zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
167 | |
168 | %package sndfile | |
169 | Summary: Decoder of the sndfile formats for MoC - Music on Console | |
3d2628ad | 170 | Summary(hu.UTF-8): sndfile dekóder MOC-hoz |
a345b7c9 | 171 | Summary(pl.UTF-8): Dekoder plików WAV/AIFF |
c8387c7f | 172 | Group: Applications/Sound |
5d72a8a0 JB |
173 | Requires: %{name} = %{version}-%{release} |
174 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
175 | |
176 | %description sndfile | |
54cfe0c7 ER |
177 | This package contains the decoders of sndfile. After install you |
178 | should reload MOC player. | |
c8387c7f | 179 | |
3d2628ad ZU |
180 | %description sndfile -l hu.UTF-8 |
181 | Ez a csomag az sndfile dekódert tartalmazza. A telepítés után a MOC | |
182 | lejátsztót újra kell indítani. | |
183 | ||
754c2cae | 184 | %description sndfile -l pl.UTF-8 |
54cfe0c7 ER |
185 | Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu |
186 | należy uruchomić ponownie MOC. | |
c8387c7f JK |
187 | |
188 | %package speex | |
189 | Summary: Speex decoder for MoC - Music on Console | |
3d2628ad | 190 | Summary(hu.UTF-8): Speex dekóder MOC-hoz |
a345b7c9 | 191 | Summary(pl.UTF-8): Dekoder formatu Speex dla MOC |
c8387c7f | 192 | Group: Applications/Sound |
5d72a8a0 JB |
193 | Requires: %{name} = %{version}-%{release} |
194 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
195 | |
196 | %description speex | |
54cfe0c7 ER |
197 | This package contains the Speex decoder. After install you should |
198 | reload MOC player. | |
c8387c7f | 199 | |
3d2628ad ZU |
200 | %description speex -l hu.UTF-8 |
201 | Ez a csomag az speex dekódert tartalmazza. A telepítés után a MOC | |
202 | lejátsztót újra kell indítani. | |
203 | ||
754c2cae | 204 | %description speex -l pl.UTF-8 |
54cfe0c7 ER |
205 | Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu |
206 | należy uruchomić ponownie MOC. | |
c8387c7f | 207 | |
c7ccbf07 | 208 | %prep |
f9361176 | 209 | %setup -q |
c8387c7f | 210 | %{?with_home_etc:%patch0 -p1} |
a0f6fa21 | 211 | %patch1 -p1 |
3154e659 | 212 | %patch2 -p2 |
96d76936 ER |
213 | |
214 | rm -rf libltdl | |
215 | %{__sed} -i -e '/SUBDIRS/ s/libltdl//' Makefile.am | |
216 | %{__sed} -i -e ' | |
217 | /LT_CONFIG_LTDL_DIR/d | |
218 | /LT_INIT/d | |
219 | /LTDL_INIT/d | |
220 | /AC_CONFIG_AUX_DIR/d | |
221 | /AC_CONFIG_MACRO_DIR/d | |
222 | ' configure.in | |
223 | ||
c7ccbf07 | 224 | %build |
225 | CFLAGS="-I/usr/include/ncurses %{rpmcflags}" | |
226 | ||
ad3712db | 227 | %{__libtoolize} |
af3b8ba1 | 228 | %{__aclocal} -I m4 |
c7ccbf07 | 229 | %{__autoconf} |
230 | %{__automake} | |
2fb10303 | 231 | %configure \ |
39297dff | 232 | %{!?with_ffmpeg:--without-ffmpeg} \ |
54cfe0c7 | 233 | --disable-debug |
af3b8ba1 | 234 | |
96d76936 ER |
235 | %{__make} \ |
236 | LIBLTDL=-lltdl | |
20e5e609 | 237 | |
c7ccbf07 | 238 | %install |
239 | rm -rf $RPM_BUILD_ROOT | |
240 | install -d $RPM_BUILD_ROOT | |
241 | ||
0c945e10 JB |
242 | %{__make} install \ |
243 | DESTDIR=$RPM_BUILD_ROOT | |
c7ccbf07 | 244 | |
649cafba | 245 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
c8387c7f | 246 | rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la |
14c22435 | 247 | |
c7ccbf07 | 248 | %clean |
249 | rm -rf $RPM_BUILD_ROOT | |
250 | ||
251 | %files | |
252 | %defattr(644,root,root,755) | |
649cafba | 253 | %doc AUTHORS NEWS README THANKS TODO *.example |
c7ccbf07 | 254 | %attr(755,root,root) %{_bindir}/* |
2fb10303 | 255 | %dir %{_libdir}/moc |
5d72a8a0 | 256 | %dir %{_libdir}/moc/decoder_plugins |
ab0d17ae | 257 | %{_datadir}/%{name} |
56070975 | 258 | %{_mandir}/man1/mocp* |
c8387c7f JK |
259 | |
260 | %files musepack | |
5d72a8a0 JB |
261 | %defattr(644,root,root,755) |
262 | %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so* | |
c8387c7f JK |
263 | |
264 | %files flac | |
5d72a8a0 JB |
265 | %defattr(644,root,root,755) |
266 | %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so* | |
c8387c7f | 267 | |
39297dff | 268 | %if %{with ffmpeg} |
f9361176 | 269 | %files ffmpeg |
54cfe0c7 | 270 | %defattr(644,root,root,755) |
f9361176 | 271 | %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so |
39297dff | 272 | %endif |
f9361176 | 273 | |
c8387c7f | 274 | %files mp3 |
5d72a8a0 JB |
275 | %defattr(644,root,root,755) |
276 | %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so* | |
c8387c7f JK |
277 | |
278 | %files ogg | |
5d72a8a0 JB |
279 | %defattr(644,root,root,755) |
280 | %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so* | |
c8387c7f JK |
281 | |
282 | %files sndfile | |
5d72a8a0 JB |
283 | %defattr(644,root,root,755) |
284 | %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so* | |
c8387c7f JK |
285 | |
286 | %files speex | |
5d72a8a0 JB |
287 | %defattr(644,root,root,755) |
288 | %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so* |