From fcb53a5ce55ccef6ea0038a22fd09f515be2f6c8 Mon Sep 17 00:00:00 2001
From: François Andriot <albator78@libertysurf.fr>
Date: Mon, 1 Nov 2021 10:19:53 +0100
Subject: RPM: update build scripts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: François Andriot <albator78@libertysurf.fr>
---
 redhat/Makefile         | 2 +-
 redhat/build/rpmdist.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/redhat/Makefile b/redhat/Makefile
index f974b02cf..bbf693b3c 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -647,7 +647,7 @@ git:
 	cd "$(TDE_GIT_DIR)" && ./scripts/switch_all_submodules_to_head_and_clean anonymous
 
 tarballs:
-	cd "$(TDE_GIT_DIR)" && COMPRESS=pigz SUFFIX=0 ./scripts/create_all_tarballs
+	cd "$(TDE_GIT_DIR)" && COMPRESS=pigz SUFFIX=0 TARBALLS_BASE="${HOME}/tde/tarballs/${TDE_VERSION}" ./scripts/create_all_tarballs
 
 
 # External packages
diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh
index f890bfb2e..7f06af83e 100755
--- a/redhat/build/rpmdist.sh
+++ b/redhat/build/rpmdist.sh
@@ -24,7 +24,7 @@ case $a in
   ;;
   # CentOS release 5.7 (Final)
   # CentOS Linux release 6.0 (Final)
-  CentOS*)
+  CentOS*|Rocky*)
     if [ $c = "release" ]; then
       RHEL="${d%%.*}"; DIST=".el${RHEL}"
     else
-- 
cgit v1.2.3

