File hydrogen.spec of Package hydrogen

#
# spec file for package hydrogen (Version 0.9.3)
#
# Copyright (c) 2009 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:        248
License:        GPL v2 or later
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.



Authors:
--------
    Alessandro Cominu <comix@users.sourceforge.net>

%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 %{?jobs:-j %jobs}

%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
* Mon May 18 2009 tiwai@suse.de
- fix build with gcc 4.4; add missing stdio.h inclusions
* Mon Oct 22 2007 tiwai@suse.de
- fix build with gcc 4.3
* Mon Jun 04 2007 dmueller@suse.de
- remove FLAC 1.1.4 patch for < 10.3
* Mon May 07 2007 stbinner@suse.de
- fix build on < 10.3
* Thu May 03 2007 wstephenson@suse.de
- fix buildrequires: libraptor1-devel -> libraptor-devel
* Thu May 03 2007 lrupp@suse.de
- fix buildrequires: raptor-devel -> libraptor1-devel
* Mon Apr 16 2007 tiwai@suse.de
- fix build with FLAC 1.1.4.
* Thu Jan 18 2007 tiwai@suse.de
- use RPM_OPT_FLAGS for plugins.
* Mon Jul 31 2006 tiwai@suse.de
- updated to version 0.9.3:
  * mostly bugfixes, including memory leak (#194576)
  * new plugins
* Thu Jun 15 2006 dmueller@suse.de
- build parallel
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 18 2005 tiwai@suse.de
- fixed for gcc 4.1.
* Wed Oct 12 2005 tiwai@suse.de
- removed glib* from neededforbuild.
* Wed Jul 27 2005 tiwai@suse.de
- updated to version 0.9.2.
* Wed May 11 2005 schwab@suse.de
- Fix library order.
- Fix broken cast.
* Thu Apr 14 2005 sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Fri Jan 21 2005 tiwai@suse.de
- updated to version 0.9.1.
* Thu Dec 16 2004 coolo@suse.de
- tried to fix Makefiles, but disabled unsermake in the middle
* Wed Aug 25 2004 mana@suse.de
- update to 0.8.2 (non-beta)
* Mon Aug 16 2004 ro@suse.de
- run update_admin
* Tue Mar 02 2004 tiwai@suse.de
- updated to version 0.8.2beta1.
* Fri Feb 20 2004 tiwai@suse.de
- fixed the installation of desktop file.
* Wed Jan 14 2004 tiwai@suse.de
- updated to version 0.8.1.
  libhydrogen is merged again.
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Fri Sep 19 2003 tiwai@suse.de
- fixed the desktop icon path.
* Mon Sep 15 2003 tiwai@suse.de
- added desktop icons.
* Fri Aug 29 2003 tiwai@suse.de
- added %%run_ldconfig.
- fixed categories.
* Thu Aug 28 2003 tiwai@suse.de
- fixed the change of types in the recent JACK.
* Thu Aug 14 2003 tiwai@suse.de
- added desktop file.
* Mon Jul 07 2003 tiwai@suse.de
- updated to version 0.8.0.
* Tue Apr 01 2003 tiwai@suse.de
- initial version: 0.7.6.
openSUSE Build Service is sponsored by