From: Eric S. Raymond Date: Mon, 29 Dec 2003 19:53:07 +0000 (+0000) Subject: RPM packaging fixes. X-Git-Tag: 2.2~2 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=3f5740bf5743a0df2e467a997d41d0eeaaafcdab;p=tetrix.git RPM packaging fixes. --- diff --git a/Makefile b/Makefile index 37c21a1..a81475c 100644 --- a/Makefile +++ b/Makefile @@ -6,16 +6,13 @@ # - this will create a high score file in /usr/tmp, so doing it again # later on will erase high scores for the machine. -# Don't forget to change the spec file when you bump the version number. -VERS=2.1 +VERS=$(shell sed MANIFEST @@ -49,13 +46,3 @@ tetrix-$(VERS).tar.gz: $(SOURCES) tetrix.6 @(cd ..; rm tetrix-$(VERS)) dist: tetrix-$(VERS).tar.gz - -RPMROOT=/usr/src/redhat -RPM = rpm -RPMFLAGS = -ba -rpm: dist - cp tetrix-$(VERS).tar.gz $(RPMROOT)/SOURCES; - cp tetrix.spec $(RPMROOT)/SPECS - cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) tetrix.spec - cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/tetrix-$(VERS)*.rpm . - cp $(RPMROOT)/SRPMS/tetrix-$(VERS)*.src.rpm .