117 lines
3.9 KiB
RPMSpec
117 lines
3.9 KiB
RPMSpec
|
Name: icecast
|
||
|
Version: 2.3.3
|
||
|
Release: 1mamba
|
||
|
Summary: Xiph Streaming media server that supports multiple audio formats.
|
||
|
Group: System/Servers
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
||
|
URL: http://www.icecast.org/
|
||
|
Source0: http://downloads.xiph.org/releases/icecast/icecast-%{version}.tar.gz
|
||
|
Source1: %{name}.init.tar.bz2
|
||
|
Source2: %{name}.logrotate
|
||
|
Patch0: %{name}.conf.patch
|
||
|
Patch1: %{name}-curl.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libcares-devel
|
||
|
BuildRequires: libcurl-devel
|
||
|
BuildRequires: libe2fs-devel
|
||
|
BuildRequires: libgcrypt-devel
|
||
|
BuildRequires: libgpg-error-devel
|
||
|
BuildRequires: libidn-devel
|
||
|
BuildRequires: libkrb5-devel
|
||
|
BuildRequires: libogg-devel
|
||
|
BuildRequires: libopenldap-devel
|
||
|
BuildRequires: libopenssl-devel
|
||
|
BuildRequires: libsasl-devel
|
||
|
BuildRequires: libspeex-devel
|
||
|
BuildRequires: libssh2-devel
|
||
|
BuildRequires: libtheora-devel
|
||
|
BuildRequires: libvorbis-devel
|
||
|
BuildRequires: libxml2-devel
|
||
|
BuildRequires: libxslt-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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
|
||
|
#%patch1 -p1
|
||
|
tar jxvf %{S:1} > %{name}
|
||
|
|
||
|
%build
|
||
|
./autogen.sh || :
|
||
|
%configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}/icecast2
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
rm -rf %{buildroot}%{_docdir}/%{name}
|
||
|
install -d -m 755 %{buildroot}%{_var}/log/%{name}
|
||
|
install -d -m 755 %{buildroot}%{_initrddir}
|
||
|
install -m 755 %{name} %{buildroot}%{_initrddir}
|
||
|
#
|
||
|
|
||
|
# logrotate
|
||
|
install -d %{buildroot}%{_sysconfdir}/logrotate.d/
|
||
|
install -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||
|
|
||
|
# to hold pid file ( need to be writable by icecast )
|
||
|
mkdir -p %{buildroot}%{_var}/run/%{name}/
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_sysconfdir}/icecast2
|
||
|
%{_bindir}/icecast
|
||
|
%dir %{_datadir}/icecast
|
||
|
%dir %{_datadir}/icecast/admin
|
||
|
%{_datadir}/icecast/admin/listclients.xsl
|
||
|
%{_datadir}/icecast/admin/listmounts.xsl
|
||
|
%{_datadir}/icecast/admin/manageauth.xsl
|
||
|
%{_datadir}/icecast/admin/moveclients.xsl
|
||
|
%{_datadir}/icecast/admin/response.xsl
|
||
|
%{_datadir}/icecast/admin/stats.xsl
|
||
|
%{_datadir}/icecast/admin/updatemetadata.xsl
|
||
|
%{_datadir}/icecast/admin/vclt.xsl
|
||
|
%{_datadir}/icecast/admin/xspf.xsl
|
||
|
%dir %{_datadir}/icecast/web
|
||
|
%{_datadir}/icecast/web/auth.xsl
|
||
|
%{_datadir}/icecast/web/*.jpg
|
||
|
%{_datadir}/icecast/web/*.gif
|
||
|
%{_datadir}/icecast/web/server_version.xsl
|
||
|
%{_datadir}/icecast/web/status.xsl
|
||
|
%{_datadir}/icecast/web/status2.xsl
|
||
|
%{_datadir}/icecast/web/*.css
|
||
|
%{_datadir}/icecast/web/*.png
|
||
|
%dir %{_datadir}/icecast/doc
|
||
|
%{_datadir}/icecast/doc/icecast.xml.dist
|
||
|
%{_datadir}/icecast/doc/icecast_minimal.xml.dist
|
||
|
%{_datadir}/icecast/doc/icecast_shoutcast_compat.xml.dist
|
||
|
%{_datadir}/icecast/doc/icecast_urlauth.xml.dist
|
||
|
%attr(-,icecast,icecast) %{_var}/log/%{name}
|
||
|
%attr(-,icecast,icecast) %dir %{_var}/run/%{name}/
|
||
|
%config(noreplace) %{_sysconfdir}/icecast2/icecast.xml
|
||
|
%config(noreplace) %{_initrddir}/%{name}
|
||
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
||
|
|
||
|
%changelog
|
||
|
* Fri Jul 06 2012 Automatic Build System <autodist@mambasoft.it> 2.3.3-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Mon Apr 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-2mamba
|
||
|
- rebuilt with current libcares
|
||
|
|
||
|
* Sun Jul 27 2008 gil <puntogil@libero.it> 2.3.2-1mamba
|
||
|
- package created by autospec
|