From 3efa0b3de81fa968c21c3fd000c17189c2b6e874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CSae126V=E2=80=9D?= <“saitejav2021@gmail.com”> Date: Fri, 6 Dec 2024 15:44:59 +0000 Subject: [PATCH] Update to improve the naming convention for rpm and deb builds --- scripts/ssm-build.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/ssm-build.sh b/scripts/ssm-build.sh index cf38c4a9..b496b873 100755 --- a/scripts/ssm-build.sh +++ b/scripts/ssm-build.sh @@ -110,12 +110,13 @@ rm -f "$TAR_FILE" # Get supplied Python version PY_VERSION="$(basename "$PYTHON_ROOT_DIR")" PY_NUM=${PY_VERSION#python} +PY_NUM_FOR_BUILD_NAMING=${PY_NUM/./} OS_EXTENSION="$(uname -r | grep -o 'el[7-9]' || echo '_all')" # Universal FPM Call FPM_CORE="fpm -s python \ -t $PACK_TYPE \ - -n apel-ssm \ + -n apel-ssm-py${PY_NUM_FOR_BUILD_NAMING} \ -v $VERSION \ --iteration $ITERATION \ -m \"Apel Administrators \" \ @@ -165,7 +166,7 @@ echo "== Generating pleaserun package ==" # When installed, use pleaserun to perform system specific service setup fpm -s pleaserun -t "$PACK_TYPE" \ --n apel-ssm-service \ +-n apel-ssm-service-py"${PY_NUM_FOR_BUILD_NAMING}" \ -v "$VERSION" \ --iteration "$ITERATION" \ --"$PACK_TYPE"-dist "$OS_EXTENSION" \ @@ -173,7 +174,7 @@ fpm -s pleaserun -t "$PACK_TYPE" \ --description "Secure Stomp Messenger (SSM) Service Daemon files." \ --architecture all \ --no-auto-depends \ ---depends apel-ssm \ +--depends apel-ssm-py"${PY_NUM_FOR_BUILD_NAMING}" \ --depends python3-daemon \ --depends python3-dirq \ --package "$BUILD_DIR" \ @@ -187,8 +188,8 @@ then TAG="$VERSION-$ITERATION" DEBDIR="$(dirname "$BUILD_DIR")" - lintian "$DEBDIR"/apel-ssm_"${TAG}"_all.deb - lintian "$DEBDIR"/apel-ssm-service_"${TAG}"_all.deb + lintian "$DEBDIR"/apel-ssm-py"${PY_NUM_FOR_BUILD_NAMING}"_"${TAG}"_all.deb + lintian "$DEBDIR"/apel-ssm-service-py"${PY_NUM_FOR_BUILD_NAMING}"_"${TAG}"_all.deb else # Check for errors in SPEC and built packages # For instance; Given $(dirname /root/rpmb/rpmbuild/source) will output "/root/rpmb/rpmbuild".