From e892d97bae85624a418b67bdba8fd817b8b39379 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 5 Mar 2023 22:32:39 +0100 Subject: [PATCH] first commit --- rebuild_src_rpm.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 rebuild_src_rpm.sh diff --git a/rebuild_src_rpm.sh b/rebuild_src_rpm.sh new file mode 100755 index 0000000..9f0758b --- /dev/null +++ b/rebuild_src_rpm.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash + +ABSDIR="$( dirname "$(readlink -f -- "$0")" )" +cd ${ABSDIR} + +type -P docker >/dev/null && DOCKER=$(which docker) +type -P podman >/dev/null && DOCKER=$(which podman) + +ICINGA2_VERSION=2.13.7 +ICINGA2_SPECSOURCE='https://git.icinga.com/packaging/rpm-icinga2/-/raw/master/icinga2.spec' +ICINGA_SELINUX_COMMON_SOURCE='https://packages.icinga.com/fedora/36/release/src/icinga-selinux-common/icinga-selinux-common-1.0.0-1.fc36.icinga.src.rpm' + +ARCH=$(${DOCKER} run --rm docker.io/library/rockylinux:8 uname -i) + +mkdir /tmp/dockerrpmbuild-$$ +for rocky_version in 8 9; do + ${DOCKER} run -i --rm -v /tmp/dockerrpmbuild-$$:/out:Z docker.io/library/rockylinux:${rocky_version} <