4de0c3b
Summary:      Advanced drum machine for GNU/Linux
4de0c3b
Name:         hydrogen
814e806
Version:      0.9.5.1
Rex Dieter 20782a1
Release:      13%{?dist}
4de0c3b
URL:          http://www.hydrogen-music.org/
dff3e03
Source0:      http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
a31fbdf
# Remove the "you are using the development version" warning
a31fbdf
# http://sourceforge.net/mailarchive/forum.php?forum_name=hydrogen-devel
a31fbdf
# See the "0.9.5 si out" thread
a31fbdf
Patch1:       hydrogen-devel-warning.patch
9261c26
# We need to use pkgconfig to detect lrdf to get the right cflags
9261c26
# Temporary patch since upstream already switched from scons to cmake in trunk
9261c26
Patch2:       hydrogen-lrdf-pkg.patch
e4de865
Patch3:       hydrogen-format-security.patch
4de0c3b
License:      GPLv2+
686a174
4de0c3b
1024cde
BuildRequires: alsa-lib-devel
1024cde
BuildRequires: desktop-file-utils
1024cde
BuildRequires: flac-devel 
1024cde
BuildRequires: jack-audio-connection-kit-devel
d4c3463
BuildRequires: ladspa-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
d4c3463
BuildRequires: qt4-devel
1024cde
BuildRequires: scons
4de0c3b
d4c3463
%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
d4c3463
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
d4c3463
# According tothe old  wasp home page
d4c3463
# http://linux01.gwdg.de/~nlissne/wasp/index.html
d4c3463
# wasp code is now maintained in hydrogen tree.
d4c3463
%package -n ladspa-wasp-plugins
d4c3463
Summary:       Wave Sculpting Plugins
d4c3463
Group:         Applications/Multimedia
d4c3463
License:       GPLv2+
d4c3463
Requires:      ladspa
d4c3463
d4c3463
%description -n ladspa-wasp-plugins
d4c3463
The Wave Sculpting Plugins (WASP) is a set of LADSPA plugins which includes both
d4c3463
processors and generators. While being pretty simple and not CPU-hungry, they
d4c3463
incorporate such interesting algorithms as a multi-mode wave shaper, noisifier,
d4c3463
clipping booster and variable noise source.
d4c3463
d4c3463
WASP is now part of the hydrogen drum machine.
d4c3463
d4c3463
4de0c3b
%prep
1c4c5cb
%setup -q
7235f4f
patch -p0 < patches/portaudio.patch
1c4c5cb
%if 0%{fedora} > 12
1c4c5cb
# portmidi build fix. Looks like other distros did not obey upstream decisions
1c4c5cb
sed -i '/porttime/d' Sconstruct
ae4b1bd
%endif
a31fbdf
%patch1 -p1 -b .nodevver
9261c26
%patch2 -p1 -b .cflags
e4de865
%patch3 -p1 -b .fmt-security
1c4c5cb
686a174
# Workaround due to change in scons behavior. Just a temporary fix since upstream
686a174
# switched to cmake in trunk
29b750b
sed -i -e '/path.walk/d' -e 's|\(pkg_ver.rstrip.*\)|\1[0:3]|' Sconstruct
686a174
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
d4c3463
# Build the wasp plugins
d4c3463
pushd plugins
Rex Dieter 20782a1
    %{qmake_qt4}
d4c3463
    make %{?_smp_mflags}
d4c3463
popd
d4c3463
4de0c3b
%install
1024cde
export QTDIR=%{_qt4_prefix}
7235f4f
scons install DESTDIR=$RPM_BUILD_ROOT
7235f4f
1024cde
1024cde
# install hydrogen.desktop properly.
452cfdd
desktop-file-install \
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
d4c3463
#Install the wasp plugins
d4c3463
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ladspa
d4c3463
cp -a plugins/libwasp*.so $RPM_BUILD_ROOT%{_libdir}/ladspa/
1024cde
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
dff3e03
%doc AUTHORS ChangeLog COPYING* README.txt
7235f4f
%{_bindir}/hydrogen
d4c3463
%{_datadir}/hydrogen/
452cfdd
%{_datadir}/applications/hydrogen.desktop
7235f4f
%{_datadir}/icons/hicolor/scalable/apps/*.svg
4de0c3b
d4c3463
%files -n ladspa-wasp-plugins
d4c3463
%doc plugins/wasp/AUTHORS plugins/wasp/ChangeLog plugins/wasp/LICENSE
d4c3463
%{_libdir}/ladspa/libwasp*.so
d4c3463
d4c3463
4de0c3b
%changelog
Rex Dieter 20782a1
* Wed Feb 03 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.9.5.1-13
Rex Dieter 20782a1
- use %%qmake_qt4 macro to ensure proper build flags
Rex Dieter 20782a1
9a08d54
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.1-12
9a08d54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9a08d54
c46cea0
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.9.5.1-11
c46cea0
- Rebuilt for GCC 5 C++11 ABI change
c46cea0
238e7b7
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.1-10
238e7b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
238e7b7
a0c515a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.1-9
a0c515a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a0c515a
e4de865
* Wed Dec 11 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.9.5.1-8
e4de865
- format-security patch
e4de865
cc1e181
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.1-7
cc1e181
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cc1e181
29b750b
* Tue Feb 12 2013 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.5.1-6
29b750b
- Fix scons build once again
29b750b
452cfdd
* Tue Feb 12 2013 Jon Ciesla <limburgher@gmail.com> - 0.9.5.1-5
452cfdd
- Drop desktop vendor tag.
452cfdd
9261c26
* Sun Jul 22 2012 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.5.1-4
9261c26
- Use pkg-config to detect cflags for liblrdf since raptor header file location changed
9261c26
2989e9c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.1-3
2989e9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2989e9c
20838ba
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.1-2
20838ba
- Rebuilt for c++ ABI breakage
20838ba
814e806
* Sun Feb 19 2012 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.5.1-1
814e806
- Update to 0.9.5.1. Drop upstreamed patch.
814e806
686a174
* Mon Jan 16 2012 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.5-3
686a174
- gcc-4.7 compile fixes
686a174
8a6ebbf
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-2
8a6ebbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8a6ebbf
a31fbdf
* Sun Mar 27 2011 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.5-1
a31fbdf
- Update to 0.9.5
a31fbdf
39476f3
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.2-4
39476f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
39476f3
82b2646
* Sat Oct 16 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4.2-3
82b2646
- Fix data directory. Fixes RHBZ#643622
82b2646
Jesse Keating cc96b72
* Wed Sep 29 2010 jkeating - 0.9.4.2-2
Jesse Keating cc96b72
- Rebuilt for gcc bug 634757
Jesse Keating cc96b72
1c4c5cb
* Fri Sep 24 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4.2-1
1c4c5cb
- Update to 0.9.4.2
1c4c5cb
- Drop all upstreamed patches
1c4c5cb
d4c3463
* Sat Apr 10 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4.1-1
d4c3463
- Update to 0.9.4.1
d4c3463
- Build the wasp plugins
4f25c61
- Fixes ladspa plugin path on 64bit systems
4f25c61
- Fixes crash RHBZ#570348
d4c3463
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
38b1073
* Tue 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.