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

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

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.

%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||g'  configure
%{__sed} -i -e 's|libvorbis.a||g'  configure
%{__sed} -i -e 's|libvorbisenc.a||g'  configure

%configure --with-vorbis --with-alsa --with-jack