Fix gridsite RPM version (age and distribution name).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 20 Feb 2012 17:01:55 +0000 (17:01 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 20 Feb 2012 17:01:55 +0000 (17:01 +0000)
org.glite.lb/configure
org.gridsite.core/src/Makefile
org.gridsite.core/src/make-gridsite-spec

index 3377a05..eff87cc 100755 (executable)
@@ -1559,12 +1559,12 @@ sub mode_etics {
 
                        if ($project ne 'glite') {
                                # don't evaluate pkg-config calls to get them into source package
-                               $flags = 'RELEASE_VERSION=${age}.${platformFamily}
+                               $flags = 'RELEASE_VERSION=${age}
        GSOAPDIR=\`pkg-config gsoap --variable=prefix\`
        OPENSSL_GLOBUS_FLAGS=\`pkg-config globus-openssl --cflags\`
        OPENSSL_GLOBUS_LIBS=\`pkg-config globus-openssl --libs\`';
                        } else {
-                               $flags = 'RELEASE_VERSION=${age}.${platformFamily}
+                               $flags = 'RELEASE_VERSION=${age}
        GSOAPDIR=${gsoap.location}
        OPENSSL_GLOBUS_FLAGS=-I${globus.location}/include/${globus.dbg.nothr.flavor}
        OPENSSL_GLOBUS_LIBS=-L${globus.location}/${libdir}
@@ -1603,7 +1603,7 @@ sub mode_etics {
        MINOR_VERSION=1.5
        PATCH_VERSION=1.5.0
        VERSION=\\\$(PATCH_VERSION)
-       RELEASE_VERSION=\${age}.\${platformFamily}
+       RELEASE_VERSION=\${age}
        GSOAPDIR=\\`pkg-config gsoap --variable=prefix\\`
        OPENSSL_GLOBUS_FLAGS=\\`pkg-config globus-openssl --cflags\\`
        OPENSSL_GLOBUS_LIBS=\\`pkg-config globus-openssl --libs\\`
index 824bb28..f5eb066 100644 (file)
@@ -565,6 +565,7 @@ htcp-bin: htcp
 rpm: dist
        export PATCH_VERSION=$(PATCH_VERSION) ; \
         export MINOR_VERSION=$(MINOR_VERSION) ; \
+        export RELEASE_VERSION=$(RELEASE_VERSION) && \
         export project=$(project); \
         ./make-gridsite-spec
        rm -Rf $(MYRPMDIR)/BUILDROOT $(MYRPMDIR)/BUILD
index 1269378..14694c6 100755 (executable)
@@ -44,7 +44,7 @@ cat <<EOF >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: %(if [ "$RELEASE_VERSION" ] ; then echo $RELEASE_VERSION ; else sed 's/^\([A-Z,a-z]\)[^ ]* \([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)
+Release: %(if [ "$RELEASE_VERSION" ] ; then echo $RELEASE_VERSION ; else echo '1' ; fi)%{?dist}
 Summary: GridSite
 License: Modified BSD
 Group: System Environment/Daemons