146 lines
4.3 KiB
RPMSpec
146 lines
4.3 KiB
RPMSpec
%define majver %(echo %version | cut -d_ -f1)
|
|
%define pkgver %(echo %version | tr _ -)
|
|
Name: hydrogen
|
|
Version: 0.9.6_beta3
|
|
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 \
|
|
-DWANT_LASH=0 \
|
|
-DWANT_LRDF=1 \
|
|
-DWANT_COREAUDIO=0 \
|
|
-DWANT_COREMIDI=0
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
#scons install DESTDIR=%{buildroot}
|
|
|
|
install -d %{buildroot}%{_datadir}/pixmaps
|
|
convert /usr/share/hydrogen/data/img/gray/h2-icon.svg -resize 64x64 \
|
|
%{buildroot}%{_datadir}/pixmaps/hydrogen.png
|
|
|
|
|
|
# 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
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%{_libdir}/libhydrogen-core-0.9.6.so
|
|
%{_datadir}/hydrogen/data
|
|
%{_datadir}/applications/hydrogen.desktop
|
|
%{_datadir}/pixmaps/hydrogen.png
|
|
%doc AUTHORS COPYING README.txt
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/hydrogen
|
|
%{_includedir}/hydrogen/*
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%changelog
|
|
* 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
|