%global commit0 1ed408ab51709e294034be7b1662288da840ff7f %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global bumpver 1 Name: nile Version: 1.2.0 Release: %{bumpver}.git^%{shortcommit0} Summary: Unofficial Amazon Games client License: GPL-3.0-or-later URL: https://github.com/imLinguin/nile Source: %{url}/archive/%{commit0}.tar.gz Patch: pyproject.patch BuildArch: noarch BuildRequires: python3-devel %description Nile aims to be CLI and GUI tool for managing and playing games from Amazon. %prep %autosetup -n %{name}-%{commit0} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{name} %files -f %{pyproject_files} %{_bindir}/%{name} %changelog %autochangelog