4de0c3b
Summary:      Advanced drum machine for GNU/Linux
4de0c3b
Name:         hydrogen
7235f4f
Version:      0.9.4
ca24254
Release:      3%{?dist}
4de0c3b
URL:          http://www.hydrogen-music.org/
dff3e03
Source0:      http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
7235f4f
# For convenience, to take the svn snapshot:
7235f4f
Source9:      hydrogen-snapshot.sh
ae4b1bd
# portmidi-200 needs a new patch. Causes RHBZ#555488
ae4b1bd
Patch0:       hydrogen-portmidi-200.patch
ca24254
# Fix DSO linking. RHBZ#564719. Sent to upstream ML:
ca24254
Patch1:       hydrogen-linking.patch
4de0c3b
License:      GPLv2+
4de0c3b
Group:        Applications/Multimedia
4de0c3b
BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4de0c3b
1024cde
BuildRequires: alsa-lib-devel
1024cde
BuildRequires: desktop-file-utils
1024cde
BuildRequires: flac-devel 
1024cde
BuildRequires: jack-audio-connection-kit-devel
1024cde
BuildRequires: lash-devel 
1024cde
BuildRequires: liblrdf-devel
1024cde
BuildRequires: libsndfile-devel
1024cde
BuildRequires: libtar-devel
1024cde
BuildRequires: portaudio-devel
7235f4f
BuildRequires: portmidi-devel
1024cde
BuildRequires: qt-devel
1024cde
BuildRequires: scons
4de0c3b
4de0c3b
%description
7235f4f
Hydrogen is an advanced drum machine for GNU/Linux. It's main goal is to bring 
7235f4f
professional yet simple and intuitive pattern-based drum programming.
4de0c3b
4de0c3b
%prep
dff3e03
%setup -q -n %{name}-%{version}
7235f4f
patch -p0 < patches/portaudio.patch
ae4b1bd
%if 0%{fedora} < 12
7235f4f
patch -p0 < patches/portmidi.patch
ae4b1bd
%else
ae4b1bd
%patch0 -p1 -b .200
ae4b1bd
%endif
ca24254
%patch1 -p1 -b .linking
4de0c3b
4de0c3b
%build
1024cde
export QTDIR=%{_qt4_prefix}
1024cde
scons %{?_smp_mflags} prefix=%{_prefix} portaudio=1 portmidi=1 lash=1 oss=0 optflags="$RPM_OPT_FLAGS"
4de0c3b
4de0c3b
%install
4de0c3b
rm -rf $RPM_BUILD_ROOT
1024cde
export QTDIR=%{_qt4_prefix}
7235f4f
scons install DESTDIR=$RPM_BUILD_ROOT
7235f4f
1024cde
1024cde
# install hydrogen.desktop properly.
4de0c3b
desktop-file-install --vendor fedora              \
1024cde
  --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
4de0c3b
  --add-category X-Drumming                       \
a6cf92d
  --add-category Midi                             \
4de0c3b
  --add-category X-Jack                           \
a6cf92d
  --add-category AudioVideoEditing                \
4de0c3b
  --remove-mime-type text/xml                     \
1024cde
  --delete-original                               \
1024cde
  $RPM_BUILD_ROOT%{_datadir}/applications/hydrogen.desktop
