@ENDIF
@IF [ -n "$M_dnsdist$M_all" ]
+
+# remove --enablerepo=epel-testing when new re2 lands
+RUN touch /var/lib/rpm/* && if $(grep -q 'release 9' /etc/redhat-release); then \
+ dnf install -y re2 re2-devel --enablerepo=epel-testing; \
+ fi
+
RUN touch /var/lib/rpm/* && mkdir /libh2o && cd /libh2o && \
yum install -y curl openssl-devel cmake && \
curl -L https://github.com/h2o/h2o/archive/v2.2.6.tar.gz | tar xz && \
--- /dev/null
+# First do the source builds
+@INCLUDE Dockerfile.target.sdist
+
+# This defines the distribution base layer
+# Put only the bare minimum of common commands here, without dev tools
+@IF [ ${BUILDER_TARGET} = oraclelinux-9 -o ${BUILDER_TARGET} = el-9 ]
+FROM oraclelinux:9 as dist-base
+@ENDIF
+@IF [ ${BUILDER_TARGET} = oraclelinux-9-amd64 -o ${BUILDER_TARGET} = el-9-amd64 ]
+FROM amd64/oraclelinux:9 as dist-base
+@ENDIF
+@IF [ ${BUILDER_TARGET} = oraclelinux-9-arm64 -o ${BUILDER_TARGET} = el-9-arm64 ]
+FROM arm64v8/oraclelinux:9 as dist-base
+@ENDIF
+
+ARG BUILDER_CACHE_BUSTER=
+RUN touch /var/lib/rpm/* && dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
+ dnf install -y 'dnf-command(config-manager)' yum && \
+ dnf config-manager --set-enabled ol9_codeready_builder
+
+# Do the actual rpm build
+@INCLUDE Dockerfile.rpmbuild
+
+# Do a test install and verify
+# Can be skipped with skiptests=1 in the environment
+# @EXEC [ "$skiptests" = "" ] && include Dockerfile.rpmtest
BuildRequires: systemd-units
BuildRequires: systemd-devel
+BuildRequires: krb5-devel
BuildRequires: p11-kit-devel
BuildRequires: libcurl-devel
%if 0%{?rhel} < 8
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
BuildRequires: yaml-cpp-devel
+%if 0%{?rhel} < 9
BuildRequires: geoip-devel
+%endif
BuildRequires: libmaxminddb-devel
%global backends %{backends} geoip