diff --git a/scripts/packaging/build-rpm-local.sh b/scripts/packaging/build-rpm-local.sh index b676ee5003a3b5f3b026c2153608f8e6657c4dc8..022ded1915208abf2920abc36ac98316f8d0ce37 100755 --- a/scripts/packaging/build-rpm-local.sh +++ b/scripts/packaging/build-rpm-local.sh @@ -16,7 +16,8 @@ gitlab_release_no_v= case "$RELEASETYPE" in ReleaseCandidate | TestReleaseCandidate | Release | TestRelease) - _VERSION=$VERSION + # rpm versions are more strict than debian versions + _VERSION=$(echo "${VERSION}" | tr -d '~' | tr '-' '_') _EPOCH="%{nil}" _CHANGELOG="New Release $VERSION / $CI_COMMIT_SHORT_SHA" ;;