# Global variables for github repository %global commit0 a9d358d77400134bf0b4dd624d32930aaa78250e %global gittag0 v0.2.0 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: sfizz Version: 0.2.0 Release: 1%{?dist} License: BSD-2-Clause Group: Productivity/Multimedia/Sound/Players Summary: Sampler plugin and library for SFZ instruments Url: https://github.com/sfztools/sfizz Source: sfizz-0.2.0.tar.gz # git clone https://github.com/sfztools/sfizz sfizz-0.2.0 # cd sfizz-0.2.0 # git checkout v0.2.0 # git submodule init # git submodule update # find . -name .git -exec rm -rf {} \; # cd .. # tar cvfz sfizz-0.2.0.tar.gz sfizz-0.2.0/* Requires: libsndfile Requires: jack-audio-connection-kit BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc gcc-c++ BuildRequires: cmake BuildRequires: libatomic BuildRequires: libsndfile-devel BuildRequires: jack-audio-connection-kit-devel %description Sfizz is a musical sampler, available as a LV2 plugin for musicians, and a library for developers. %package devel Summary: Header files for Sfizz Requires: %{name} = %{version}-%{release} %description devel Header files for the Sfizz library. %prep %setup -qn %{name}-%{version} %build mkdir build cd build %cmake -DLV2PLUGIN_INSTALL_DIR=%{_libdir}/lv2 .. make VERBOSE=1 %{?_smp_mflags} %install cd build make DESTDIR=%{buildroot} install %files %doc README.md %{_bindir}/sfizz_jack %{_libdir}/libsfizz.so.* %dir %{_libdir}/lv2 %dir %{_libdir}/lv2/sfizz.lv2 %{_libdir}/lv2/sfizz.lv2/* %files devel %{_libdir}/libsfizz.so %{_includedir}/sfizz.h %{_includedir}/sfizz.hpp %dir %{_libdir}/pkgconfig %{_libdir}/pkgconfig/sfizz.pc %changelog * Sun Feb 2 2020 Yann Collette - 0.2.0-1 - update for Fedora * Fri Jan 31 2020 Jean Pierre Cimalando - 0.2.0-1 - initial release of the spec file