%global debug_package %{nil} %global git_date 20251128 %global git_hash 787d20a %global git_ver 63 %global rel 2 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz %global alt_name zork2 %global common_dir %{_datadir}/zork/zork-common/ Name: zork-2 Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Zork II: The Wizard of Frobozz License: MIT URL: https://github.com/Infocom-Dungeon/zork-2 Source0: %{url}/%{src_name} Source1: run-%{name} BuildRequires: zilf BuildRequires: libicu BuildRequires: zork-common Requires: frotz Requires: bash %description %summary %prep %autosetup -n %{name} cp -vr %{common_dir} .. %build zilf %{alt_name}.zil zapf %{alt_name}.zap %install mkdir -pv %{buildroot}%{_datadir}/zork/%{name}/ mkdir -pv %{buildroot}%{_bindir}/ install -p -D -m644 %{alt_name}.z3 %{buildroot}%{_datadir}/zork/%{name}/ install -p -D -m755 %{SOURCE1} %{buildroot}%{_bindir}/ %files %license LICENSE %{_datadir}/zork/%{name}/%{alt_name}.z3 %{_bindir}/run-%{name} %changelog %autochangelog