%global git_date 20251206 %global git_hash dc6b7a7 %global git_ver 2.55 %global rel 3 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: frotz Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Interactive fiction interpreter for Z-Machine (Infocom) games License: GPL-2.0-or-later URL: https://gitlab.com/DavidGriffith/frotz Source0: %{url}/%{src_name} BuildRequires: gcc BuildRequires: pkgconfig(ao) BuildRequires: pkgconfig(libmodplug) BuildRequires: pkgconfig(ncursesw) BuildRequires: pkgconfig(samplerate) BuildRequires: pkgconfig(sndfile) BuildRequires: pkgconfig(vorbisfile) BuildRequires: make %global _description\ Frotz is an interpreter for Infocom games and other Z-machine games. It\ complies with standard 1.0 of Graham Nelson's specification.\ \ Free Z-machine game file downloads, as well as more information about\ Infocom, Z-machine games, and interactive fiction can be found at the\ Interactive Fiction Archive, http://mirror.ifarchive.org/. %description %_description %prep %autosetup -p1 -n %{name} %build %make_build %make_build dumb %install %make_install PREFIX=%{_prefix} install %make_install PREFIX=%{_prefix} install_dumb # Make a version of the config file with all settings commented out, # to install in /etc sed -Ee '/(^#|^$)/! s/^/#/' < doc/frotz.conf-big > frotz.conf install -m0644 -D frotz.conf -t %{buildroot}%{_sysconfdir} %files %doc AUTHORS ChangeLog DUMB HOW_TO_PLAY README %license COPYING %doc doc/frotz.conf* %{_bindir}/frotz %{_bindir}/dfrotz %{_mandir}/man6/frotz.6* %{_mandir}/man6/dfrotz.6* %config(noreplace) %{_sysconfdir}/frotz.conf %changelog %autochangelog