Require Go 1.20 when building for RedHat based distros

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-lusitaniae-apache_exporter?expand=0&rev=35
This commit is contained in:
Witek Bedyk 2024-08-26 08:47:11 +00:00 committed by Git OBS Bridge
parent 29b66bb847
commit 2d6973b2bc

View File

@ -59,7 +59,7 @@ Source3: apparmor-usr.bin.%{targetname}
BuildRequires: fdupes
BuildRequires: golang-github-prometheus-promu
%if 0%{?rhel}
BuildRequires: golang >= 1.18
BuildRequires: golang >= 1.20
Requires(pre): shadow-utils
%else
BuildRequires: golang(API) >= 1.20