1 # -*- coding: utf-8; mode: rpm-spec -*-
5 # Written Eugene Vlasov <eugvv@altlinux.ru> for ALTLinux
6 # distribution (www.altlinux.org)
8 # Modified by Timo Hirvonen
10 # Separate packages for plugins:
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)
28 %define pkg libncurses
30 %define flacpkg libflac
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
54 %define modplugpkg libmodplug
55 %define vorbispkg libogg libvorbis
56 %define alsapkg alsa
-lib
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
73 Summary: CMus
- C
* Music Player
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
82 BuildRequires
: %devpkg
83 BuildRequires
: %flacdevpkg
84 BuildRequires
: %maddevpkg
85 BuildRequires
: %modplugdevpkg
86 BuildRequires
: %vorbisdevpkg
87 BuildRequires
: %alsadevpkg
88 BuildRequires
: %artsdevpkg
91 #BuildRequires: glib2-devel libstdc++-devel libtinfo-devel zlib-devel
94 CMus is a small and fast music player using the ncurses library.
101 o Modules
(libmodplug
)
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.
119 Contains WAV input and OSS output plugin.
122 Summary: FLAC plugin
for CMus
124 Requires: cmus
= @VERSION@
-%release %flacpkg
127 CMus is a small and fast music player using the ncurses library.
129 This package contains FLAC plugin.
132 Summary: libmad
(mp3
) plugin
for CMus
134 Requires: cmus
= @VERSION@
-%release %madpkg
137 CMus is a small and fast music player using the ncurses library.
139 This package contains libmad
(mp3
) plugin.
142 Summary: Ogg
/Vorbis plugin
for CMus
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
).
152 Summary: Ogg
/Vorbis plugin
for CMus
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.
162 Summary: ALSA output plugin
for CMus
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.
172 Summary: ARTS output plugin
for CMus
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.
186 CFLAGS
="$
{CFLAGS
:--O2
-Wall
-pipe
}" \
200 make DESTDIR
=$
{RPM_BUILD_ROOT
} install
203 %__mkdir_p %buildroot/%_menudir
204 cat
> %buildroot/%_menudir/cmus
<<EOF
206 command="
%_bindir/cmus" needs
="text" \
207 section
="Multimedia
/Sound" title
="CMus" \
208 longtitle
="CMus
- C
* Music Player"
224 %defattr(-,root
,root
, -)
226 %dir %_libdir/cmus
/ip
227 %dir %_libdir/cmus
/op
229 %dir %_datadir/cmus
/doc
230 %dir %_datadir/cmus
/example
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
243 %defattr(-,root
,root
, -)
244 %_libdir/cmus
/ip
/flac.so
247 %defattr(-,root
,root
, -)
248 %_libdir/cmus
/ip
/mad.so
251 %defattr(-,root
,root
, -)
252 %_libdir/cmus
/ip
/modplug.so
255 %defattr(-,root
,root
, -)
256 %_libdir/cmus
/ip
/vorbis.so
259 %defattr(-,root
,root
, -)
260 %_libdir/cmus
/op
/alsa.so
263 %defattr(-,root
,root
, -)
264 %_libdir/cmus
/op
/arts.so
268 rm -rf $
{RPM_BUILD_ROOT
}
272 * Fri Jul
08 2005 Eugene Vlasov
<eugvv@altlinux.ru
> 1.5.0-alt1
273 - First build
for Sisyphus