# (misc) TODO write a initscript, but it requires a proper daemonisation of the server # and i was unable to code it # also split --with plf in two %define build_plf 0 %{?_with_plf: %{expand: %%global build_plf 1}} %if %build_plf %define distsuffix plf %endif Summary : DarkIce live IceCast / ShoutCast streamer Name: darkice Version: 0.17.1 Release: %mkrel 1 License: GPL Group: Sound Source: %{name}-%{version}.tar.bz2 #Patch0: darkice-0.16-fix-compile-faac.patch.bz2 Patch1: darkice-0.16-fix-lame_x86_64.patch.bz2 URL: http://%{name}.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libalsa-devel libogg-devel libvorbis-devel BuildRequires: libjack-devel %if %build_plf # for some reason, it need the static version to detect liblame BuildRequires: liblame-static-devel BuildRequires: libfaac-devel %endif %description DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer. It takes audio input from a sound card, encodes it into mp3 and/or Ogg Vorbis, and sends the mp3 stream to one or more IceCast and/or ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2 servers. %if %build_plf This package is in plf as it was linked with Lame, a mp3 encoder, and support AAC encoding. %endif %prep %setup -q #%patch -p0 %patch1 -p0 %build # fix lib detection # beware, using ./ before configure will trigger a rpmlint error :) perl -pi -e 's|(\$\{\S*PREFIX\}/lib)| $1 ${1}64|' configure %configure make all %install %makeinstall %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) %doc COPYING ChangeLog README TODO AUTHORS %config(noreplace) %{_sysconfdir}/darkice.cfg %{_bindir}/* %{_mandir}/man1/darkice.1* %{_mandir}/man5/darkice.cfg.5* %changelog * Tue May 23 2006 Emmanuel Andry <eandry@mandriva.org> 0.17.1-1mdk - New release 0.17.1 - drop patch0 * Fri Jan 27 2006 Michael Scherer <misc@mandriva.org> 0.17-1mdk - New release 0.17 * Tue Dec 20 2005 Michael Scherer <misc@mandriva.org> 0.16-3mdk - fix BuildRequires * Sun Nov 06 2005 Michael Scherer <misc@mandriva.org> 0.16-2mdk - fix lame compile on amd64 * Sun Oct 23 2005 Michael Scherer <misc@mandriva.org> 0.16-1mdk - New release 0.16 - patch to fix faac support compilation * Wed May 18 2005 Michael Scherer <misc@mandriva.org> 0.14-2mdk - fix build with lame package * Sat May 07 2005 Michael Scherer <misc@mandriva.org> 0.14-1mdk - first package, based on provided spec from darkice cvs.