File darkice.spec of Package darkice

#
# spec file for package darkice (Version 1.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           darkice
Version:        1.0
Release:        1
License:        GPL
Summary:        An audio encoder to create ogg/mp3 streams for audio streamers
Url:            http://code.google.com/p/darkice
Group:          Productivity/Multimedia/Sound/Players
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  gcc-c++ alsa-devel libvorbis-devel
BuildRequires:  libjack-devel

%description
DarkIce is a live audio streamer. It records audio from an audio interface (e.g.
sound card), encodes it and sends it to a streaming server.


%prep
%setup -q
#Apparently Darkice wants to statically link in various upackages which opensuse only have available dynamically.  Hacking around that:
%{__sed} -i -e 's|libogg.a|libogg.so|g'  configure
%{__sed} -i -e 's|libvorbis.a|libvorbis.so|g'  configure
%{__sed} -i -e 's|libvorbisenc.a|libvorbisenc.so|g'  configure


%build
%configure --with-vorbis --with-alsa --with-jack
%{__make}

%install
%makeinstall

%files
%defattr(-,root,root)
%{_sysconfdir}/%{name}.cfg
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_mandir}/man5/%{name}*