jjazzlab-bin/jjazzlab-bin.spec

103 lines
3.3 KiB
RPMSpec
Raw Permalink Normal View History

Name: jjazzlab-bin
Version: 3.2.1
Release: 2mamba
Summary: A Midi-based framework dedicated to backing tracks generation
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.jjazzlab.com
Source: https://www.jjazzlab.com/pkg/JJazzLab-%{version}-Linux.zip
Source1: jjazzlab.desktop
Source2: jjazzlab.png
Source3: https://archive.org/download/jjazz-lab-sound-font/JJazzLab-SoundFont.sf2
Source4: https://www.jjazzlab.com/docs/JJazzLab-Realbook.zip
Source5: https://www.jjazzlab.com/docs/jjazzlab_user_styles.zip
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: java-runtime
Recommends: qsynth
%description
A Midi-based framework dedicated to backing tracks generation.
%package -n soundfont-jjazzlab
Group: System/Multimedia
Summary: A soundfont collection optimized for JJazzLab
Provides: soundfont
Supplements: jjazzlab-bin
%description -n soundfont-jjazzlab
Soundfont based on SGM-v2.01-NicePianosGuitarsBass.sf2 from John Nebauer (https://sites.google.com/site/soundfonts4u/), optimized to work with the JJazzLab application.
%package realbook
Group: System/Multimedia
Summary: A collection of more than 2500 standard songs at the JJazzLab format
Supplements: jjazzlab-bin
%description realbook
A collection of more than 2500 standard songs at the JJazzLab format. They only contain the chord changes of the songs, not the melody. Youll find standard jazz/latin/pop standards such as the ones found in the Real Books.
#% debug_package
%prep
%setup -q -n JJazzLab-%{version}-Linux
# Use system JDK
rm -r jdk
sed 's/\(^jdkhome="jdk"$\)/#\1/' etc/jjazzlab.conf > etc/jjazzlab.conf
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{_datadir}/jjazzlab
cp -rp * %{buildroot}%{_datadir}/jjazzlab
install -d %{buildroot}%{_bindir}
ln -s ../share/jjazzlab/bin/jjazzlab %{buildroot}%{_bindir}/jjazzlab
install -d %{buildroot}%{_datadir}/applications
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/jjazzlab.desktop
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/jjazzlab.png
install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/soundfonts/JJazzLab-SoundFont.sf2
install -d %{buildroot}%{_datadir}/jjazzlab
cd %{buildroot}%{_datadir}/jjazzlab
unzip %{SOURCE4}
mv JJazzLab-Realbook realbook
unzip %{SOURCE5}
mv jjazzlab_user_styles styles
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/jjazzlab
%{_datadir}/applications/jjazzlab.desktop
%{_datadir}/pixmaps/jjazzlab.png
%dir %{_datadir}/jjazzlab
%exclude %{_datadir}/jjazzlab/realbook
%{_datadir}/jjazzlab/*
%files realbook
%defattr(-,root,root)
%dir %{_datadir}/jjazzlab/realbook
%{_datadir}/jjazzlab/realbook/*
%files -n soundfont-jjazzlab
%defattr(-,root,root)
%{_datadir}/soundfonts/JJazzLab-SoundFont.sf2
%changelog
* Sat Jul 08 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-2mamba
- add soundfont and realbook subpackages
* Sat Jul 08 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
- package created using the webbuild interface