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}
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\\`
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
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