From: Andrew McNab Date: Wed, 20 Jun 2007 13:52:51 +0000 (+0000) Subject: Sync X-Git-Tag: org-gridsite-core_R_1_5_2~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4a24f7926108c4f5ff4b38d950a6cf78d743457a;p=jra1mw.git Sync --- diff --git a/org.gridsite.core/src/make-gridsite-spec b/org.gridsite.core/src/make-gridsite-spec index ef102ae..5be89bf 100755 --- a/org.gridsite.core/src/make-gridsite-spec +++ b/org.gridsite.core/src/make-gridsite-spec @@ -31,7 +31,7 @@ cat <gridsite.spec Name: gridsite Version: ${PATCH_VERSION:-1.x.x} # This next piece of .spec/sed magic puts the build OS version in the release -Release: 1%(sed 's/^\([A-Z]\)[^ ]* \([A-Z]\)[^0-9]*\([0-9][^ ]*\).*/\1\2\3/g' /etc/redhat-release | sed 's/[^A-Z,a-z,0-9]//g') +Release: %(if [ "$RELEASE_VERSION" ] ; then echo $RELEASE_VERSION ; else sed 's/^\([A-Z]\)[^ ]* \([A-Z]\)[^0-9]*\([0-9][^ ]*\).*/1\1\2\3/g' /etc/redhat-release | sed 's/[^A-Z,a-z,0-9]//g' ; fi) Summary: GridSite License: Modified BSD Group: System Environment/Daemons