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