From c4586d42a2e0cf5b6e3ca7fca6a883482476ea5d Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 1 Mar 2023 14:34:39 -0500 Subject: [PATCH] template: Add support for RHEL default version Signed-off-by: Stephen Gallagher --- nodejs-sources.sh | 5 +++++ nodejs20.spec | 3 ++- packaging/nodejs.spec.j2 | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/nodejs-sources.sh b/nodejs-sources.sh index 659251a..7623e62 100755 --- a/nodejs-sources.sh +++ b/nodejs-sources.sh @@ -137,6 +137,10 @@ fi FEDORA_DEFAULT_RELEASE_LOW=$((NODE_PKG_MAJOR + 19)) FEDORA_DEFAULT_RELEASE_HIGH=$((NODE_PKG_MAJOR + 20)) +if [[ $((NODE_PKG_MAJOR)) -eq 20 ]] + then RHEL_DEFAULT_RELEASE=" | 0%{?rhel} == 10" +fi + rm -rf node-v${version}.tar.gz \ node-v${version}-stripped.tar.gz \ node-v${version}/ \ @@ -301,6 +305,7 @@ IFS='' read -r -d '' template_json <