]>
Commit | Line | Data |
---|---|---|
913151a1 | 1 | # TODO: check init files |
85426b6f | 2 | # - roaraudio-devel >= 0.4.0 ? |
6dbf977c | 3 | |
4 | Summary: ices2 - Program for feeding MP3 and OGG streams to an Icecast server | |
fdf96bfe ER |
5 | Summary(pl.UTF-8): ices2 - program dostarczający strumienie MP3 oraz OGG do serwera Icecast |
6 | Summary(pt_BR.UTF-8): Mais um streamer para icecast | |
e321a98a | 7 | Name: ices |
85426b6f JB |
8 | Version: 2.0.3 |
9 | Release: 1 | |
247f9dd0 | 10 | License: GPL v2 |
e321a98a | 11 | Group: Applications/Sound |
6dbf977c | 12 | Source0: http://downloads.xiph.org/releases/ices/%{name}-%{version}.tar.bz2 |
85426b6f | 13 | # Source0-md5: df201d7c034ca93ff46202a2c1413b72 |
d0110f91 | 14 | Source1: %{name}.init |
f58b2186 | 15 | Source2: %{name}.conf.txt |
3ad766bc | 16 | URL: http://www.icecast.org/ices.php |
913151a1 | 17 | BuildRequires: alsa-lib-devel |
85426b6f | 18 | BuildRequires: autoconf >= 2.50 |
e321a98a | 19 | BuildRequires: automake |
913151a1 | 20 | BuildRequires: gcc-c++ |
d0110f91 | 21 | BuildRequires: libshout-devel |
913151a1 | 22 | BuildRequires: libxml2-devel |
5b85e593 | 23 | BuildRequires: pkgconfig |
874f9bdd | 24 | BuildRequires: python-devel |
5726980f | 25 | BuildRequires: rpmbuild(macros) >= 1.202 |
913151a1 | 26 | Requires(post,preun): /sbin/chkconfig |
27 | Requires(postun): /usr/sbin/groupdel | |
28 | Requires(postun): /usr/sbin/userdel | |
95a3143d | 29 | Requires(pre): /bin/id |
30 | Requires(pre): /usr/bin/getgid | |
31 | Requires(pre): /usr/sbin/groupadd | |
32 | Requires(pre): /usr/sbin/useradd | |
0f8e0934 | 33 | Requires: lame-libs |
913151a1 | 34 | Requires: rc-scripts |
8cc691d4 | 35 | Provides: group(icecast) |
36 | Provides: user(icecast) | |
6cecd170 | 37 | Obsoletes: shout |
65d292bf | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e321a98a | 39 | |
40 | %description | |
913151a1 | 41 | Ices is a part of Icecast server. It submits MP3 and OGG files from a |
42 | playlist. | |
e321a98a | 43 | |
c9b3f899 JR |
44 | %description -l pl.UTF-8 |
45 | Ices jest częścią serwera Icecast. Odpowiada za dostarczanie plików | |
6dbf977c | 46 | MP3 i OGG wg playlisty do serwera Icecast. |
d17e1165 | 47 | |
e321a98a | 48 | %prep |
49 | %setup -q | |
50 | ||
51 | %build | |
85426b6f JB |
52 | %configure \ |
53 | --disable-roaraudio | |
e321a98a | 54 | %{__make} |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
247f9dd0 | 58 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/icecast,/etc/rc.d/init.d} |
e321a98a | 59 | |
0f8e0934 JB |
60 | %{__make} install \ |
61 | DESTDIR=$RPM_BUILD_ROOT | |
e321a98a | 62 | |
d0110f91 | 63 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ices |
0f8e0934 | 64 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/icecast/ices.conf.txt |
e321a98a | 65 | |
247f9dd0 | 66 | cp -p conf/*.xml $RPM_BUILD_ROOT%{_sysconfdir}/icecast |
e321a98a | 67 | |
5b85e593 | 68 | # files *.html, *.css go to doc |
247f9dd0 JB |
69 | # files *.xml go to _sysconfdir |
70 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/{*.html,*.css,*.xml} | |
5b85e593 | 71 | |
e321a98a | 72 | %clean |
0f8e0934 | 73 | rm -rf $RPM_BUILD_ROOT |
e321a98a | 74 | |
10cc4a47 | 75 | %pre |
5726980f | 76 | %groupadd -g 57 icecast |
ca188ae8 | 77 | %useradd -u 57 -r -d /usr/share/empty -s /bin/false -c "ices" -g icecast icecast |
10cc4a47 | 78 | |
e321a98a | 79 | %post |
0f8e0934 | 80 | /sbin/chkconfig --add ices |
e321a98a | 81 | if [ -f /var/lock/subsys/ices ]; then |
95a3143d | 82 | /etc/rc.d/init.d/ices restart >&2 |
e321a98a | 83 | else |
95a3143d | 84 | echo "Run '/etc/rc.d/init.d/ices start' to start ices daemon." >&2 |
e321a98a | 85 | fi |
86 | ||
87 | %preun | |
88 | if [ "$1" = "0" ] ; then | |
95a3143d | 89 | if [ -f /var/lock/subsys/ices ]; then |
90 | /etc/rc.d/init.d/ices stop >&2 | |
91 | fi | |
92 | /sbin/chkconfig --del ices >&2 | |
e321a98a | 93 | fi |
94 | ||
8cc691d4 | 95 | %postun |
96 | if [ "$1" = "0" ]; then | |
97 | %userremove icecast | |
98 | %groupremove icecast | |
99 | fi | |
100 | ||
e321a98a | 101 | %files |
102 | %defattr(644,root,root,755) | |
85426b6f | 103 | %doc AUTHORS README.md doc/*.html doc/style.css |
d0110f91 | 104 | %attr(754,root,root) /etc/rc.d/init.d/ices |
247f9dd0 JB |
105 | %attr(640,root,icecast) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icecast/ices-alsa.xml |
106 | %attr(640,root,icecast) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icecast/ices-oss.xml | |
107 | %attr(640,root,icecast) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icecast/ices-playlist.xml | |
108 | %attr(640,root,icecast) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icecast/ices-roar.xml | |
109 | %attr(640,root,icecast) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/icecast/ices.conf.txt | |
913151a1 | 110 | %attr(755,root,root) %{_bindir}/ices |