Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37524501
en ru br
ALT Linux repos
S:2.4.4-alt2
5.0: 2.3.2-alt2.M50.1
4.1: 2.3.1-alt3
4.0: 2.3.1-alt3
3.0: 2.2.0-alt1

Group :: System/Servers
RPM: icecast

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# Spec file for Icecast streaming server

Name: icecast
Version: 2.3.2
Release: alt4

Summary: Streaming Media Server
Packager: Nikolay A. Fetisov <naf at altlinux.ru>
License: %gpl2only
Group: System/Servers
Url: http://www.icecast.org

Source0: %name-%version.tar
Source1: %name.init
Source2: %name.logrotate
Source3: %name.xml

Source4: %name.chroot.lib
Source5: %name.chroot.conf
Source6: %name.chroot.all

Source7: xspf.xsl
Patch1: icecast-2.3.0-alt.patch
Patch2: icecast-2.3.2-alt-gold.patch

BuildRequires(pre): rpm-build-licenses
# Automatically added by buildreq on Mon Jul 06 2009
BuildRequires: gcc-c++ libcurl-devel libspeex-devel libtheora-devel libvorbis-devel libxslt-devel

%description
Icecast is an Internet based broadcasting system based on the Mpeg Layer III
streaming technology. It is, however, not limited to streaming mp3 files.

%prep
%setup -q

%patch1 -p1
%patch2

%build
%autoreconf
%configure \
--datadir=%_localstatedir

%make_build

%install
%make_install DESTDIR=%buildroot install

install -p -m755 -D %SOURCE1 %buildroot%_initdir/%name
install -p -m640 -D %SOURCE2 %buildroot%_sysconfdir/logrotate.d/%name
install -p -m640 -D %SOURCE3 %buildroot%_sysconfdir/%name.xml
install -p -m644 -D %SOURCE7 %buildroot%_localstatedir/%name/admin/xspf.xsl
mkdir -p %buildroot/var/run/%name
mkdir -p -m750 %buildroot%_localstatedir/%name/logs

mkdir -p %buildroot%_datadir
mv %buildroot%_localstatedir/doc %buildroot%_datadir

install -m 0755 -d -- %buildroot%_localstatedir/%name/etc
install -m 0755 -d -- %buildroot%_localstatedir/%name/%_lib
install -p -m 0750 -D -- %SOURCE4 %buildroot%_sysconfdir/chroot.d/%name.lib
install -p -m 0750 -D -- %SOURCE5 %buildroot%_sysconfdir/chroot.d/%name.conf
install -p -m 0750 -D -- %SOURCE6 %buildroot%_sysconfdir/chroot.d/%name.all

%pre
%_sbindir/groupadd -r -f %name &>/dev/null
%_sbindir/useradd -r -g %name -d %_datadir/%name -s /dev/null \
-c "Icecast Streaming Media Server" -M -n %name &>/dev/null ||:

%post
%_sysconfdir/chroot.d/%name.all
%post_service %name

%preun
%preun_service %name

%files
%_datadir/doc/%name-%version

%attr(750,  root, %name) %dir %_localstatedir/%name
%attr(1770, root, %name) %dir %_localstatedir/%name/logs
%attr(1775, root, %name) %dir /var/run/%name

%config %_sysconfdir/logrotate.d/%name
%config (noreplace) %_sysconfdir/%name.xml
%config %_sysconfdir/chroot.d/%name.*

%_initdir/%name
%_bindir/%name
%_localstatedir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin