Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPEC: put Slurm version in RPM release #52

Merged
merged 1 commit into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions autodist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ cd ..
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

make dist
SLURM_CONF=/dev/null DISTCHECK_CONFIGURE_FLAGS="CFLAGS='-I../../../../drmaa_utils -I../../..'" make distcheck
Expand Down
4 changes: 3 additions & 1 deletion slurm-drmaa.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
%global slurm_version %(printf "%s" $(rpm -q slurm-devel --qf "%{VERSION}" | cut -d. -f-2) 2>/dev/null)

Name: slurm-drmaa
Version: dev
Release: 1%{?dist}
Release: %{slurm_version}%{?dist}

Summary: DRMAA for Slurm
Group: Development/Libraries
Expand Down