%global git_date 20251127 %global git_hash e584f5f %global git_ver 0.1.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: zork-common Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: The Zork Trilogy Common Files License: MIT URL: https://github.com/Infocom-Dungeon/zork-common Source: %{url}/%{src_name} BuildArch: noarch %description %summary %prep %autosetup -n %{name} %build %install mkdir -p %{buildroot}%{_datadir}/zork/zork-common/ install -p -D -m644 *.zil %{buildroot}%{_datadir}/zork/zork-common/ %files %license LICENSE %{_datadir}/zork/zork-common/g*.zil %changelog %autochangelog