%global commit 06922280e79cf19956654413d40e06448a738f23 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20210723 %bcond_with snapshot %if %{with snapshot} %global dist .%{date}git%{shortcommit}%{?dist} %endif %global binname SS_Backup_RAM_Parser Name: ss-save-parser Version: 0.9.9 Release: 1%{?dist} Summary: Parser for Sega Saturn images of various save media License: GPL-2.0-only URL: https://github.com/hitomi2500/%{name} %if %{with snapshot} Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: gcc-g++ BuildRequires: make BuildRequires: desktop-file-utils BuildRequires: ImageMagick BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Widgets) %description This is a QT-based parser for Sega Saturn RAM Backup (aka Power Memory), Internal RAM, and possibly other media images. It can load/save/show image's content and extract/insert/delete single saves in a customizable way. %prep %autosetup %{?with_snapshot:-n %{name}-%{commit}} -p1 sed 's/\r//' -i README.md cat > %{binname}.desktop < - 0.9.9-1 - Initial spec