diff --git a/linux-packages/packaging-scripts/create-linux-packages.sh b/linux-packages/packaging-scripts/create-linux-packages.sh index 812785b63..ebec99170 100755 --- a/linux-packages/packaging-scripts/create-linux-packages.sh +++ b/linux-packages/packaging-scripts/create-linux-packages.sh @@ -121,6 +121,7 @@ ANTIHANG_PID=$! echo "Creating .rpm package." set -ex +export EDITOR="sed -i -e '/Requires: placeholder/c%if 0%{?suse_version} >= 15000\nRequires: openssl-3\n%else\nRequires: openssl-libs\n%endif'" fpm --version "$VERSION" \ --name "$PACKAGE_NAME" \ --input-type dir \ diff --git a/linux-packages/packaging-scripts/package.sh b/linux-packages/packaging-scripts/package.sh index 1e13407d8..fc0c32500 100644 --- a/linux-packages/packaging-scripts/package.sh +++ b/linux-packages/packaging-scripts/package.sh @@ -52,7 +52,8 @@ FPM_DEB_OPTS=( --architecture "$DEB_PACKAGE_ARCHITECTURE" ) FPM_RPM_OPTS=( - --depends 'openssl-libs' + --depends 'placeholder' + -e --architecture "$RPM_PACKAGE_ARCHITECTURE" ) diff --git a/linux-packages/packaging-scripts/unsigned/create-linux-packages.sh b/linux-packages/packaging-scripts/unsigned/create-linux-packages.sh index 38b7ee907..02e9b9c18 100644 --- a/linux-packages/packaging-scripts/unsigned/create-linux-packages.sh +++ b/linux-packages/packaging-scripts/unsigned/create-linux-packages.sh @@ -82,6 +82,9 @@ set +ex echo "Creating .rpm package." set -ex + +export EDITOR="sed -i -e '/Requires: placeholder/c%if 0%{?suse_version} >= 15000\nRequires: openssl-3\n%else\nRequires: openssl-libs\n%endif'" + fpm --version "$VERSION" \ --name "$PACKAGE_NAME" \ --input-type dir \ diff --git a/linux-packages/packaging-scripts/unsigned/package.sh b/linux-packages/packaging-scripts/unsigned/package.sh index 1e13407d8..fc0c32500 100644 --- a/linux-packages/packaging-scripts/unsigned/package.sh +++ b/linux-packages/packaging-scripts/unsigned/package.sh @@ -52,7 +52,8 @@ FPM_DEB_OPTS=( --architecture "$DEB_PACKAGE_ARCHITECTURE" ) FPM_RPM_OPTS=( - --depends 'openssl-libs' + --depends 'placeholder' + -e --architecture "$RPM_PACKAGE_ARCHITECTURE" )