Name: icecast Version: 2.0.0 Release: 0.fdr.1 Summary: Icecast, a streaming media server. Group: Applications/Multimedia License: GPL URL: http://www.icecast.org/ Source: http://www.icecast.org/files/%{name}-%{version}.tar.gz Source1: icecast.init Source2: icecast.sysconfig Patch: icecast.changeowner.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libvorbis-devel >= 1.0 BuildRequires: libogg-devel >= 1.0 BuildRequires: curl-devel >= 7.10.0 BuildRequires: libxml2-devel BuildRequires: libxslt-devel %description Icecast is an Internet based broadcasting system based on the MPEG Layer III streaming technology. It was originally inspired by Nullsoft's Shoutcast and also mp3serv by Scott Manley. The icecast project was started for several reasons: a) all broadcasting systems were pretty much closed source, non-free software implementations, b) Shoutcast doesn't allow you to run your own directory servers, or support them, and c) we thought it would be a lot of fun. This rpm adds an icecast user to the system and runs the server as that user %prep %setup -q %patch -p2 %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # remove the docs icecast just installed rm -rf $RPM_BUILD_ROOT%{_docdir}/icecast # install service files install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/icecast install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/icecast # create log directory install -d $RPM_BUILD_ROOT%{_localstatedir}/log/icecast find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %pre /usr/sbin/useradd -s /sbin/nologin -r -d %{_datadir}/icecast -M -r icecast exit 0 %postun # if removal and not upgrade, delete the user if [ $1 = 0 ] then service icecast stop /usr/sbin/userdel icecast fi %post service icecast condrestart %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README TODO %doc doc/*.html doc/*.jpg doc/*.css %config(noreplace) %{_sysconfdir}/icecast.xml %{_sysconfdir}/rc.d/init.d/icecast %{_sysconfdir}/sysconfig/icecast %{_bindir}/icecast %{_datadir}/icecast %attr(750,icecast,root) %{_localstatedir}/log/icecast %changelog * Wed May 12 2004 Thomas Vander Stichele - 2.0.0-0.fdr.1: Initial fedora.us package of icecast 2