Summary: Advanced drum machine for GNU/Linux Name: hydrogen Version: 0.9.7 Release: 2%{?dist} URL: http://www.hydrogen-music.org/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # Remove the "you are using the development version" warning # http://sourceforge.net/mailarchive/forum.php?forum_name=hydrogen-devel # See the "0.9.5 si out" thread #Patch1: hydrogen-devel-warning.patch # We need to use pkgconfig to detect lrdf to get the right cflags # Temporary patch since upstream already switched from scons to cmake in trunk #Patch2: hydrogen-lrdf-pkg.patch #Patch3: hydrogen-format-security.patch Patch4: hydrogen-desktop.patch License: GPLv2+ BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils BuildRequires: flac-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: ladspa-devel BuildRequires: lash-devel BuildRequires: liblrdf-devel BuildRequires: libsndfile-devel BuildRequires: libtar-devel BuildRequires: portaudio-devel BuildRequires: portmidi-devel BuildRequires: qt4-devel BuildRequires: cmake %{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}} %description Hydrogen is an advanced drum machine for GNU/Linux. It's main goal is to bring professional yet simple and intuitive pattern-based drum programming. # According tothe old wasp home page # http://linux01.gwdg.de/~nlissne/wasp/index.html # wasp code is now maintained in hydrogen tree. %package -n ladspa-wasp-plugins Summary: Wave Sculpting Plugins Group: Applications/Multimedia License: GPLv2+ Requires: ladspa %description -n ladspa-wasp-plugins The Wave Sculpting Plugins (WASP) is a set of LADSPA plugins which includes both processors and generators. While being pretty simple and not CPU-hungry, they incorporate such interesting algorithms as a multi-mode wave shaper, noisifier, clipping booster and variable noise source. WASP is now part of the hydrogen drum machine. %package -n devel Summary: Hydrogen header files License: GPLv2+ Requires: hydrogen %description -n devel Header files for the hydrogen drum machine. %prep %setup -q #patch -p0 < patches/portaudio.patch #%if 0%{fedora} > 12 # portmidi build fix. Looks like other distros did not obey upstream decisions #sed -i '/porttime/d' Sconstruct #%endif #%patch1 -p1 -b .nodevver #%patch2 -p1 -b .cflags #%patch3 -p1 -b .fmt-security %patch4 -p0 -b .dekstop %build export QTDIR=%{_qt4_prefix} %cmake . -DCMAKE_POSITION_INDEPENDENT_CODE=ON make %{?_smp_mflags} ## Build the wasp plugins pushd src pushd plugins %{qmake_qt4} make %{?_smp_mflags} popd popd %install export QTDIR=%{_qt4_prefix} make install DESTDIR=$RPM_BUILD_ROOT # install hydrogen.desktop properly. desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category X-Drumming \ --add-category Midi \ --add-category X-Jack \ --add-category AudioVideoEditing \ --remove-mime-type text/xml \ --delete-original \ $RPM_BUILD_ROOT%{_datadir}/applications/hydrogen.desktop # Move the icon to the proper place mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/ cp $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/img/gray/*.svg \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/ # No need to package these (they will not be installed automatically in rc3?): rm -f $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/{Makefile,README}* \ $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/*.{docbook,po,pot} #Install the wasp plugins mkdir -p $RPM_BUILD_ROOT%{_libdir}/ladspa cp -a src/plugins/libwasp*.so $RPM_BUILD_ROOT%{_libdir}/ladspa/ #Move the man page to the proper place. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mv $RPM_BUILD_ROOT/usr/man/man1/hydrogen.1 $RPM_BUILD_ROOT%{_mandir}/man1/hydrogen.1 %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %doc AUTHORS ChangeLog COPYING* README.txt %{_bindir}/hydrogen %{_bindir}/h2* %{_datadir}/hydrogen/ %{_datadir}/applications/hydrogen.desktop %{_datadir}/icons/hicolor/scalable/apps/*.svg %{_libdir}/libhydrogen-core-0.9.7.so %{_mandir}/man1/hydrogen.1.gz %{_datadir}/appdata/hydrogen.appdata.xml %files -n ladspa-wasp-plugins %doc src/plugins/wasp/AUTHORS src/plugins/wasp/ChangeLog src/plugins/wasp/LICENSE %{_libdir}/ladspa/libwasp*.so %files -n devel %{_includedir}/hydrogen/ %changelog * Fri Feb 10 2017 Fedora Release Engineering - 0.9.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Nov 30 2016 Jon Ciesla - 0.9.7-1 - 0.9.7 * Wed Feb 03 2016 Rex Dieter - 0.9.5.1-13 - use %%qmake_qt4 macro to ensure proper build flags * Wed Jun 17 2015 Fedora Release Engineering - 0.9.5.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.9.5.1-11 - Rebuilt for GCC 5 C++11 ABI change * Sat Aug 16 2014 Fedora Release Engineering - 0.9.5.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Dec 11 2013 Brendan Jones 0.9.5.1-8 - format-security patch * Sat Aug 03 2013 Fedora Release Engineering - 0.9.5.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Feb 12 2013 Orcan Ogetbil - 0.9.5.1-6 - Fix scons build once again * Tue Feb 12 2013 Jon Ciesla - 0.9.5.1-5 - Drop desktop vendor tag. * Sun Jul 22 2012 Orcan Ogetbil - 0.9.5.1-4 - Use pkg-config to detect cflags for liblrdf since raptor header file location changed * Thu Jul 19 2012 Fedora Release Engineering - 0.9.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 0.9.5.1-2 - Rebuilt for c++ ABI breakage * Sun Feb 19 2012 Orcan Ogetbil - 0.9.5.1-1 - Update to 0.9.5.1. Drop upstreamed patch. * Mon Jan 16 2012 Orcan Ogetbil - 0.9.5-3 - gcc-4.7 compile fixes * Fri Jan 13 2012 Fedora Release Engineering - 0.9.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Mar 27 2011 Orcan Ogetbil - 0.9.5-1 - Update to 0.9.5 * Wed Feb 09 2011 Fedora Release Engineering - 0.9.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Oct 16 2010 Orcan Ogetbil - 0.9.4.2-3 - Fix data directory. Fixes RHBZ#643622 * Wed Sep 29 2010 jkeating - 0.9.4.2-2 - Rebuilt for gcc bug 634757 * Fri Sep 24 2010 Orcan Ogetbil - 0.9.4.2-1 - Update to 0.9.4.2 - Drop all upstreamed patches * Sat Apr 10 2010 Orcan Ogetbil - 0.9.4.1-1 - Update to 0.9.4.1 - Build the wasp plugins - Fixes ladspa plugin path on 64bit systems - Fixes crash RHBZ#570348 * Sat Feb 13 2010 Orcan Ogetbil - 0.9.4-3 - Fix DSO linking RHBZ#564719 * Sat Jan 30 2010 Orcan Ogetbil - 0.9.4-2 - Add patch against portmidi-200 on F13+. Fixes RHBZ#555488 * Tue Sep 15 2009 Orcan Ogetbil - 0.9.4-1 - Update to 0.9.4 * Sat Aug 22 2009 Orcan Ogetbil - 0.9.4-0.7.rc2 - Update to 0.9.4-rc2 * Wed Aug 05 2009 Orcan Ogetbil - 0.9.4-0.6.rc1.1 - Update .desktop file * Fri Jul 24 2009 Fedora Release Engineering - 0.9.4-0.5.rc1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jul 14 2009 Orcan Ogetbil - 0.9.4-0.4.rc1.1 - Rebuild against new lash build on F-12 due to the e2fsprogs split * Tue Apr 14 2009 Orcan Ogetbil - 0.9.4-0.3.rc1.1 - Update to 0.9.4-rc1-1 * Tue Feb 24 2009 Fedora Release Engineering - 0.9.4-0.2.790svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 13 2009 Orcan Ogetbil - 0.9.4-0.1.790svn - Update to 0.9.4-beta3 (uses scons and qt4) * Fri Apr 04 2008 Lubomir Kundrak - 0.9.3-13 - QT3 changes by rdieter - Fix build * Mon Feb 18 2008 Fedora Release Engineering - 0.9.3-12 - Autorebuild for GCC 4.3 * Thu Jan 03 2008 Lubomir Kundrak 0.9.3-11 - Previous change was not a good idea - Adding missing includes to fix build with gcc-4.3 * Sun Oct 14 2007 Lubomir Kundrak 0.9.3-10 - Remove unneeded dependencies on desktop-file-utils * Tue Oct 09 2007 Lubomir Kundrak 0.9.3-9 - Incorporate fixes from #190040, thanks to Hans de Goede - Removed useless LIBDIR introduced in previous revision - Fixed desktop file installation - Call gtk-update-icon-cache only if it is present * Sun Oct 07 2007 Lubomir Kundrak 0.9.3-8 - Remove -j from make to fix concurrency problems - Handle libdir on 64bit platforms correctly - Rename patches * Sat Oct 06 2007 Lubomir Kundrak 0.9.3-7.1 - Fix desktop file - Fix compatibility with new FLAC - Fix linking for Build ID use * Mon Mar 26 2007 Anthony Green 0.9.3-7 - Improve Source0 link. - Add %%post(un) scriptlets for MimeType update. - Add update-desktop-database scriptlets. * Sat Jul 22 2006 Anthony Green 0.9.3-6 - Add hydrogen-null-sample.patch to fix crash. * Sun Jul 02 2006 Anthony Green 0.9.3-5 - Clean up BuildRequires. - Configure with --disable-oss-support - Don't run ldconfig (not needed) - Remove post/postun scriptlets. * Sat May 13 2006 Anthony Green 0.9.3-4 - BuildRequire libxml2-devel. - Remove explicit Requires for some runtime libraries. - Set QTDIR via /etc/profile.d/qt.sh. - Update desktop icons and icon cache in post and postun. - Don't use __rm or __make macros. * Sat May 13 2006 Anthony Green 0.9.3-3 - Conditionally apply ardour-lib64-ladspa.patch. * Sat May 13 2006 Anthony Green 0.9.3-2 - Build fixes for x86_64. * Wed Apr 26 2006 Anthony Green 0.9.3-1 - Created.