Add the README and spec files
authorEric S. Raymond <esr@thyrsus.com>
Wed, 3 Nov 2004 13:36:32 +0000 (13:36 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 3 Nov 2004 13:36:32 +0000 (13:36 +0000)
README [new file with mode: 0644]
makefile
sst.spec [new file with mode: 0644]

diff --git a/README b/README
new file mode 100644 (file)
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 <http://www.catb.orgg/retro/>.
+
+                                                     Eric S. Raymond
+                                                     November 2004
index be24e453ff82e6c87bc4a491d6017e5ea9ca9fbd..a163b72d726ac3784ae675fe5c991a66089e3eb5 100644 (file)
--- 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 (file)
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