support for binding :commands to keys
[cmus.git] / cmus.spec.in
blob703dc6ed184ae678fa4b7ceef325cb4a3ad7141d
1 # -*- coding: utf-8; mode: rpm-spec -*-
2 #
3 # CMus spec file.
4 #
5 # Written Eugene Vlasov <eugvv@altlinux.ru> for ALTLinux
6 # distribution (www.altlinux.org)
7 #
8 # Modified by Timo Hirvonen
10 # Separate packages for plugins:
11 # cmus-in-flac
12 # cmus-in-mad
13 # cmus-in-modplug
14 # cmus-in-vorbis
15 # cmus-out-alsa
16 # cmus-out-arts
18 # The main package contains WAV input and OSS output plugins.
20 # You need to define 'altlinux 0' or 'altlinux 1'
21 # (pass -D 'altlinux 0' to rpmbuild)
24 %if %altlinux
26 %define release alt1
28 %define pkg libncurses
30 %define flacpkg libflac
31 %define madpkg libmad
32 %define modplugpkg libmodplug
33 %define vorbispkg libogg libvorbis
34 %define alsapkg libalsa
35 %define artspkg libarts
37 %define devpkg libncurses-devel pkgconfig
39 %define flacdevpkg libflac-devel
40 %define maddevpkg libmad-devel
41 %define modplugdevpkg libmodplug-devel
42 %define vorbisdevpkg libogg-devel libvorbis-devel
43 %define alsadevpkg libalsa-devel
44 %define artsdevpkg libarts-devel
46 %else
48 %define release 0
50 %define pkg ncurses
52 %define flacpkg flac
53 %define madpkg libmad
54 %define modplugpkg libmodplug
55 %define vorbispkg libogg libvorbis
56 %define alsapkg alsa-lib
57 %define artspkg arts
59 %define devpkg ncurses-devel pkgconfig
61 %define flacdevpkg flac-devel
62 %define maddevpkg libmad-devel
63 %define modplugdevpkg libmodplug-devel
64 %define vorbisdevpkg libogg-devel libvorbis-devel
65 %define alsadevpkg alsa-lib-devel
66 %define artsdevpkg arts-devel
68 %endif
70 Name: cmus
71 Version: @VERSION@
72 Release: %release
73 Summary: CMus - C* Music Player
74 License: GPL
75 Group: Sound
76 Url: http://onion.dynserv.net/~timo/index.php?page=Projects/cmus
77 Packager: Eugene Vlasov <eugvv@altlinux.ru>
78 BuildRoot: %{_tmppath}/cmus-@VERSION@-root
79 Source0: cmus-@VERSION@.tar.bz2
80 Requires: %pkg
82 BuildRequires: %devpkg
83 BuildRequires: %flacdevpkg
84 BuildRequires: %maddevpkg
85 BuildRequires: %modplugdevpkg
86 BuildRequires: %vorbisdevpkg
87 BuildRequires: %alsadevpkg
88 BuildRequires: %artsdevpkg
90 # FIXME
91 #BuildRequires: glib2-devel libstdc++-devel libtinfo-devel zlib-devel
93 %description
94 CMus is a small and fast music player using the ncurses library.
95 Features
96 * Input
97 o FLAC
98 o Ogg/Vorbis
99 o MP3 (libmad)
100 o Wav
101 o Modules (libmodplug)
102 * Output
103 o ALSA
104 o OSS
105 o ARTS
106 * MP3 and Ogg streaming (Shoutcast/Icecast)
107 * WinAmp / XMMS keys "zxcvb"
108 * Can be controlled via UNIX socket
109 * Customizable colors
110 * Nice vi-style interface with tabulator expansion
111 * Background playlist loading
112 * Track metadata database makes adding files to playlist very fast.
113 * Album/artist modes. Playing within one album or artist.
114 * Playlist is always kept sorted.
115 * Play queue
116 * Directory browser
117 * Full UTF-8 support
119 Contains WAV input and OSS output plugin.
121 %package in-flac
122 Summary: FLAC plugin for CMus
123 Group: Sound
124 Requires: cmus = @VERSION@-%release %flacpkg
126 %description in-flac
127 CMus is a small and fast music player using the ncurses library.
129 This package contains FLAC plugin.
131 %package in-mad
132 Summary: libmad (mp3) plugin for CMus
133 Group: Sound
134 Requires: cmus = @VERSION@-%release %madpkg
136 %description in-mad
137 CMus is a small and fast music player using the ncurses library.
139 This package contains libmad (mp3) plugin.
141 %package in-modplug
142 Summary: Ogg/Vorbis plugin for CMus
143 Group: Sound
144 Requires: cmus = @VERSION@-%release %modplugpkg
146 %description in-modplug
147 CMus is a small and fast music player using the ncurses library.
149 This package contains modules plugin (libmodplug).
151 %package in-vorbis
152 Summary: Ogg/Vorbis plugin for CMus
153 Group: Sound
154 Requires: cmus = @VERSION@-%release %vorbispkg
156 %description in-vorbis
157 CMus is a small and fast music player using the ncurses library.
159 This package contains Ogg/Vorbis plugin.
161 %package out-alsa
162 Summary: ALSA output plugin for CMus
163 Group: Sound
164 Requires: cmus = @VERSION@-%release %alsapkg
166 %description out-alsa
167 CMus is a small and fast music player using the ncurses library.
169 This package contains ALSA output plugin.
171 %package out-arts
172 Summary: ARTS output plugin for CMus
173 Group: Sound
174 Requires: cmus = @VERSION@-%release %artspkg
176 %description out-arts
177 CMus is a small and fast music player using the ncurses library.
179 This package contains ARTS output plugin.
181 %prep
182 %setup -q
185 %build
186 CFLAGS="${CFLAGS:--O2 -Wall -pipe}" \
187 ./configure \
188 --prefix=%prefix \
189 --enable-flac \
190 --enable-mad \
191 --enable-modplug \
192 --enable-vorbis \
193 --enable-wav \
194 --enable-alsa \
195 --enable-arts \
196 --enable-oss
197 make
199 %install
200 make DESTDIR=${RPM_BUILD_ROOT} install
202 %if %altlinux
203 %__mkdir_p %buildroot/%_menudir
204 cat > %buildroot/%_menudir/cmus <<EOF
205 ?package(cmus):\
206 command="%_bindir/cmus" needs="text" \
207 section="Multimedia/Sound" title="CMus" \
208 longtitle="CMus - C* Music Player"
210 %endif
212 %if %altlinux
213 %post
214 %update_menus
215 %endif
217 %if %altlinux
218 %postun
219 %clean_menus
220 %endif
223 %files
224 %defattr(-,root,root, -)
225 %dir %_libdir/cmus
226 %dir %_libdir/cmus/ip
227 %dir %_libdir/cmus/op
228 %dir %_datadir/cmus
229 %dir %_datadir/cmus/doc
230 %dir %_datadir/cmus/example
231 %_bindir/cmus
232 %_bindir/cmus-remote
233 %_libdir/cmus/ip/wav.so
234 %_libdir/cmus/op/oss.so
235 %_datadir/cmus/doc/cmus.html
236 %_datadir/cmus/example/cmus-status-display
237 %doc AUTHORS ChangeLog COPYING README TODO
238 %if %altlinux
239 %_menudir/cmus
240 %endif
242 %files in-flac
243 %defattr(-,root,root, -)
244 %_libdir/cmus/ip/flac.so
246 %files in-mad
247 %defattr(-,root,root, -)
248 %_libdir/cmus/ip/mad.so
250 %files in-modplug
251 %defattr(-,root,root, -)
252 %_libdir/cmus/ip/modplug.so
254 %files in-vorbis
255 %defattr(-,root,root, -)
256 %_libdir/cmus/ip/vorbis.so
258 %files out-alsa
259 %defattr(-,root,root, -)
260 %_libdir/cmus/op/alsa.so
262 %files out-arts
263 %defattr(-,root,root, -)
264 %_libdir/cmus/op/arts.so
267 %clean
268 rm -rf ${RPM_BUILD_ROOT}
271 %changelog
272 * Fri Jul 08 2005 Eugene Vlasov <eugvv@altlinux.ru> 1.5.0-alt1
273 - First build for Sisyphus