File darksnow.spec of Package darksnow
#
# spec file for package darksnow (Version 0.6.1)
#
# 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: darksnow
Version: 0.6.1
Release: 1
License: GPL
Summary: An audio encoder to create ogg/mp3 streams for audio streamers
Url: http://darksnow.radiolivre.org/index.en.html
Group: Productivity/Multimedia/Sound/Players
Source: %{name}-%{version}.tar.bz2
BuildRequires: gtk2-devel
Requires: darkice
#BuildRequires: libjack-devel
%description
darksnow - a gtk2 interface for darkice.
%prep
%setup -q
#Apparently darksnow 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
export SUSE_ASNEEDED=0
%configure CFLAGS="%{optflags}"
%{__make}
%install
export SUSE_ASNEEDED=0
%makeinstall PREFIX=%{buildroot}%{_prefix}
%find_lang %{name}
%files -f %{name}.lang
%defattr(-,root,root)
#%{_sysconfdir}/%{name}.cfg
%exclude %{_datadir}/%{name}/changelog
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
#%{_mandir}/man5/%{name}*