#
# Makefile for `Hunt the Wumpus' and `Superhack' games
#
-VERS=$(shell sed <wumpus.spec -n -e '/Version: \(.*\)/s//\1/p')
+VERS=1.5
all: wumpus superhack
wumpus.html: wumpus.xml
xmlto html-nochunks wumpus.xml
-SOURCES = README COPYING Makefile wumpus.c superhack.c wumpus.xml wumpus.spec
+SOURCES = README COPYING NEWS Makefile wumpus.c superhack.c wumpus.xml
install: wumpus.6
cp wumpus superhack /usr/bin/
release: wumpus-$(VERS).tar.gz wumpus.html
shipper version=$(VERS) | sh -e -x
+
+refresh: wumpus.html
+ shipper -N -w version=$(VERS) | sh -e -x
+++ /dev/null
-Summary: faithful transcription of the 1974 Atari Wumpus game
-Name: wumpus
-Version: 1.5
-Release: 1
-License: BSD
-Group: Games
-URL: http://www.catb.org/~esr/wumpus/
-Source0: %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-root
-#Destinations: freecode
-#HTML-Target: index.html
-
-%description
-WUMPUS is a bit of retrocomputing nostalgia. It is an *exact* clone, even
-down to the godawful user interface, of an ancient classic game. This version
-fixes two minor bugs in my original 1992 USENET posting of the source.
-Superhack is a structurally similar game with a different premise.
-
-%prep
-%setup -q
-
-%build
-make
-make wumpus.6
-
-%install
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-mkdir -p "$RPM_BUILD_ROOT"/usr/bin
-mkdir -p "$RPM_BUILD_ROOT"/usr/share/man/man6/
-cp wumpus superhack "$RPM_BUILD_ROOT"/usr/bin
-cp wumpus.6 "$RPM_BUILD_ROOT"/usr/share/man/man6/
-
-%clean
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-
-%files
-%defattr(-,root,root,-)
-%doc README
-%{_bindir}/wumpus
-%{_bindir}/superhack
-%{_mandir}/man6/wumpus.6*
-
-%changelog
-* Thu Jun 05 2014 Eric S. Raymond <esr@snark.thyrsus.com> 1.5
-- Fixed a minor bug in the superhack startlet check.
-
-* Thu Oct 21 2010 Eric S. Raymond <esr@snark.thyrsus.com> 1.4
-- Ported to modern C.
-- License changed to BSD.
-
-* Sun Dec 28 2003 Sean Reifschneider <jafo-rpms@tummy.com> 1.3
-- Changing the .spec file so that it installs under a build-root.
-- Changes so that the RPM can be built as a non-root user.
-
-* Sun Dec 28 2003 Eric S. Raymond <esr@snark.thyrsus.com>
-- Initial build.
-
-