From 404aca234d55a8d9ba7b6573b3c100c940b42fe8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Nov 2004 13:36:32 +0000 Subject: [PATCH] Add the README and spec files --- README | 14 ++++++++++++++ makefile | 4 ++-- sst.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 README create mode 100644 sst.spec diff --git a/README b/README new file mode 100644 index 0000000..f96a1c9 --- /dev/null +++ b/README @@ -0,0 +1,14 @@ + README for Super Star Trek + +Save the Federation from the invading Klingons! Visit exotic planets and +strip-mine them for dilithium! Encounter mysterious space thingies! +This is the classic Super Star Trek game from the days of slow teletypes, +reloaded. + +There is one binary, sst. On-line documentation goes to /usr/share/doc/sst. + +If you enjoy this, check out other ancient games in the Retrocomputing Museum +at . + + Eric S. Raymond + November 2004 diff --git a/makefile b/makefile index be24e45..a163b72 100644 --- a/makefile +++ b/makefile @@ -10,10 +10,10 @@ CFLAGS= -O -g -DSSTDOC='"/usr/share/doc/sst/sst.doc"' CFILES= sst.c finish.c reports.c setup.c linux.c moving.c battle.c events.c ai.c planets.c OFILES= $(CFILES:.c=.o) HFILES=sst.h -DOC = sst-doc.xml sst.xml TODO +DOCS = README sst-doc.xml sst.xml TODO # sst.doc and sst.6 are included so target system won't need xmlto -SOURCES= $(CFILES) $(HFILES) $(DOC) sst.doc sst.6 makehelp.py makefile sst.spec +SOURCES= $(CFILES) $(HFILES) $(DOCS) sst.doc sst.6 makehelp.py makefile sst.spec all: sst sst.doc diff --git a/sst.spec b/sst.spec new file mode 100644 index 0000000..8ec2ce3 --- /dev/null +++ b/sst.spec @@ -0,0 +1,43 @@ +Name: sst +Version: 2.0 +Release: 1 +URL: http://www.catb.org/~esr/sst/ +Source0: %{name}-%{version}.tar.gz +License: GPL +Group: Games +Summary: Sst (screen mode) +BuildRoot: %{_tmppath}/%{name}-root + +%description +Save the Federation from the invading Klingons! Visit exotic planets and +strip-mine them for dilithium! Encounter mysterious space thingies! +The classic Super Star Trek game from the days of slow teletypes, reloaded. + +%prep +%setup -q + +%build +make %{?_smp_mflags} + +%install +[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT" +mkdir -p "$RPM_BUILD_ROOT"%{_bindir} +mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man6/ +cp sst "$RPM_BUILD_ROOT"%{_bindir} +cp sst.6 "$RPM_BUILD_ROOT"%{_mandir}/man6/ +mkdir -p "$RPM_BUILD_ROOT"%{_defaultdocdir}/sst/ +cp sst.doc "$RPM_BUILD_ROOT"%{_defaultdocdir}/sst/ +cp sst-doc.html "$RPM_BUILD_ROOT"%{_defaultdocdir}/sst/index.html + +%clean +[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT" + +%files +%doc README COPYING +%defattr(-,root,root,-) +%{_mandir}/man6/sst.6* +%{_bindir}/sst +%{_defaultdocdir}/sst/sst.doc +%{_defaultdocdir}/sst/index.html + +%changelog -- 2.31.1