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