diff --git a/golang-github-prometheus-promu.changes b/golang-github-prometheus-promu.changes index dd01c2c..80f26f3 100644 --- a/golang-github-prometheus-promu.changes +++ b/golang-github-prometheus-promu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 1 13:56:36 UTC 2022 - Stefan Bluhm + +- Adapted for Enterprise Linux build. + ------------------------------------------------------------------- Thu Mar 03 21:07:04 UTC 2022 - ecsos@opensuse.org diff --git a/golang-github-prometheus-promu.spec b/golang-github-prometheus-promu.spec index d6856ce..bf0a472 100644 --- a/golang-github-prometheus-promu.spec +++ b/golang-github-prometheus-promu.spec @@ -15,6 +15,10 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%if 0%{?rhel} +# Fix ERROR: No build ID note found in +%undefine _missing_build_ids_terminate_build +%endif %{go_nostrip} @@ -28,7 +32,11 @@ URL: https://github.com/prometheus/promu Source: promu-%{version}.tar.gz Source1: vendor.tar.gz BuildRequires: golang-packaging +%if 0%{?rhel} +BuildRequires: golang >= 1.15 +%else BuildRequires: golang(API) = 1.15 +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{go_provides}