#!/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} <