hydrogen/hydrogen.spec

172 lines
5.4 KiB
RPMSpec

%define majver %(echo %version | cut -d_ -f1)
%define pkgver %(echo %version | tr _ -)
Name: hydrogen
Version: 1.2.3
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://hydrogen-music.org/
Source: https://github.com/hydrogen-music/hydrogen.git/%{version}/hydrogen-%{pkgver}.tar.bz2
#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: libQt5Svg-devel
BuildRequires: libQt5XmlPatterns-devel
BuildRequires: libalsa-devel
BuildRequires: libarchive-devel
BuildRequires: libgcc
BuildRequires: libjack-devel
BuildRequires: liblash-devel
BuildRequires: liblo-devel
BuildRequires: liblrdf-devel
BuildRequires: libportaudio-devel
BuildRequires: libportmidi-devel
BuildRequires: libpulseaudio-devel
BuildRequires: librubberband-devel
BuildRequires: libsndfile-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtar-devel
BuildRequires: libz-devel
BuildRequires: qt5-qtbase-devel
## AUTOBUILDREQ-END
%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}.
%debug_package
%prep
%setup -q
#%patch3 -p1
%build
QTDIR=%{_qt5_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 \
-DWANT_LASH=1 \
-DWANT_LRDF=1 \
-DWANT_COREAUDIO=0 \
-DWANT_COREMIDI=0
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
#install -d %{buildroot}%{_datadir}/pixmaps
#convert data/img/gray/h2-icon.svg -resize 64x64 \
# %{buildroot}%{_datadir}/pixmaps/h2-icon.png
#mv %{buildroot}%{_prefix}/data/i18n %{buildroot}%{_datadir}/hydrogen/data/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/h2cli
%{_bindir}/h2player
%{_bindir}/hydrogen
%{_datadir}/applications/org.hydrogenmusic.Hydrogen.desktop
%{_datadir}/metainfo/org.hydrogenmusic.Hydrogen.metainfo.xml
%{_libdir}/libhydrogen-core-*.so
%dir %{_datadir}/hydrogen/data
%{_datadir}/hydrogen/data/*
%{_datadir}/icons/hicolor/scalable/apps/org.hydrogenmusic.Hydrogen.svg
%{_mandir}/man1/hydrogen.1*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/hydrogen
%{_includedir}/hydrogen/*
#%doc README.txt
%changelog
* Fri Jan 12 2024 Automatic Build System <autodist@openmamba.org> 1.2.3-1mamba
- automatic version update by autodist
* Sat Sep 16 2023 Automatic Build System <autodist@mambasoft.it> 1.2.2-1mamba
- automatic version update by autodist
* Tue Apr 11 2023 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
- automatic version update by autodist
* Mon Dec 06 2021 Automatic Build System <autodist@mambasoft.it> 1.1.1-1mamba
- automatic version update by autodist
* Sun Sep 12 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
- update to 1.1.0
* Mon Apr 12 2021 Automatic Build System <autodist@mambasoft.it> 1.0.2-1mamba
- automatic version update by autodist
* Sun Sep 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-1mamba
- update to 1.0.1
* Thu Aug 13 2020 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* Sun Nov 19 2017 Automatic Build System <autodist@mambasoft.it> 0.9.7-1mamba
- automatic update by autodist
* 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
* Thu Mar 17 2005 Matteo Bernasconi <voyagernm@virgilio.it> 0.9.1-1qilnx
- first build