Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 6875b9d5d093140e220239f3de12a630 > files > 6

icecast-2.4.2-1.mga5.src.rpm

Name:		icecast
Version:	2.4.2
Release:	%mkrel 1
Summary:	Streaming Media Server
Epoch:		2
Group:		System/Servers
License:	GPL
URL:		http://www.icecast.org
Source0:	http://downloads.us.xiph.org/releases/icecast/%{name}-%{version}.tar.gz
# this systemd service configuration file is based on fedora's
Source1:	%{name}.service
Source2:	%{name}.logrotate
Source3:	%{name}-tmpfiles.conf
Patch0:		%{name}.conf.patch
Requires(post): systemd >= %{systemd_required_version}
Requires(pre):	rpm-helper
Requires(post):	rpm-helper
Requires(postun): rpm-helper
Requires(preun): rpm-helper
BuildRequires:	libxslt-devel
BuildRequires:	libcurl-devel
BuildRequires:	libkate-devel
BuildRequires:	libvorbis-devel
BuildRequires:	libogg-devel
BuildRequires:	libtheora-devel
BuildRequires:  speex-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.

%prep
%setup -q
%patch0 -p1 -b .orig

%build
%configure2_5x
%make

%install
%makeinstall_std

%{__install} -d -m 755 %{buildroot}%{_var}/log/%{name}
%{__install} -d -m 755 %{buildroot}%{_datadir}/%{name}

# remove installed documentation
rm -rf %{buildroot}%{_datadir}/doc/%{name}

mkdir -p %{buildroot}%{_unitdir}
%{__install} -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

# logrotate
%{__install} -d %{buildroot}%{_sysconfdir}/logrotate.d/
%{__install} -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# to hold pid file ( need to be writable by icecast )
%{__install} -D -p -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%pre
%_pre_useradd %{name} %{_datadir}/%{name} /bin/false

%post
%_tmpfilescreate %{name}

# systemd migration fails to stop the daemon started by init script
if [ "$1" = "2" ]; then
  if ! [ -f /var/lib/rpm-helper/systemd-migration/icecast ]; then
    kill "`cat /var/run/icecast/icecast.pid`" 2>/dev/null
  fi
fi

%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

%files
%doc AUTHORS COPYING HACKING README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%attr(-,icecast,icecast) %{_var}/log/%{name}
%{_tmpfilesdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}.xml
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}


%changelog
* Wed Apr 08 2015 cjw <cjw> 2:2.4.2-1.mga5
+ Revision: 819943
- 2.4.2

* Fri Nov 21 2014 cjw <cjw> 2:2.3.3-2.mga5
+ Revision: 798036
- patch2, patch3: fix security issues with the feature that launches an executable when a mount is (dis)connected (CVE-2014-9018)

* Thu Oct 30 2014 cjw <cjw> 2:2.3.3-1.mga5
+ Revision: 794663
- 2.3.3
- drop patch1: fixed upstream

* Wed Oct 29 2014 cjw <cjw> 2:2.3.2-11.mga5
+ Revision: 794454
- switch to a systemd service configuration file, replacing the init script

* Wed Oct 15 2014 umeabot <umeabot> 2:2.3.2-10.mga5
+ Revision: 743053
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 2:2.3.2-9.mga5
+ Revision: 680440
- Mageia 5 Mass Rebuild

* Sat Oct 19 2013 umeabot <umeabot> 2:2.3.2-8.mga4
+ Revision: 522635
- Mageia 4 Mass Rebuild

* Sun Mar 24 2013 colin <colin> 2:2.3.2-7.mga3
+ Revision: 404859
- Add systemd requires and general post/pre fixes (mga#9302)

* Sat Jan 12 2013 umeabot <umeabot> 2:2.3.2-6.mga3
+ Revision: 354155
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Dec 17 2012 colin <colin> 2:2.3.2-5.mga3
+ Revision: 331985
- Switch to tmpfiles for /run dir

* Wed Aug 08 2012 luigiwalser <luigiwalser> 2:2.3.2-4.mga3
+ Revision: 280031
- add patch from OpenSuSE to fix CVE-2011-4612

* Fri May 13 2011 nanardon <nanardon> 2:2.3.2-3.mga1
+ Revision: 98189
- imported package icecast


* Wed Apr 27 2011 Jani Välimaa <wally@mandriva.org> 2:2.3.2-3mdv2011.0
+ Revision: 659756
- rebuild
  - rediff P0
  - drop buildroot definition
  - clean .spec a bit

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

* Thu Aug 07 2008 Thierry Vignaud <tv@mandriva.org> 2:2.3.2-2mdv2009.0
+ Revision: 267109
- rebuild early 2009.0 package (before pixel changes)

* Fri Jun 06 2008 Olivier Thauvin <nanardon@mandriva.org> 2:2.3.2-1mdv2009.0
+ Revision: 216555
- 2.3.2

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Sep 08 2007 David Walluck <walluck@mandriva.org> 2:2.3.1-5mdv2008.0
+ Revision: 82417
- don't mark initscript as %%config

* Sat Sep 08 2007 David Walluck <walluck@mandriva.org> 2:2.3.1-4mdv2008.0
+ Revision: 82287
- add LSB support to initscript
- added create line to logrotate
- check if PID exists in logrotate and silently handle errors
- uncompress initscript
- set the user to icecast in the initscript so that icecast will start


* Sat Feb 03 2007 Emmanuel Andry <eandry@mandriva.org> 2.3.1-3mdv2007.0
+ Revision: 116091
- bunzipped patch
- added patch from fedora to fix build against latest curl

* Tue Aug 08 2006 Olivier Thauvin <nanardon@mandriva.org> 2:2.3.1-2mdv2007.0
+ Revision: 53737
- fix prereq, rebuild
- Import icecast

* Tue Dec 20 2005 Olivier Thauvin <nanardon@mandriva.org> 2:2.3.1-1mdk
- 2.3.1

* Tue Oct 18 2005 Olivier Thauvin <nanardon@mandriva.org> 2:2.3.0-2mdk
- BuildRequires: speex-devel (misc)

* Mon Oct 17 2005 Olivier Thauvin <nanardon@mandriva.org> 2:2.3.0-1mdk
- 2.3.0

* Mon Aug 08 2005 Michael Scherer <misc@mandriva.org> 2:2.2.0-3mdk
- fix the default pid file ( not writable when run as non root )

* Mon Jul 04 2005 Michael Scherer <misc@mandriva.org> 2:2.2.0-2mdk
- proper logrotate support

* Sun May 22 2005 Michael Scherer <misc@mandriva.org> 2:2.2.0-1mdk
- new release
- rpmbuildupdate

* Wed Nov 24 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.1.0-2mdk
- From Cedric Devillers (brancaleone on #mandrakefr): 
    - Fix config patch
    - Fix logrotate config

* Sun Nov 21 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.1.0-1mdk
- 2.1.0

* Sat Jul 03 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 2.0.1-1mdk
- New version
- Rebuild for new curl

* Tue Mar 16 2004 Laurent Culioli <laurent@mandrakesoft.com> 2.0.0-2mdk
- fix initscript