3 # - add /etc/sysconfig/darkice with log level selection and maybe not dropping
4 # privs (so that realtime=yes could work)
5 # - or some other way to keep realtime scheduling while not running as root
6 # - add patch for dropping privs *after* turning on real-time scheduling
7 Summary: DarkIce live IceCast / ShoutCast streamer
8 Summary(pl): DarkIce - dostarczyciel strumieni IceCast/ShoutCast
13 Group: Networking/Daemons
14 Source0: http://dl.sourceforge.net/darkice/%{name}-%{version}.tar.gz
15 # Source0-md5: 91221134cec3d52af842a9d50c06ee7d
17 Patch0: %{name}-shared.patch
18 Patch1: %{name}-no_libnsl.patch
19 Patch2: %{name}-amd64.patch
20 URL: http://darkice.sourceforge.net/
21 BuildRequires: alsa-lib-devel
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: lame-libs-devel
25 BuildRequires: libstdc++-devel
26 BuildRequires: libvorbis-devel >= 1:1.0
27 BuildRequires: pkgconfig
28 BuildRequires: readline-devel
29 BuildRequires: rpmbuild(macros) >= 1.165
30 Requires(post,preun): /sbin/chkconfig
31 Requires(postun): /usr/sbin/groupdel
32 Requires(postun): /usr/sbin/userdel
33 Requires(pre): /bin/id
34 Requires(pre): /usr/bin/getgid
35 Requires(pre): /usr/lib/rpm/user_group.sh
36 Requires(pre): /usr/sbin/groupadd
37 Requires(pre): /usr/sbin/useradd
38 Requires(pre): /usr/sbin/usermod
41 Provides: group(darkice)
42 Provides: user(darkice)
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer. It
47 takes audio input from a sound card, encodes it into MP3 and/or Ogg
48 Vorbis, and sends the MP3 stream to one or more IceCast and/or
49 ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2
53 DarkIce to dostarczyciel strumienia audio IceCast, IceCast2 oraz
54 ShoutCast. DarkIce enkoduje dane z karty d¼wiêkowej do MP3 i/lub Ogg
55 Vorbis, a nastêpnie wysy³a strumieñ MP3 do jednego lub wiêcej serwerów
56 IceCast i/lub ShoutCast, strumieñ Ogg Vorbis do jednego lub wiêcej
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/run/darkice,/var/log}
83 DESTDIR=$RPM_BUILD_ROOT
85 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/darkice
86 touch $RPM_BUILD_ROOT/var/log/darkice.log
89 rm -rf $RPM_BUILD_ROOT
92 %groupadd -g 85 darkice
93 %useradd -u 59 -r -d /usr/share/empty -s /bin/false -c "Darkice" -g darkice darkice
94 %addusertogroup darkice audio
97 /sbin/chkconfig --add darkice
98 %service darkice restart "darkice daemon"
101 if [ "$1" = "0" ] ; then
102 %service darkice stop
103 /sbin/chkconfig --del darkice
107 if [ "$1" = "0" ]; then
113 %defattr(644,root,root,755)
114 %doc AUTHORS ChangeLog NEWS README TODO
115 %config(noreplace) %attr(640,root,darkice) %{_sysconfdir}/*.cfg
116 %attr(754,root,root) /etc/rc.d/init.d/darkice
117 %attr(755,root,root) %{_bindir}/*
119 %dir %attr(775,root,darkice) /var/run/darkice
120 %attr(660,root,darkice) %ghost /var/log/darkice.log