File hydrogen.spec of Package hydrogen
#
# spec file for package hydrogen (Version 0.9.3)
#
# 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/
#
# norootforbuild
Name: hydrogen
BuildRequires: flac-devel kdelibs3-devel liblrdf-devel libsndfile-devel
%if %suse_version > 1020
BuildRequires: libraptor-devel
%else
BuildRequires: raptor-devel
%endif
Summary: A Real-Time Drum Machine and Sequencer
Version: 0.9.3
Release: 249
License: GPLv2+
Group: Productivity/Multimedia/Sound/Midi
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.hydrogen-music.org/
Source: %{name}-%{version}.tar.bz2
Source1: hydrogen.desktop
Patch1: hydrogen-gcc4.1-fix.diff
Patch2: hydrogen-plugin-compile-fix.diff
Patch3: hydrogen-flac-1.1.4-fix.diff
Patch4: hydrogen-gcc43-fixes.diff
Patch5: hydrogen-gcc44-fixes.diff
%description
Hydrogen is a simple real-time Drum machine and sequencer for computer
aided composition (CAC). It supports OSS and JACK outputs and ALSA
sequencer MIDI input.
%prep
%setup -q
%patch1
%patch2
%if %suse_version > 1020
%patch3
%endif
%patch4
%patch5 -p1
find . -name CVS | xargs rm -rf
. /etc/opt/kde3/common_options
# update_admin --no-unsermake
update_admin
%build
. /etc/opt/kde3/common_options
export QTDIR=/usr/lib/qt3
./configure $configkde
do_make
%install
. /etc/opt/kde3/common_options
make DESTDIR="$RPM_BUILD_ROOT" install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp data/img/gray/icon.svg $RPM_BUILD_ROOT%{_datadir}/pixmaps/hydrogen.svg
rm -f $RPM_BUILD_ROOT/opt/kde3/share/applications/*.desktop
%suse_update_desktop_file -i hydrogen AudioVideo Sequencer
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
/opt/kde3/bin/*
/opt/kde3/share/hydrogen
/opt/kde3/lib/hydrogen
# /opt/kde3/share/applications/*.desktop
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/hydrogen*
%changelog