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