2024-01-05 23:48:40 +01:00
Name : icecast
2024-01-05 23:48:40 +01:00
Version : 2.4.4
2024-01-05 23:48:40 +01:00
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
2024-01-05 23:48:40 +01:00
Source3 : icecast.service
Source4 : icecast.sysusers
Source5 : icecast.tmpfiles
2024-01-05 23:48:40 +01:00
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.
2024-01-05 23:48:40 +01:00
%debug_package
2024-01-05 23:48:40 +01:00
%prep
%setup -q
2024-01-05 23:48:40 +01:00
#%patch0
2024-01-05 23:48:40 +01:00
#%patch1 -p1
2024-01-05 23:48:40 +01:00
#tar jxvf %{S:1} > %{name}
#./autogen.sh -fi
2024-01-05 23:48:40 +01:00
%build
2024-01-05 23:48:40 +01:00
%configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} /icecast2
2024-01-05 23:48:40 +01:00
%make
%install
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
%makeinstall
2024-01-05 23:48:40 +01:00
2024-01-05 23:48:40 +01:00
rm -rf %{buildroot} %{_docdir} /%{name}
install -d -m 755 %{buildroot} %{_var}/log/%{name}
# logrotate
install -d %{buildroot} %{_sysconfdir} /logrotate.d/
2024-01-05 23:48:40 +01:00
install -m 0644 %{SOURCE2} %{buildroot} %{_sysconfdir} /logrotate.d/%{name}
2024-01-05 23:48:40 +01:00
2024-01-05 23:48:40 +01:00
# systemd
install -D -m0644 %{SOURCE3} %{buildroot} %{_unitdir} /icecast.service
install -D -m0644 %{SOURCE4} %{buildroot} %{_sysusersdir} /icecast.conf
install -D -m0644 %{SOURCE5} %{buildroot} %{_tmpfilesdir} /icecast.conf
2024-01-05 23:48:40 +01:00
%clean
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
2024-01-05 23:48:40 +01:00
%pre
%sysusers_create_package icecast %{SOURCE4}
%systemd_pre icecast
:
%post
%systemd_post icecast
:
%preun
%systemd_preun icecast
:
%postun
%systemd_postun_with_restart icecast
:
2024-01-05 23:48:40 +01:00
%files
%defattr (-,root,root)
2024-01-05 23:48:40 +01:00
%config (noreplace) %{_sysconfdir} /icecast2/icecast.xml
%config (noreplace) %{_sysconfdir} /logrotate.d/%{name}
2024-01-05 23:48:40 +01:00
%{_bindir} /icecast
2024-01-05 23:48:40 +01:00
%{_unitdir} /icecast.service
%{_sysusersdir} /icecast.conf
%{_tmpfilesdir} /icecast.conf
2024-01-05 23:48:40 +01:00
%dir %{_datadir} /icecast
%dir %{_datadir} /icecast/admin
2024-01-05 23:48:40 +01:00
%{_datadir} /icecast/admin/*.xsl
2024-01-05 23:48:40 +01:00
%dir %{_datadir} /icecast/web
2024-01-05 23:48:40 +01:00
%{_datadir} /icecast/web/*
2024-01-05 23:48:40 +01:00
%dir %{_datadir} /icecast/doc
2024-01-05 23:48:40 +01:00
%{_datadir} /icecast/doc/*
2024-01-05 23:48:40 +01:00
%attr (-,icecast,icecast) %{_var}/log/%{name}
2024-01-05 23:48:40 +01:00
%doc AUTHORS COPYING
#ChangeLog NEWS README TODO
2024-01-05 23:48:40 +01:00
%changelog
2024-01-05 23:48:40 +01:00
* Tue Sep 29 2020 Automatic Build System <autodist@mambasoft.it> 2.4.4-1mamba
- automatic version update by autodist
2024-01-05 23:48:40 +01:00
* Tue Aug 30 2016 Automatic Build System <autodist@mambasoft.it> 2.4.3-1mamba
- automatic update by autodist
2024-01-05 23:48:40 +01:00
* Fri Apr 10 2015 Automatic Build System <autodist@mambasoft.it> 2.4.2-1mamba
- automatic version update by autodist
2024-01-05 23:48:40 +01:00
* Thu Nov 27 2014 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
- automatic version update by autodist
2024-01-05 23:48:40 +01:00
* Mon May 19 2014 Automatic Build System <autodist@mambasoft.it> 2.4.0-1mamba
- automatic update by autodist
2024-01-05 23:48:40 +01:00
* 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