]> thyrsus.com Git - bs.git/commitdiff
We can do RPMs now.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 21 Dec 1998 03:54:24 +0000 (03:54 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 21 Dec 1998 03:54:24 +0000 (03:54 +0000)
Makefile
bs.spec

index ff05fb8357349fd6e061ec64a535fc1a4a3f8545..743c626e840d324481888fa6f8df947afa4b8909 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,12 +27,21 @@ SOURCES = READ.ME bs.c Makefile bs.6 bs.lsm bs.spec
 bs.shar:
        shar $(SOURCES) >bs.shar
 
-bs-$(V).tar.gz:
-       tar --name-prefix='bs-$(V)/' -czf bs-$(V).tar.gz $(SOURCES)
+bs-$(V).tar.gz: $(SOURCES)
+       @ls $(SOURCES) | sed s:^:bs-$(V)/: >MANIFEST
+       @(cd ..; ln -s bs bs-$(V))
+       (cd ..; tar -czvf bs/bs-$(V).tar.gz `cat bs/MANIFEST`)
+       @(cd ..; rm bs-$(V))
+
+dist: bs-$(V).tar.gz
+
+RPMROOT=/usr/src/redhat
+RPM = rpm
+RPMFLAGS = -ba
+rpm: dist
+       cp bs-$(V).tar.gz $(RPMROOT)/SOURCES;
+       cp bs.spec $(RPMROOT)/SPECS
+       cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) bs.spec 
+       cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/bs-$(V)*.rpm .
+       cp $(RPMROOT)/SRPMS/bs-$(V)*.src.rpm .
 
-tgz: bs-$(V).tar.gz
-
-rpm: bs.tar.gz
-       cp bs.tar.gz /usr/src/SOURCES/bs-$(V).tar.gz
-       cp bs.spec /usr/src/SPECS/bs-$(V)-1.spec
-       rpm -ba bs-$(V)-1.spec
diff --git a/bs.spec b/bs.spec
index 2d948d8586e4fba720507f2c8036eb328dd0d0ef..c2761418fc04b6148d0ad49b350c200deffd2606 100644 (file)
--- a/bs.spec
+++ b/bs.spec
@@ -1,10 +1,14 @@
-Description: Battleships against the computer (text mode)
 Name: bs
-Version: 2.1
+Summary: Battleships against the computer (character-cell graphics)
+Version: 2.2
 Release: 1
-Source: locke.ccil.org:/pub/esr/bs-2.1.tar.gz
+Source: locke.ccil.org:/pub/esr/bs-2.2.tar.gz
 Copyright: BSD-like
 Group: Games
+%description
+The classic game of Battleships agains the computer.
+Uses character-cell graphics with a visual point-and-shoot interface.
+If you're using an xterm under Linux the mouse will work.
 
 %prep
 %setup