Skip to content

Commit

Permalink
Move the development commit id and other non-version stuff to the
Browse files Browse the repository at this point in the history
Release when generating the RPM spec file for distributions. Loosely
follows Fedora package versioning guidelines.
  • Loading branch information
natefoo committed Sep 13, 2018
1 parent a59b571 commit deca826
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ elif [ -f config.log ]; then
2>/dev/null`
fi

eval `grep ^PACKAGE_VERSION= configure | sed -e 's/-/_/g'`
sed -i -e "s/^\(Version:\s*\).*$/\1$PACKAGE_VERSION/" slurm-drmaa.spec
eval `grep ^PACKAGE_VERSION= configure`
PACKAGE_RELEASE=`echo ${PACKAGE_VERSION#*-} | sed -e 's/[.-]/_/g'`
sed -i -e "s/^\(Version:\s*\).*$/\1${PACKAGE_VERSION%%-*}/" slurm-drmaa.spec
if [ "${PACKAGE_VERSION}" != "${PACKAGE_RELEASE}" ]; then
# no dash in $PACKAGE_VERSION so this is not a dev/pre release
sed -i -e "s/^\(Release:\s*\).*/\11.${PACKAGE_RELEASE}%{?dist}/" slurm-drmaa.spec
fi

(cd drmaa_utils && run sh autogen.sh "$@")
run ./configure ${args}

0 comments on commit deca826

Please sign in to comment.