%global gittag v%{version} Name: pt2-clone Version: 1.49 Release: 1%{?dist} Summary: ProTracker 2 clone License: BSD URL: https://16-bits.org/pt2.php Source0: https://github.com/8bitbubsy/%{name}/archive/%{gittag}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: SDL2-devel BuildRequires: desktop-file-utils %description ProTracker 2 clone A highly accurate clone of the classic ProTracker 2.3D software for Amiga with additional audio filters and audio mixer improvements to make it sound close to a real Amiga computer. %prep %autosetup %build %cmake -G Ninja %cmake_build %install %cmake_install mkdir -p $RPM_BUILD_ROOT/usr/share/applications $RPM_BUILD_ROOT/usr/share/pixmaps sed "s/Icon=.*/Icon=%{name}/" "release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" >$RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop cp "release/other/Freedesktop.org Resources/ProTracker 2 clone.png" $RPM_BUILD_ROOT/usr/share/pixmaps/%{name}.png %files %license LICENSE %{_bindir}/pt2-clone %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %autochangelog