# Global variables for github repository %global commit0 a8c9a70a81cc076abea2ed6c60437edb7aadca59 %global gittag0 v1.3.0 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: opn2bankeditor Version: 1.3.0 Release: 1%{?dist} Summary: A small cross-platform editor of the OPN2 FM banks of different formats URL: https://github.com/Wohlstand/OPN2BankEditor Group: Applications/Multimedia License: GPLv3 # git clone https://github.com/Wohlstand/OPN2BankEditor # git checkout v1.3 # git submodule init # git submodule update # find . -name .git -exec rm -rf {} \; # cd .. # tar cvfz OPN2BankEditor.tar.gz OPN2BankEditor/* # rm -rf OPN2BankEditor Source0: OPN2BankEditor.tar.gz BuildRequires: gcc gcc-c++ BuildRequires: jack-audio-connection-kit-devel BuildRequires: alsa-lib-devel BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: qt5-qtbase-devel BuildRequires: qt5-linguist BuildRequires: qwt-devel %description A small cross-platform editor of the OPN2 FM banks of different formats %prep %setup -qn OPN2BankEditor sed -i -e "/Categories/d" src/resources/opn2_bank_editor.desktop %build mkdir -p build cd build %cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} \ -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \ .. %make_build VERBOSE=1 %install cd build %make_install desktop-file-install --vendor '' \ --add-category=Midi \ --add-category=Audio \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/opn2_bank_editor.desktop %post touch --no-create %{_datadir}/mime/packages &>/dev/null || : update-desktop-database &> /dev/null || : %postun update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then update-mime-database %{_datadir}/mime &> /dev/null || : fi %posttrans /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %files %doc LICENSE license.txt README.md changelog.txt %{_bindir}/opn2_bank_editor %{_datadir}/applications/* %{_datadir}/icons/* %{_datadir}/opn2_bank_editor/* %changelog * Tue Jun 2 2020 Yann Collette - 1.3.0-1 - initial release of the spec file