head 1.17; access; symbols; locks; strict; comment @-- @; 1.17 date 2009.12.02.09.11.50; author rse; state Exp; branches; next 1.16; commitid 9heOdAORsguPoMdu; 1.16 date 2009.11.01.18.15.40; author rse; state Exp; branches; next 1.15; commitid djdGrmOYTgvbpQ9u; 1.15 date 2009.10.03.09.04.25; author rse; state Exp; branches; next 1.14; commitid nEzyFccTnVSQh46u; 1.14 date 2009.09.02.17.52.57; author rse; state Exp; branches; next 1.13; commitid clzY51O74OHXc82u; 1.13 date 2009.08.01.16.37.43; author rse; state Exp; branches; next 1.12; commitid mO6113Nkq5lVO0Yt; 1.12 date 2009.07.01.08.54.24; author rse; state Exp; branches; next 1.11; commitid 7Qv15p4DzzjLfZTt; 1.11 date 2009.06.02.07.06.19; author rse; state Exp; branches; next 1.10; commitid GXUvqyGGXivtAfQt; 1.10 date 2009.05.03.07.54.10; author rse; state Exp; branches; next 1.9; commitid gLbrLojPVjCFOoMt; 1.9 date 2009.04.18.13.11.12; author rse; state Exp; branches; next 1.8; commitid 4pHXU27WTIGCZuKt; 1.8 date 2009.03.11.19.45.58; author rse; state Exp; branches; next 1.7; commitid Hd03OW92re0usEFt; 1.7 date 2009.03.09.21.02.20; author rse; state Exp; branches; next 1.6; commitid v0pCtM8weCBFWoFt; 1.6 date 2009.03.08.19.16.28; author rse; state Exp; branches; next 1.5; commitid CAqlxs6519ZkogFt; 1.5 date 2009.03.06.17.38.56; author rse; state Exp; branches; next 1.4; commitid WlcGuw27JBhQUZEt; 1.4 date 2009.03.05.22.21.29; author rse; state Exp; branches; next 1.3; commitid frguVRyEJqFNvTEt; 1.3 date 2009.03.04.22.03.25; author rse; state Exp; branches; next 1.2; commitid 83rI32RDRrgArLEt; 1.2 date 2009.03.03.19.18.09; author rse; state Exp; branches; next 1.1; commitid quHN4XoS3jgSyCEt; 1.1 date 2009.03.01.11.26.07; author rse; state Exp; branches; next ; commitid N1TZwNY7lWaW0kEt; desc @@ 1.17 log @upgrading package: ices 0.4.20091101 -> 0.4.20091201 @ text @## ## ices.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## # package version %define V_base 0.4 %define V_snap 20091201 # package information Name: ices Summary: MP3 Streaming Source Client for Icecast URL: http://www.icecast.org/ices.php Vendor: Alexander Havang Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Audio License: GPL Version: %{V_base}.%{V_snap} Release: 20091202 # list of sources Source0: http://people.xiph.org/~brendan/snapshots/ices0/ices-%{V_base}-%{V_snap}.tar.gz Source1: ices.conf Source2: rc.ices # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 BuildPreReq: libshout, libxml, vorbis-libs, flac, lame, perl PreReq: libshout, libxml, vorbis-libs, flac, lame, perl AutoReq: no AutoReqProv: no %description Ices, armed with a list of MP3 files, sends a continuous stream of MP3 data to an Icecast server. The server is then responsible for accepting client connections and feeding the MP3 stream to them. %track prog ices = { version = %{V_base}-%{V_snap} url = http://people.xiph.org/~brendan/snapshots/ices0/ regex = ices-(__VER__\-\d{4}\d{2}01)\.tar\.gz } %prep %setup -q -n ices-%{V_base} %build # configure program CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags}" \ LDFLAGS="%{l_ldflags}" \ ./configure \ --prefix=%{l_prefix} \ --sysconfdir=%{l_prefix}/etc/ices \ --with-xml-config=%{l_prefix}/bin/xml2-config \ --with-perl=%{l_prefix}/bin/perl \ --with-vorbis=%{l_prefix} \ --with-lame=%{l_prefix} \ --with-flac=%{l_prefix} # build program %{l_make} %{l_mflags -O} %install # install program rm -rf $RPM_BUILD_ROOT %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" # install default configuration # post-adjust installation mv $RPM_BUILD_ROOT%{l_prefix}/etc/ices/modules/ices.pm.dist \ $RPM_BUILD_ROOT%{l_prefix}/etc/ices/modules/ices.pm # strip down installation strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc/ices >/dev/null 2>&1 || true rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/ices/ices.conf.dist >/dev/null 2>&1 || true rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/ices/modules/ices.py.dist >/dev/null 2>&1 || true rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/ices/modules/ices.sh.dist >/dev/null 2>&1 || true # install default configuration %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE ices.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/ices/ # install run-command script %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE rc.ices} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ # create run-time directory %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/var/ices # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %{l_prefix}/etc/ices/*' \ '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/ices' %files -f files %clean rm -rf $RPM_BUILD_ROOT %post # after upgrade, restart service [ $1 -eq 2 ] || exit 0 eval `%{l_rc} ices status 2>/dev/null` [ ".$ices_active" = .yes ] && %{l_rc} ices restart exit 0 %preun # before erase, stop service and remove log files [ $1 -eq 0 ] || exit 0 %{l_rc} ices stop 2>/dev/null rm -f $RPM_INSTALL_PREFIX/var/ices/* >/dev/null 2>&1 || true exit 0 @ 1.16 log @upgrading package: ices 0.4.20091001 -> 0.4.20091101 @ text @d26 1 a26 1 %define V_snap 20091101 d39 1 a39 1 Release: 20091101 @ 1.15 log @upgrading package: ices 0.4.20090901 -> 0.4.20091001 @ text @d26 1 a26 1 %define V_snap 20091001 d39 1 a39 1 Release: 20091003 @ 1.14 log @upgrading package: ices 0.4.20090801 -> 0.4.20090901 @ text @d26 1 a26 1 %define V_snap 20090901 d39 1 a39 1 Release: 20090902 @ 1.13 log @upgrading package: ices 0.4.20090701 -> 0.4.20090801 @ text @d26 1 a26 1 %define V_snap 20090801 d39 1 a39 1 Release: 20090801 @ 1.12 log @upgrading package: ices 0.4.20090601 -> 0.4.20090701 @ text @d26 1 a26 1 %define V_snap 20090701 d39 1 a39 1 Release: 20090701 @ 1.11 log @upgrading package: ices 0.4.20090501 -> 0.4.20090601 @ text @d26 1 a26 1 %define V_snap 20090601 d39 1 a39 1 Release: 20090602 @ 1.10 log @upgrading package: ices 0.4.20090311 -> 0.4.20090501 @ text @d26 1 a26 1 %define V_snap 20090501 d39 1 a39 1 Release: 20090503 @ 1.9 log @bump years in copyright messages @ text @d26 1 a26 1 %define V_snap 20090311 d39 1 a39 1 Release: 20090311 @ 1.8 log @upgrading package: ices 0.4.20090309 -> 0.4.20090311 @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.7 log @upgrading package: ices 0.4.20090308 -> 0.4.20090309 @ text @d26 1 a26 1 %define V_snap 20090309 d39 1 a39 1 Release: 20090309 d65 1 a65 1 regex = ices-(__VER__)\.tar\.gz @ 1.6 log @upgrading package: ices 0.4.20090306 -> 0.4.20090308 @ text @d26 1 a26 1 %define V_snap 20090308 d39 1 a39 1 Release: 20090308 @ 1.5 log @upgrading package: ices 0.4.20090305 -> 0.4.20090306 @ text @d26 1 a26 1 %define V_snap 20090306 d39 1 a39 1 Release: 20090306 @ 1.4 log @upgrading package: ices 0.4.20090304 -> 0.4.20090305 @ text @d26 1 a26 1 %define V_snap 20090305 d39 1 a39 1 Release: 20090305 @ 1.3 log @upgrading package: ices 0.4.20090303 -> 0.4.20090304 @ text @d26 1 a26 1 %define V_snap 20090304 d39 1 a39 1 Release: 20090304 @ 1.2 log @upgrading package: ices 0.4.20090301 -> 0.4.20090303 @ text @d26 1 a26 1 %define V_snap 20090303 d39 1 a39 1 Release: 20090303 @ 1.1 log @new package: ices 0.4.20090301 (MP3 Streaming Source Client for Icecast) @ text @d26 1 a26 1 %define V_snap 20090301 d39 1 a39 1 Release: 20090301 @