%global git_date 20240923 %global git_hash 9df69fe %global git_ver 1.19 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz %define debug_package %{nil} Name: open-adventure Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: A forward-port of the Crowther/Woods Adventure 2.5 from 1995, last version in the main line of Colossal Cave Adventure development written by the original authors. License: BSD URL: https://gitlab.com/esr/open-adventure.git Source0: %{url}/%{src_name} BuildRequires: python3-PyYAML BuildRequires: libedit-devel BuildRequires: make BuildRequires: gcc Requires: python3 %description %summary %prep %autosetup -n open-adventure %build make %install mkdir -p %{buildroot}%{_bindir} mv advent %{buildroot}%{_bindir} %files %{_bindir}/advent %changelog %autochangelog