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

# norootforbuild

Name:           hydrogen
BuildRequires:  flac-devel kdelibs3-devel liblrdf-devel libsndfile-devel
%if %suse_version > 1020
BuildRequires:  libraptor-devel
BuildRequires:  raptor-devel
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
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

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.

%setup -q
%if %suse_version > 1020
%patch5 -p1
find . -name CVS | xargs rm -rf
. /etc/opt/kde3/common_options
# update_admin --no-unsermake

. /etc/opt/kde3/common_options
export QTDIR=/usr/lib/qt3
./configure $configkde

. /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


%defattr(-, root, root)
# /opt/kde3/share/applications/*.desktop

openSUSE Build Service is sponsored by