]> git.pld-linux.org Git - packages/darkice.git/blame - darkice.spec
- converted to UTF-8
[packages/darkice.git] / darkice.spec
CommitLineData
e6928a7e
MM
1# TODO:
2# - logrotate support?
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
48085180 6# - add patch for dropping privs *after* turning on real-time scheduling
63d732eb 7Summary: DarkIce live IceCast / ShoutCast streamer
c2902673 8Summary(pl.UTF-8): DarkIce - dostarczyciel strumieni IceCast/ShoutCast
63d732eb 9Name: darkice
d6b12c70 10Version: 0.17.1
48085180 11Release: 2
63d732eb
AM
12License: GPL
13Group: Networking/Daemons
abb87a42 14Source0: http://dl.sourceforge.net/darkice/%{name}-%{version}.tar.gz
0a93c7b8 15# Source0-md5: 91221134cec3d52af842a9d50c06ee7d
e6928a7e 16Source1: %{name}.init
63d732eb 17Patch0: %{name}-shared.patch
32f0dbe9 18Patch1: %{name}-no_libnsl.patch
d6b12c70 19Patch2: %{name}-amd64.patch
63d732eb 20URL: http://darkice.sourceforge.net/
d6b12c70 21BuildRequires: alsa-lib-devel
63d732eb
AM
22BuildRequires: autoconf
23BuildRequires: automake
58db8d31 24BuildRequires: lame-libs-devel
63d732eb 25BuildRequires: libstdc++-devel
32f0dbe9 26BuildRequires: libvorbis-devel >= 1:1.0
d6b12c70 27BuildRequires: pkgconfig
32f0dbe9 28BuildRequires: readline-devel
e6928a7e
MM
29BuildRequires: rpmbuild(macros) >= 1.165
30Requires(post,preun): /sbin/chkconfig
31Requires(postun): /usr/sbin/groupdel
32Requires(postun): /usr/sbin/userdel
33Requires(pre): /bin/id
34Requires(pre): /usr/bin/getgid
35Requires(pre): /usr/lib/rpm/user_group.sh
36Requires(pre): /usr/sbin/groupadd
37Requires(pre): /usr/sbin/useradd
38Requires(pre): /usr/sbin/usermod
39Requires: daemon
40Requires: rc-scripts
41Provides: group(darkice)
42Provides: user(darkice)
9ab7471f 43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63d732eb
AM
44
45%description
46DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer. It
cebd12c4 47takes audio input from a sound card, encodes it into MP3 and/or Ogg
48Vorbis, and sends the MP3 stream to one or more IceCast and/or
63d732eb
AM
49ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2
50servers.
51
c2902673 52%description -l pl.UTF-8
63d732eb 53DarkIce to dostarczyciel strumienia audio IceCast, IceCast2 oraz
c2902673
JR
54ShoutCast. DarkIce enkoduje dane z karty dźwiękowej do MP3 i/lub Ogg
55Vorbis, a następnie wysyła strumień MP3 do jednego lub więcej serwerów
56IceCast i/lub ShoutCast, strumień Ogg Vorbis do jednego lub więcej
57serwerów IceCast2.
63d732eb
AM
58
59%prep
60%setup -q
61%patch0 -p1
32f0dbe9 62%patch1 -p1
d6b12c70 63%patch2 -p1
63d732eb
AM
64
65%build
f19279be 66%{__aclocal}
0afcc822 67%{__autoconf}
68%{__automake}
63d732eb
AM
69%configure \
70 --with-lame \
e6928a7e
MM
71 --with-vorbis \
72 --with-alsa \
73 --without-twolame \
74 --without-faac
63d732eb
AM
75
76%{__make}
77
78%install
79rm -rf $RPM_BUILD_ROOT
e6928a7e 80install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/run/darkice,/var/log}
63d732eb
AM
81
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
84
e6928a7e
MM
85install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/darkice
86touch $RPM_BUILD_ROOT/var/log/darkice.log
87
63d732eb 88%clean
02951a29 89rm -rf $RPM_BUILD_ROOT
63d732eb 90
e6928a7e
MM
91%pre
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
95
96%post
97/sbin/chkconfig --add darkice
98%service darkice restart "darkice daemon"
99
100%preun
101if [ "$1" = "0" ] ; then
102 %service darkice stop
285ddb95 103 /sbin/chkconfig --del darkice
e6928a7e
MM
104fi
105
106%postun
107if [ "$1" = "0" ]; then
108 %userremove darkice
109 %groupremove darkice
110fi
111
a40ecc41 112%files
63d732eb 113%defattr(644,root,root,755)
32f0dbe9 114%doc AUTHORS ChangeLog NEWS README TODO
e6928a7e
MM
115%config(noreplace) %attr(640,root,darkice) %{_sysconfdir}/*.cfg
116%attr(754,root,root) /etc/rc.d/init.d/darkice
63d732eb
AM
117%attr(755,root,root) %{_bindir}/*
118%{_mandir}/man?/*
e6928a7e 119%dir %attr(775,root,darkice) /var/run/darkice
48085180 120%attr(660,root,darkice) %ghost /var/log/darkice.log
This page took 0.118572 seconds and 4 git commands to generate.