4de0c3b
7235f4f
# Move the icon to the proper place
b286aa6
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/
7235f4f
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/*.svg \
b286aa6
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/
7235f4f
8ce66f8
# No need to package these (they will not be installed automatically in rc3?):
1024cde
rm -f $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/{Makefile,README}* \
1024cde
      $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/*.{docbook,po,pot}
1024cde
1024cde
4de0c3b
%clean
4de0c3b
rm -rf $RPM_BUILD_ROOT
4de0c3b
1024cde
4de0c3b
%post
1024cde
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
4de0c3b
4de0c3b
%postun
1024cde
if [ $1 -eq 0 ] ; then
1024cde
        touch --no-create %{_datadir}/icons/hicolor &>/dev/null
1024cde
        gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
4de0c3b
fi
4de0c3b
1024cde
%posttrans
1024cde
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
1024cde
1024cde
4de0c3b
%files
7235f4f
%defattr(-,root,root,-)
dff3e03
%doc AUTHORS ChangeLog COPYING* README.txt
7235f4f
%{_bindir}/hydrogen
4de0c3b
%{_datadir}/hydrogen
4de0c3b
%{_datadir}/applications/fedora-hydrogen.desktop
7235f4f
%{_datadir}/icons/hicolor/scalable/apps/*.svg
4de0c3b
4de0c3b
%changelog
ca24254
* Sat Feb 13 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-3
ca24254
- Fix DSO linking RHBZ#564719
ca24254
ae4b1bd
* Sat Jan 30 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-2
ae4b1bd
- Add patch against portmidi-200 on F13+. Fixes RHBZ#555488
ae4b1bd
dff3e03
* Tue Sep 15 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-1
dff3e03
- Update to 0.9.4
dff3e03
8ce66f8
* Sat Aug 22 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-0.7.rc2
8ce66f8
- Update to 0.9.4-rc2
8ce66f8
a6cf92d
* Wed Aug 05 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-0.6.rc1.1
a6cf92d
- Update .desktop file
a6cf92d
376f37d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-0.5.rc1.1
376f37d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
376f37d
b286aa6
* Tue Jul 14 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-0.4.rc1.1
b286aa6
- Rebuild against new lash build on F-12 due to the e2fsprogs split
b286aa6
1024cde
* Tue Apr 14 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-0.3.rc1.1
1024cde
- Update to 0.9.4-rc1-1
1024cde
62fe56b
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-0.2.790svn
62fe56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
62fe56b
7235f4f
* Fri Feb 13 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-0.1.790svn
7235f4f
- Update to 0.9.4-beta3 (uses scons and qt4)
7235f4f
a9d73f1
* Fri Apr 04 2008 Lubomir Kundrak <lkundrak@redhat.com> - 0.9.3-13
a9d73f1
- QT3 changes by rdieter
a9d73f1
- Fix build
a9d73f1
df946ec
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.3-12
df946ec
- Autorebuild for GCC 4.3
df946ec
e07fee5
* Thu Jan 03 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.9.3-11
e07fee5
- Previous change was not a good idea
e07fee5
- Adding missing includes to fix build with gcc-4.3
e07fee5
0559827
* Sun Oct 14 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.9.3-10
0559827
- Remove unneeded dependencies on desktop-file-utils
0559827
4de0c3b
* Mon Oct 09 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.9.3-9
4de0c3b
- Incorporate fixes from #190040, thanks to Hans de Goede
4de0c3b
- Removed useless LIBDIR introduced in previous revision
4de0c3b
- Fixed desktop file installation
4de0c3b
- Call gtk-update-icon-cache only if it is present
4de0c3b
4de0c3b
* Sun Oct 07 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.9.3-8
4de0c3b
- Remove -j from make to fix concurrency problems
4de0c3b
- Handle libdir on 64bit platforms correctly
4de0c3b
- Rename patches
4de0c3b
4de0c3b
* Sat Oct 06 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.9.3-7.1
4de0c3b
- Fix desktop file
4de0c3b
- Fix compatibility with new FLAC
4de0c3b
- Fix linking for Build ID use
4de0c3b
4de0c3b
* Mon Mar 26 2007 Anthony Green <green@redhat.com> 0.9.3-7
4de0c3b
- Improve Source0 link.
4de0c3b
- Add %%post(un) scriptlets for MimeType update.
4de0c3b
- Add update-desktop-database scriptlets.
4de0c3b
4de0c3b
* Sat Jul 22 2006 Anthony Green <green@redhat.com> 0.9.3-6
4de0c3b
- Add hydrogen-null-sample.patch to fix crash.
4de0c3b
4de0c3b
* Sun Jul 02 2006 Anthony Green <green@redhat.com> 0.9.3-5
4de0c3b
- Clean up BuildRequires.
4de0c3b
- Configure with --disable-oss-support
4de0c3b
- Don't run ldconfig (not needed)
4de0c3b
- Remove post/postun scriptlets.
4de0c3b
4de0c3b
* Sat May 13 2006 Anthony Green <green@redhat.com> 0.9.3-4
4de0c3b
- BuildRequire libxml2-devel.
4de0c3b
- Remove explicit Requires for some runtime libraries.
4de0c3b
- Set QTDIR via /etc/profile.d/qt.sh.
4de0c3b
- Update desktop icons and icon cache in post and postun.
4de0c3b
- Don't use __rm or __make macros.
4de0c3b
4de0c3b
* Sat May 13 2006 Anthony Green <green@redhat.com> 0.9.3-3
4de0c3b
- Conditionally apply ardour-lib64-ladspa.patch.
4de0c3b
4de0c3b
* Sat May 13 2006 Anthony Green <green@redhat.com> 0.9.3-2
4de0c3b
- Build fixes for x86_64.
4de0c3b
4de0c3b
* Wed Apr 26 2006 Anthony Green <green@redhat.com> 0.9.3-1
4de0c3b
- Created.