summaryrefslogtreecommitdiffstats
path: root/Makefile.Release
diff options
context:
space:
mode:
authordenise.eckstein <denise.eckstein>2007-09-12 20:23:46 +0000
committerdenise.eckstein <denise.eckstein>2007-09-12 20:23:46 +0000
commit502a619c1ae46135012e3fc8cc0c97ca49ec10cb (patch)
treea7dd10790c1c2b686d4fb2b2ee09d48968e77c1b /Makefile.Release
parente5d0f9b68fbff552dbb703ec5902b5e74aeb27c3 (diff)
downloadtog-pegasus-502a619c1ae46135012e3fc8cc0c97ca49ec10cb.zip
tog-pegasus-502a619c1ae46135012e3fc8cc0c97ca49ec10cb.tar.gz
tog-pegasus-502a619c1ae46135012e3fc8cc0c97ca49ec10cb.tar.xz
BUG#:6932
TITLE: RPM package version needs to be updated. DESCRIPTION: Updated package version (aka RELEASE tag) to 2. To simplify updating the RELEASE tag, this change introduces a new environment variable PEGASUS_PACKAGE_VERSION.
Diffstat (limited to 'Makefile.Release')
-rw-r--r--Makefile.Release5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.Release b/Makefile.Release
index 29db85f..de15bf1 100644
--- a/Makefile.Release
+++ b/Makefile.Release
@@ -991,9 +991,12 @@ _append_OpenPegasusLicenseToSpecFile: FORCE
@$(ECHO-E) "" >> $(PEGASUS_RPM_SPEC_FILE_PATH)
_append_PreambleToSpecFile: FORCE
+ @$(ECHO-E) "%define packageVersion $(PEGASUS_PACKAGE_VERSION)" \
+ >> $(PEGASUS_RPM_SPEC_FILE_PATH)
@$(ECHO-E) "Version: $(PEGASUS_PRODUCT_VERSION)" \
>> $(PEGASUS_RPM_SPEC_FILE_PATH)
- @$(ECHO-E) "Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}}" \
+ @$(ECHO-E) "Release:"\
+ "%{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}}" \
>> $(PEGASUS_RPM_SPEC_FILE_PATH)
@$(ECHO-E) "Epoch: 1" >> $(PEGASUS_RPM_SPEC_FILE_PATH)
@$(ECHO-E) "" >> $(PEGASUS_RPM_SPEC_FILE_PATH)