From: Eric S. Raymond Date: Mon, 21 Dec 1998 03:54:24 +0000 (+0000) Subject: We can do RPMs now. X-Git-Tag: 2.3~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=955f357b0659f765ecc77a79973e529b9311f074;p=bs.git We can do RPMs now. --- diff --git a/Makefile b/Makefile index ff05fb8..743c626 100644 --- 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 2d948d8..c276141 100644 --- 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