]> git.pld-linux.org Git - SPECS.git/blob - icecast.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / icecast.spec
1 # TODO:
2 # - logrotate file
3 Summary:        Icecast - streaming MP3 and Ogg server
4 Summary(es.UTF-8):      Un servidor de streams MP3, Ogg
5 Summary(pl.UTF-8):      Icecast - serwer strumieni MP3 i Ogg
6 Summary(pt_BR.UTF-8):   Um servidor de streams MP3, Ogg
7 Name:           icecast
8 Version:        2.4.4
9 Release:        1
10 Epoch:          2
11 License:        GPL v2
12 Group:          Networking/Daemons
13 Source0:        https://downloads.xiph.org/releases/icecast/%{name}-%{version}.tar.gz
14 # Source0-md5:  835c7b571643f6436726a6118defb366
15 Source1:        %{name}.init
16 URL:            http://www.icecast.org/
17 BuildRequires:  autoconf >= 2.54
18 BuildRequires:  automake
19 BuildRequires:  curl-devel >= 7.10.0
20 BuildRequires:  libkate-devel
21 BuildRequires:  libogg-devel >= 2:1.0
22 BuildRequires:  libtheora-devel
23 BuildRequires:  libtool
24 BuildRequires:  libvorbis-devel >= 1:1.0
25 BuildRequires:  libxml2-devel
26 BuildRequires:  libxslt-devel
27 BuildRequires:  openssl-devel
28 BuildRequires:  pkgconfig
29 BuildRequires:  readline-devel
30 BuildRequires:  rpmbuild(macros) >= 1.268
31 BuildRequires:  speex-devel
32 Requires(post,preun):   /sbin/chkconfig
33 Requires(postun):       /usr/sbin/groupdel
34 Requires(postun):       /usr/sbin/userdel
35 Requires(pre):  /bin/id
36 Requires(pre):  /usr/bin/getgid
37 Requires(pre):  /usr/sbin/groupadd
38 Requires(pre):  /usr/sbin/useradd
39 Requires:       rc-scripts
40 Provides:       group(icecast)
41 Provides:       user(icecast)
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %define         _sysconfdir     /etc/%{name}
45
46 %description
47 Icecast is an Internet based broadcasting system based on the Mpeg
48 Layer III streaming technology. It was originally inspired by
49 Nullsoft's Shoutcast and also mp3serv by Scott Manley. The icecast
50 project was started for several reasons: a) all broadcasting systems
51 were pretty much closed source, non-free software implementations, b)
52 Shoutcast doesn't allow you to run your own directory servers, or
53 support them, and c) we thought it would be a lot of fun.
54
55 %description -l es.UTF-8
56 Icecast es un sistema de Transmisión (broadcast) en Internet que
57 utiliza la tecnología MP3.
58
59 %description -l pl.UTF-8
60 Icecast to internetowy serwer rozsyłający strumienie MPEG Layer III.
61 Oryginalnie zainspirowany przez Shoutcast firmy Nullsoft oraz program
62 mp3serv autorstwa Scotta Manleya. Projekt icecast2 został rozpoczęty z
63 kilku powodów: a) wszystkie systemy broadcastowe były ładnymi,
64 zamkniętymi programami, non-free, b) Shoutcast nie pozwala na
65 wystartowanie swoich własnych directory servers czy wspierać ich, c)
66 to niezła zabawa.
67
68 %description -l pt_BR.UTF-8
69 O Icecast é um sistema de broadcast na Internet que utiliza a
70 tecnologia MP3.
71
72 %prep
73 %setup -q
74
75 %build
76 %{__libtoolize}
77 %{__aclocal} -I m4
78 %{__autoheader}
79 %{__automake}
80 %{__autoconf}
81 %configure
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/log/icecast}
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/icecast
93
94 # packaged as %doc
95 %{__rm} $RPM_BUILD_ROOT%{_docdir}/icecast/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %pre
101 %groupadd -g 57 icecast
102 %useradd -u 57 -r -d /usr/share/empty -s /bin/false -c "Streamcast" -g icecast icecast
103
104 %post
105 /sbin/chkconfig --add icecast
106 %service icecast restart "icecast daemon"
107
108 %preun
109 if [ "$1" = "0" ] ; then
110         %service icecast stop
111         /sbin/chkconfig --del icecast >&2
112 fi
113
114 %postun
115 if [ "$1" = "0" ]; then
116         %userremove icecast
117         %groupremove icecast
118 fi
119
120 %files
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog NEWS README TODO
123 %{_docdir}/icecast
124 %attr(754,root,root) /etc/rc.d/init.d/icecast
125 %attr(755,root,root) %{_bindir}/icecast
126 %attr(750,root,icecast) %dir %{_sysconfdir}
127 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icecast.xml
128 %{_datadir}/icecast
129 %attr(770,root,icecast) %config(noreplace) %verify(not md5 mtime size) /var/log/icecast
This page took 0.343202 seconds and 3 git commands to generate.