Name: ices Version: 2.0.1 Release: %mkrel 13 Summary: Source streaming for Icecast Group: System/Servers License: GPL URL: http://www.icecast.org/ Source0: http://downloads.us.xiph.org/releases/ices/ices-2.0.1.tar.bz2 Source1: %{name}.init Source2: %{name}.logrotate Source3: %{name}.service BuildRequires: alsa-lib-devel BuildRequires: libshout-devel BuildRequires: libxml2-devel BuildRequires: pkgconfig Requires(post): rpm-helper >= 0.24.8-1 Requires(preun): rpm-helper >= 0.24.8-1 %description IceS is a source client for a streaming server. The purpose of this client is to provide an audio stream to a streaming server such that one or more listeners can access the stream. With this layout, this source client can be situated remotely from the icecast server. The primary example of a streaming server used is Icecast 2, although others could be used if certain conditions are met. %prep %setup -q %{__perl} -pi -e 's|<background>0</background>|<background>1</background>|' conf/*.xml %build %configure2_5x %{make} %install %{__rm} -rf %{buildroot} install -D -m 755 src/%{name} %{buildroot}%{_bindir}/%{name} install -D -m 640 conf/ices-playlist.xml %{buildroot}%{_sysconfdir}/%{name}.conf install -D -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -d -m 755 %{buildroot}%{_var}/log/%{name} /bin/touch %{buildroot}%{_var}/log/%{name}/ices.log %pre %_pre_useradd %{name} %{_var}/log/%{name} /bin/false %post %_post_service %{name} %preun %_preun_service %{name} %postun %_postun_userdel %{name} %files %doc AUTHORS COPYING README TODO doc/*.html doc/*.css conf/*.xml %{_bindir}/%{name} %config(noreplace) %attr(0640,root,ices) %{_sysconfdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_initrddir}/%{name} %{_unitdir}/%{name}.service %dir %{_logdir}/%{name} %attr(0644,ices,ices) %{_logdir}/%{name}/ices.log %changelog * Sat Jan 12 2013 umeabot <umeabot> 2.0.1-13.mga3 + Revision: 354177 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Apr 28 2012 tmb <tmb> 2.0.1-12.mga2 + Revision: 233750 - Require rpm-helper >= 0.24.8-1 for systemd support * Sun Apr 22 2012 guillomovitch <guillomovitch> 2.0.1-11.mga2 + Revision: 232634 - more spec cleanup - systemd support - spec cleanup * Fri May 13 2011 nanardon <nanardon> 2.0.1-10.mga1 + Revision: 98198 - imported package ices