2024-01-05 23:46:38 +01:00
|
|
|
%define majver %(echo %version | cut -d_ -f1)
|
|
|
|
%define pkgver %(echo %version | tr _ -)
|
|
|
|
Name: hydrogen
|
2024-01-05 23:46:38 +01:00
|
|
|
Version: 0.9.7
|
2024-01-05 23:46:38 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Advanced drum machine for GNU/Linux
|
|
|
|
Group: Graphical Desktop/Applications/Multimedia
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.hydrogen-music.org/
|
|
|
|
Source: http://downloads.sourceforge.net/project/hydrogen/Hydrogen/%{majver}%20Sources/hydrogen-%{pkgver}.tar.gz
|
|
|
|
Patch0: %{name}-0.9.3-g++4.patch
|
|
|
|
Patch1: %{name}-0.9.3-gcc43.patch
|
|
|
|
Patch2: %{name}-0.9.3-build-flac.patch
|
|
|
|
Patch3: %{name}-0.9.6-gcc-4.7.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libalsa-devel
|
|
|
|
BuildRequires: libarchive-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libjack-devel
|
|
|
|
BuildRequires: liblrdf-devel
|
|
|
|
BuildRequires: libportaudio-devel
|
|
|
|
BuildRequires: libportmidi-devel
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains the headers that programmers will need to develop applications which will use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
mv %{name}-*/* .
|
|
|
|
#sed -i "s|linux2|linux3|" Sconstruct
|
|
|
|
#%patch0
|
|
|
|
#%patch1 -p1
|
|
|
|
#%patch2
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
QTDIR=%{_qt4_libdir}
|
|
|
|
LADSPA_PATH=%{_libdir}/ladspa
|
|
|
|
%cmake \
|
|
|
|
-DCMAKE_COLOR_MAKEFILE=1 \
|
|
|
|
-DWANT_DEBUG=1 \
|
|
|
|
-DWANT_JACK=1 \
|
|
|
|
-DWANT_ALSA=1 \
|
|
|
|
-DWANT_LIBARCHIVE=1 \
|
|
|
|
-DWANT_RUBBERBAND=1 \
|
|
|
|
-DWANT_OSS=0 \
|
|
|
|
-DWANT_PORTAUDIO=1 \
|
|
|
|
-DWANT_PORTMIDI=1 \
|
2024-01-05 23:46:38 +01:00
|
|
|
-DWANT_LASH=1 \
|
2024-01-05 23:46:38 +01:00
|
|
|
-DWANT_LRDF=1 \
|
|
|
|
-DWANT_COREAUDIO=0 \
|
|
|
|
-DWANT_COREMIDI=0
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_datadir}/pixmaps
|
2024-01-05 23:46:38 +01:00
|
|
|
convert data/img/gray/h2-icon.svg -resize 64x64 \
|
|
|
|
%{buildroot}%{_datadir}/pixmaps/h2-icon.png
|
2024-01-05 23:46:38 +01:00
|
|
|
|
2024-01-05 23:46:38 +01:00
|
|
|
:<< _EOF
|
2024-01-05 23:46:38 +01:00
|
|
|
# Create the system menu entry
|
|
|
|
install -d %{buildroot}%{_datadir}/applications
|
|
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Hydrogen
|
|
|
|
GenericName=An advanced drum machine
|
|
|
|
GenericName[it]=Batteria elettronica avanzata
|
|
|
|
Exec=%{name}
|
|
|
|
Icon=hydrogen.png
|
|
|
|
Terminal=0
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;KDE;AudioVideo;Music;
|
|
|
|
EOF
|
2024-01-05 23:46:38 +01:00
|
|
|
_EOF
|
|
|
|
|
|
|
|
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}/
|
2024-01-05 23:46:38 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
2024-01-05 23:46:38 +01:00
|
|
|
%{_libdir}/libhydrogen-core-*.so
|
2024-01-05 23:46:38 +01:00
|
|
|
%{_datadir}/hydrogen/data
|
2024-01-05 23:46:38 +01:00
|
|
|
%{_datadir}/appdata/hydrogen.appdata.xml
|
2024-01-05 23:46:38 +01:00
|
|
|
%{_datadir}/applications/hydrogen.desktop
|
2024-01-05 23:46:38 +01:00
|
|
|
%{_datadir}/pixmaps/h2-icon.png
|
|
|
|
%{_mandir}/man1/hydrogen.1*
|
|
|
|
%doc AUTHORS COPYING
|
2024-01-05 23:46:38 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/hydrogen
|
|
|
|
%{_includedir}/hydrogen/*
|
2024-01-05 23:46:38 +01:00
|
|
|
%doc README.txt
|
2024-01-05 23:46:38 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:46:38 +01:00
|
|
|
* Sun Nov 19 2017 Automatic Build System <autodist@mambasoft.it> 0.9.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 23:46:38 +01:00
|
|
|
* Wed Jul 24 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.6_beta3-1mamba
|
|
|
|
- update to 0.9.6_beta3
|
|
|
|
|
|
|
|
* Sat Jul 07 2012 Automatic Build System <autodist@mambasoft.it> 0.9.6-1mamba
|
|
|
|
- update to 0.9.6
|
|
|
|
|
|
|
|
* Mon Oct 04 2010 Automatic Build System <autodist@mambasoft.it> 0.9.4.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun May 16 2010 Automatic Build System <autodist@mambasoft.it> 0.9.4.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Jan 25 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3-3mamba
|
|
|
|
- moved to music menu entry
|
|
|
|
|
|
|
|
* Mon May 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3-2mamba
|
|
|
|
- changed maintainer
|
|
|
|
|
|
|
|
* Mon Oct 30 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.9.3-1qilnx
|
|
|
|
- update to version 0.9.3 by autospec
|
|
|
|
- added missing build requirement
|
|
|
|
|
|
|
|
* Sat Jun 11 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1-3qilnx
|
|
|
|
- rebuilt against new libFLAC release
|
|
|
|
|
|
|
|
* Thu Apr 07 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.9.1-2qilnx
|
|
|
|
- rebuild and moved from devel-contrib repository to devel repository
|
|
|
|
|
|
|
|
* Wed Mar 17 2005 Matteo Bernasconi <voyagernm@virgilio.it> 0.9.1-1qilnx
|
|
|
|
- first build
|