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