]>
Commit | Line | Data |
---|---|---|
dd678cda | 1 | %bcond_with arts |
48d72b92 ZU |
2 | Summary: cmus is a small and fast text mode music player |
3 | Summary(hu.UTF-8): cmus egy kicsi és gyors szöveges zenelejátszó | |
4 | Name: cmus | |
52db3d69 | 5 | Version: 2.3.4 |
440504dd | 6 | Release: 0.1 |
48d72b92 ZU |
7 | License: GPL |
8 | Group: Applications/Sound | |
440504dd | 9 | Source0: http://downloads.sourceforge.net/project/cmus/%{name}-v%{version}.tar.bz2 |
52db3d69 | 10 | # Source0-md5: 10629719fd0bff2d3c322ac24834af35 |
48d72b92 ZU |
11 | URL: http://cmus.sourceforge.net/ |
12 | BuildRequires: alsa-lib-devel | |
dd678cda ZU |
13 | %if %{with arts} |
14 | BuildRequires: arts-devel | |
15 | %endif | |
48d72b92 ZU |
16 | BuildRequires: faad2-devel |
17 | BuildRequires: ffmpeg-devel | |
18 | BuildRequires: libao-devel | |
19 | BuildRequires: libmad-devel | |
20 | BuildRequires: libmodplug-devel | |
e51b02e1 | 21 | BuildRequires: libmpcdec-devel |
48d72b92 ZU |
22 | BuildRequires: libraw1394-devel |
23 | BuildRequires: libvorbis-devel | |
24 | BuildRequires: mpeg4ip-devel | |
25 | BuildRequires: ncurses-devel | |
e51b02e1 | 26 | BuildRequires: pkg-config |
ea53335e | 27 | BuildRequires: pulseaudio-devel |
48d72b92 ZU |
28 | BuildRequires: sed > 4.0 |
29 | BuildRequires: wavpack-devel | |
45346255 ZU |
30 | Suggests: %{name}-input |
31 | Suggests: %{name}-output | |
48d72b92 ZU |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
440504dd | 35 | cmus is a small and fast text mode music player. |
48d72b92 ZU |
36 | |
37 | %description -l pl.UTF-8 | |
440504dd | 38 | cmus egy kicsi és gyors szöveges zenelejátszó. |
48d72b92 ZU |
39 | |
40 | ||
41 | # input plugins | |
42 | ||
e51b02e1 | 43 | %package input-aac |
48d72b92 ZU |
44 | Summary: aac plugin for cmus |
45 | Summary(hu.UTF-8): aac plugin cmus-hoz | |
46 | Group: Applications/Sound | |
47 | Requires: %{name} = %{version} | |
48 | Provides: %{name}-input | |
49 | ||
e51b02e1 | 50 | %description input-aac |
440504dd | 51 | aac plugin for cmus. |
48d72b92 | 52 | |
e51b02e1 | 53 | %description input-aac -l hu.UTF-8 |
440504dd | 54 | aac plugin cmus-hoz. |
48d72b92 | 55 | |
e51b02e1 | 56 | %package input-ffmpeg |
48d72b92 ZU |
57 | Summary: ffmpeg plugin for cmus |
58 | Summary(hu.UTF-8): ffmpeg plugin cmus-hoz | |
59 | Group: Applications/Sound | |
60 | Requires: %{name} = %{version} | |
61 | Provides: %{name}-input | |
62 | ||
e51b02e1 | 63 | %description input-ffmpeg |
440504dd | 64 | ffmpeg plugin for cmus. |
48d72b92 | 65 | |
e51b02e1 | 66 | %description input-ffmpeg -l hu.UTF-8 |
440504dd | 67 | ffmpeg plugin cmus-hoz. |
48d72b92 | 68 | |
e51b02e1 | 69 | %package input-flac |
48d72b92 ZU |
70 | Summary: flac plugin for cmus |
71 | Summary(hu.UTF-8): flac plugin cmus-hoz | |
72 | Group: Applications/Sound | |
73 | Requires: %{name} = %{version} | |
74 | Provides: %{name}-input | |
75 | ||
e51b02e1 | 76 | %description input-flac |
440504dd | 77 | flac plugin for cmus. |
48d72b92 | 78 | |
e51b02e1 | 79 | %description input-flac -l hu.UTF-8 |
440504dd | 80 | flac plugin cmus-hoz. |
48d72b92 | 81 | |
e51b02e1 | 82 | %package input-mad |
48d72b92 ZU |
83 | Summary: mad plugin for cmus |
84 | Summary(hu.UTF-8): mad plugin cmus-hoz | |
85 | Group: Applications/Sound | |
86 | Requires: %{name} = %{version} | |
87 | Provides: %{name}-input | |
88 | ||
e51b02e1 | 89 | %description input-mad |
440504dd | 90 | mad plugin for cmus. |
48d72b92 | 91 | |
e51b02e1 | 92 | %description input-mad -l hu.UTF-8 |
440504dd | 93 | mad plugin cmus-hoz. |
48d72b92 | 94 | |
e51b02e1 | 95 | %package input-modplug |
48d72b92 ZU |
96 | Summary: modplug plugin for cmus |
97 | Summary(hu.UTF-8): modplug plugin cmus-hoz | |
98 | Group: Applications/Sound | |
99 | Requires: %{name} = %{version} | |
100 | Provides: %{name}-input | |
101 | ||
e51b02e1 | 102 | %description input-modplug |
440504dd | 103 | modplug plugin for cmus. |
48d72b92 | 104 | |
e51b02e1 | 105 | %description input-modplug -l hu.UTF-8 |
440504dd | 106 | modplug plugin cmus-hoz. |
48d72b92 | 107 | |
e51b02e1 | 108 | %package input-mp4 |
48d72b92 ZU |
109 | Summary: mp4 plugin for cmus |
110 | Summary(hu.UTF-8): mp4 plugin cmus-hoz | |
111 | Group: Applications/Sound | |
112 | Requires: %{name} = %{version} | |
113 | Provides: %{name}-input | |
114 | ||
e51b02e1 | 115 | %description input-mp4 |
440504dd | 116 | mp4 plugin for cmus. |
48d72b92 | 117 | |
e51b02e1 | 118 | %description input-mp4 -l hu.UTF-8 |
440504dd ZU |
119 | mp4 plugin cmus-hoz. |
120 | ||
121 | %package input-mpc | |
122 | Summary: mpc plugin for cmus | |
123 | Summary(hu.UTF-8): mpc plugin cmus-hoz | |
124 | Group: Applications/Sound | |
125 | Requires: %{name} = %{version} | |
126 | Provides: %{name}-input | |
127 | ||
128 | %description input-mpc | |
129 | mpc plugin for cmus. | |
130 | ||
131 | %description input-mpc -l hu.UTF-8 | |
132 | mpc plugin cmus-hoz. | |
48d72b92 | 133 | |
e51b02e1 | 134 | %package input-vorbis |
48d72b92 ZU |
135 | Summary: vorbis plugin for cmus |
136 | Summary(hu.UTF-8): vorbis plugin cmus-hoz | |
137 | Group: Applications/Sound | |
138 | Requires: %{name} = %{version} | |
139 | Provides: %{name}-input | |
140 | ||
e51b02e1 | 141 | %description input-vorbis |
440504dd | 142 | vorbis plugin for cmus. |
48d72b92 | 143 | |
e51b02e1 | 144 | %description input-vorbis -l hu.UTF-8 |
440504dd | 145 | vorbis plugin cmus-hoz. |
48d72b92 | 146 | |
e51b02e1 | 147 | %package input-wav |
48d72b92 ZU |
148 | Summary: wav plugin for cmus |
149 | Summary(hu.UTF-8): wav plugin cmus-hoz | |
150 | Group: Applications/Sound | |
151 | Requires: %{name} = %{version} | |
152 | Provides: %{name}-input | |
153 | ||
e51b02e1 | 154 | %description input-wav |
440504dd | 155 | wav plugin for cmus. |
48d72b92 | 156 | |
e51b02e1 | 157 | %description input-wav -l hu.UTF-8 |
440504dd | 158 | wav plugin cmus-hoz. |
48d72b92 | 159 | |
e51b02e1 | 160 | %package input-wavpack |
48d72b92 ZU |
161 | Summary: wavpack plugin for cmus |
162 | Summary(hu.UTF-8): wavpack plugin cmus-hoz | |
163 | Group: Applications/Sound | |
164 | Requires: %{name} = %{version} | |
165 | Provides: %{name}-input | |
166 | ||
e51b02e1 | 167 | %description input-wavpack |
440504dd | 168 | wavpack plugin for cmus. |
48d72b92 | 169 | |
e51b02e1 | 170 | %description input-wavpack -l hu.UTF-8 |
440504dd | 171 | wavpack plugin cmus-hoz. |
48d72b92 ZU |
172 | |
173 | ||
174 | # output plugins | |
175 | ||
e51b02e1 | 176 | %package output-alsa |
48d72b92 ZU |
177 | Summary: alsa plugin for cmus |
178 | Summary(hu.UTF-8): alsa plugin cmus-hoz | |
179 | Group: Applications/Sound | |
180 | Requires: %{name} = %{version} | |
181 | Provides: %{name}-output | |
182 | ||
e51b02e1 | 183 | %description output-alsa |
440504dd | 184 | alsa plugin for cmus. |
48d72b92 | 185 | |
e51b02e1 | 186 | %description output-alsa -l hu.UTF-8 |
440504dd | 187 | alsa plugin cmus-hoz. |
48d72b92 | 188 | |
e51b02e1 | 189 | %package output-arts |
48d72b92 ZU |
190 | Summary: arts plugin for cmus |
191 | Summary(hu.UTF-8): arts plugin cmus-hoz | |
192 | Group: Applications/Sound | |
193 | Requires: %{name} = %{version} | |
194 | Provides: %{name}-output | |
195 | ||
e51b02e1 | 196 | %description output-arts |
440504dd | 197 | arts plugin for cmus. |
48d72b92 | 198 | |
e51b02e1 | 199 | %description output-arts -l hu.UTF-8 |
440504dd | 200 | arts plugin cmus-hoz. |
48d72b92 | 201 | |
e51b02e1 | 202 | %package output-libao |
48d72b92 ZU |
203 | Summary: libao plugin for cmus |
204 | Summary(hu.UTF-8): libao plugin cmus-hoz | |
205 | Group: Applications/Sound | |
206 | Requires: %{name} = %{version} | |
207 | Provides: %{name}-output | |
208 | ||
e51b02e1 | 209 | %description output-libao |
440504dd | 210 | libao plugin for cmus. |
48d72b92 | 211 | |
e51b02e1 | 212 | %description output-libao -l hu.UTF-8 |
440504dd | 213 | libao plugin cmus-hoz. |
48d72b92 | 214 | |
e51b02e1 | 215 | %package output-oss |
48d72b92 ZU |
216 | Summary: oss plugin for cmus |
217 | Summary(hu.UTF-8): oss plugin cmus-hoz | |
218 | Group: Applications/Sound | |
219 | Requires: %{name} = %{version} | |
220 | Provides: %{name}-output | |
221 | ||
e51b02e1 | 222 | %description output-oss |
440504dd | 223 | oss plugin for cmus. |
48d72b92 | 224 | |
e51b02e1 | 225 | %description output-oss -l hu.UTF-8 |
440504dd ZU |
226 | oss plugin cmus-hoz. |
227 | ||
228 | %package output-pulse | |
229 | Summary: pulse plugin for cmus | |
230 | Summary(hu.UTF-8): pulse plugin cmus-hoz | |
231 | Group: Applications/Sound | |
232 | Requires: %{name} = %{version} | |
233 | Provides: %{name}-output | |
234 | ||
235 | %description output-pulse | |
236 | pulse plugin for cmus. | |
237 | ||
238 | %description output-pulse -l hu.UTF-8 | |
239 | pulse plugin cmus-hoz. | |
48d72b92 | 240 | |
48d72b92 | 241 | %prep |
e51b02e1 | 242 | %setup -q -n %{name}-v%{version} |
48d72b92 ZU |
243 | %{__sed} -i "s|<curses.h>|<ncursesw/ncurses.h>|" command_mode.c keys.c options.c search_mode.c ui_curses.c |
244 | %{__sed} -r -i "s|<ffmpeg/(.*).h|<lib\1/\1.h|" ffmpeg.c | |
245 | ||
246 | %build | |
247 | ||
dd678cda ZU |
248 | ./configure \ |
249 | %if %{without arts} | |
250 | CONFIG_ARTS=n \ | |
251 | %endif | |
252 | prefix=%{_prefix} \ | |
e51b02e1 ZU |
253 | libdir=%{_libdir} \ |
254 | mandir=%{_mandir} \ | |
255 | bindir=%{_bindir} \ | |
256 | datadir=%{_datadir}/%{name} \ | |
257 | exampledir=%{_examplesdir}/%{name} | |
48d72b92 ZU |
258 | %{__make} |
259 | ||
260 | ||
261 | %install | |
262 | rm -rf $RPM_BUILD_ROOT | |
263 | install -d $RPM_BUILD_ROOT | |
264 | ||
265 | %{__make} install \ | |
266 | DESTDIR=$RPM_BUILD_ROOT | |
48d72b92 ZU |
267 | |
268 | %clean | |
269 | rm -rf $RPM_BUILD_ROOT | |
270 | ||
271 | %files | |
272 | %defattr(644,root,root,755) | |
e51b02e1 ZU |
273 | %dir %{_libdir}/cmus |
274 | %dir %{_libdir}/cmus/ip | |
275 | %dir %{_libdir}/cmus/op | |
440504dd | 276 | %dir %{_examplesdir}/%{name} |
e51b02e1 | 277 | %doc AUTHORS README |
48d72b92 | 278 | %attr(755,root,root) %{_bindir}/* |
48d72b92 ZU |
279 | %{_datadir}/%{name} |
280 | %{_mandir}/man1/cmus* | |
e51b02e1 | 281 | %{_mandir}/man7/cmus* |
440504dd | 282 | %{_examplesdir}/%{name}/%{name}-status-display |
48d72b92 ZU |
283 | |
284 | # input plugins | |
e51b02e1 | 285 | %files input-aac |
48d72b92 | 286 | %defattr(644,root,root,755) |
48d72b92 ZU |
287 | %{_libdir}/cmus/ip/aac.so |
288 | ||
e51b02e1 | 289 | %files input-ffmpeg |
48d72b92 | 290 | %defattr(644,root,root,755) |
48d72b92 ZU |
291 | %{_libdir}/cmus/ip/ffmpeg.so |
292 | ||
e51b02e1 | 293 | %files input-flac |
48d72b92 | 294 | %defattr(644,root,root,755) |
48d72b92 ZU |
295 | %{_libdir}/cmus/ip/flac.so |
296 | ||
e51b02e1 | 297 | %files input-mad |
48d72b92 | 298 | %defattr(644,root,root,755) |
48d72b92 ZU |
299 | %{_libdir}/cmus/ip/mad.so |
300 | ||
e51b02e1 | 301 | %files input-modplug |
48d72b92 | 302 | %defattr(644,root,root,755) |
48d72b92 ZU |
303 | %{_libdir}/cmus/ip/modplug.so |
304 | ||
e51b02e1 | 305 | %files input-mp4 |
48d72b92 | 306 | %defattr(644,root,root,755) |
48d72b92 ZU |
307 | %{_libdir}/cmus/ip/mp4.so |
308 | ||
440504dd ZU |
309 | %files input-mpc |
310 | %defattr(644,root,root,755) | |
311 | %{_libdir}/cmus/ip/mpc.so | |
312 | ||
e51b02e1 | 313 | %files input-vorbis |
48d72b92 | 314 | %defattr(644,root,root,755) |
48d72b92 ZU |
315 | %{_libdir}/cmus/ip/vorbis.so |
316 | ||
e51b02e1 | 317 | %files input-wav |
48d72b92 | 318 | %defattr(644,root,root,755) |
48d72b92 ZU |
319 | %{_libdir}/cmus/ip/wav.so |
320 | ||
e51b02e1 | 321 | %files input-wavpack |
48d72b92 | 322 | %defattr(644,root,root,755) |
48d72b92 ZU |
323 | %{_libdir}/cmus/ip/wavpack.so |
324 | ||
325 | # output plugins | |
e51b02e1 | 326 | %files output-alsa |
48d72b92 | 327 | %defattr(644,root,root,755) |
48d72b92 ZU |
328 | %{_libdir}/cmus/op/alsa.so |
329 | ||
e51b02e1 | 330 | %files output-libao |
48d72b92 | 331 | %defattr(644,root,root,755) |
48d72b92 ZU |
332 | %{_libdir}/cmus/op/ao.so |
333 | ||
dd678cda | 334 | %if %{with arts} |
e51b02e1 ZU |
335 | %files output-arts |
336 | %defattr(644,root,root,755) | |
337 | %{_libdir}/cmus/op/arts.so | |
ea53335e | 338 | %endif |
e51b02e1 ZU |
339 | |
340 | %files output-oss | |
48d72b92 | 341 | %defattr(644,root,root,755) |
48d72b92 | 342 | %{_libdir}/cmus/op/oss.so |
440504dd ZU |
343 | |
344 | %files output-pulse | |
345 | %defattr(644,root,root,755) | |
346 | %{_libdir}/cmus/op/pulse.so |