Quick fix to update the release version number in the RPM spec file.
authorrsiddall <rsiddall>
Wed, 2 Apr 2008 16:57:57 +0000 (16:57 +0000)
committerrsiddall <rsiddall>
Wed, 2 Apr 2008 16:57:57 +0000 (16:57 +0000)
This leaves the spec file unusable for CVS builds.

Makefile

index cb2a320..5860b5a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -105,6 +105,8 @@ FREESIDE_URL = "http://localhost/freeside/"
 #for now, same db as specified in DATASOURCE... eventually, otherwise?
 RT_DB_DATABASE = freeside
 
+RPM_SPECFILE = install/rpm/freeside.spec
+
 #---
 
 
@@ -348,6 +350,11 @@ clean:
 #release: upload-docs
 release:
        cd /home/ivan/freeside
+
+       # Update the RPM specfile
+       perl -p -i -e "s/\d+[^\}]+/${VERSION}/ if /%define\s+version\s+(\d+[^\}]+)\}/;" ${RPM_SPECFILE}
+       cvs commit -m "Updated for ${VERSION}" ${RPM_SPECFILE}
+
        #cvs tag ${TAG}
        cvs tag -F ${TAG}