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