icecast/icecast.spec

129 lines
3.9 KiB
RPMSpec

Name: icecast
Version: 2.4.4
Release: 3mamba
Summary: Xiph Streaming media server that supports multiple audio formats
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.icecast.org/
Source0: https://ftp.osuosl.org/pub/xiph/releases/icecast/icecast-%{version}.tar.gz
Source2: icecast.logrotate
Source3: icecast.service
Source4: icecast.sysusers
Source5: icecast.tmpfiles
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcurl-devel
BuildRequires: libkate-devel
BuildRequires: libogg-devel
BuildRequires: libopenssl-devel
BuildRequires: libspeex-devel
BuildRequires: libtheora-devel
BuildRequires: libvorbis-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
## AUTOBUILDREQ-END
%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.
%debug_package
%prep
%setup -q
%build
%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}
# logrotate
install -d %{buildroot}%{_sysconfdir}/logrotate.d/
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
# 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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
%sysusers_create_package icecast %{SOURCE4}
%systemd_pre icecast
:
%post
%systemd_post icecast
:
%preun
%systemd_preun icecast
:
%postun
%systemd_postun_with_restart icecast
:
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/icecast2/icecast.xml
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_bindir}/icecast
%{_unitdir}/icecast.service
%{_sysusersdir}/icecast.conf
%{_tmpfilesdir}/icecast.conf
%dir %{_datadir}/icecast
%dir %{_datadir}/icecast/admin
%{_datadir}/icecast/admin/*.xsl
%dir %{_datadir}/icecast/web
%{_datadir}/icecast/web/*
%dir %{_datadir}/icecast/doc
%{_datadir}/icecast/doc/*
%attr(-,icecast,icecast) %{_var}/log/%{name}
%doc AUTHORS COPYING
#ChangeLog NEWS README TODO
%changelog
* Wed Apr 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.4-3mamba
- fixed url and other specfile fixes and cleanups
* Sun Feb 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.4-2mamba
- fixed path of icecash.xml in service file
* Tue Sep 29 2020 Automatic Build System <autodist@mambasoft.it> 2.4.4-1mamba
- automatic version update by autodist
* Tue Aug 30 2016 Automatic Build System <autodist@mambasoft.it> 2.4.3-1mamba
- automatic update by autodist
* Fri Apr 10 2015 Automatic Build System <autodist@mambasoft.it> 2.4.2-1mamba
- automatic version update by autodist
* Thu Nov 27 2014 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
- automatic version update by autodist
* Mon May 19 2014 Automatic Build System <autodist@mambasoft.it> 2.4.0-1mamba
- automatic update by autodist
* 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