Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package
golang-github-QubitProducts-exporter_exporter for openSUSE:Factory checked in
at 2022-02-24 18:21:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing
/work/SRC/openSUSE:Factory/golang-github-QubitProducts-exporter_exporter (Old)
and
/work/SRC/openSUSE:Factory/.golang-github-QubitProducts-exporter_exporter.new.1958
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-QubitProducts-exporter_exporter"
Thu Feb 24 18:21:04 2022 rev:8 rq:957332 version:0.4.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/golang-github-QubitProducts-exporter_exporter/golang-github-QubitProducts-exporter_exporter.changes
2020-11-17 21:26:47.193466944 +0100
+++
/work/SRC/openSUSE:Factory/.golang-github-QubitProducts-exporter_exporter.new.1958/golang-github-QubitProducts-exporter_exporter.changes
2022-02-24 18:24:30.794641919 +0100
@@ -1,0 +2,5 @@
+Sun Jan 23 19:25:55 UTC 2022 - Stefan Bluhm <[email protected]>
+
+- Adapted to build on Enterprise Linux.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-QubitProducts-exporter_exporter.spec ++++++
--- /var/tmp/diff_new_pack.GCeWnU/_old 2022-02-24 18:24:31.294641789 +0100
+++ /var/tmp/diff_new_pack.GCeWnU/_new 2022-02-24 18:24:31.298641788 +0100
@@ -37,9 +37,11 @@
Source1: vendor.tar.gz
Source2: exporter_exporter.yaml
Source3: prometheus-exporter_exporter.service
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?rhel} >= 8
BuildRequires: fdupes
BuildRequires: golang-packaging
+%endif
+%if 0%{?suse_version}
BuildRequires: golang(API) = 1.14
%else
BuildRequires: golang >= 1.14
@@ -62,7 +64,7 @@
%autosetup -a1 -n %{repo}-%{version}
%build
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?rhel} >= 8
%goprep %{import_path}
%gobuild --mod=vendor "" ...
%else
@@ -72,7 +74,7 @@
%install
# Binary
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?rhel} >= 8
%goinstall
%else
install -m 0755 -vd %{buildroot}%{_bindir}
@@ -86,14 +88,18 @@
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{repo}.yaml
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{repo}.d
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?rhel} >= 8
%fdupes %{buildroot}/%{_prefix}
%endif
%check
-%if 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?rhel} >= 8
%gotest --mod=vendor "" ...
%endif
+%if 0%{?rhel} == 8
+# Fix OBS debug_package execution.
+rm -f
%{buildroot}/usr/lib/debug/%{_bindir}/exporter_exporter-%{version}-*.debug
+%endif
%pre
%if 0%{?suse_version}