Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package prometheus-postgres_exporter for openSUSE:Factory checked in at 2022-03-09 18:48:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/prometheus-postgres_exporter (Old) and /work/SRC/openSUSE:Factory/.prometheus-postgres_exporter.new.2349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "prometheus-postgres_exporter" Wed Mar 9 18:48:01 2022 rev:3 rq:960383 version:0.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/prometheus-postgres_exporter/prometheus-postgres_exporter.changes 2021-10-29 22:35:41.819715293 +0200 +++ /work/SRC/openSUSE:Factory/.prometheus-postgres_exporter.new.2349/prometheus-postgres_exporter.changes 2022-03-11 11:51:32.890998654 +0100 @@ -1,0 +2,5 @@ +Fri Feb 11 07:18:33 UTC 2022 - Stefan Bluhm <stefan.bl...@clacee.eu> + +- Updated for RHEL8. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ prometheus-postgres_exporter.spec ++++++ --- /var/tmp/diff_new_pack.I99Iit/_old 2022-03-11 11:51:33.434999294 +0100 +++ /var/tmp/diff_new_pack.I99Iit/_new 2022-03-11 11:51:33.438999299 +0100 @@ -15,7 +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} @@ -42,11 +45,16 @@ BuildRequires: golang-github-prometheus-promu BuildRequires: golang-packaging BuildRequires: xz +%if 0%{?rhel} +BuildRequires: golang >= 1.14 +Requires(pre): shadow-utils +%else BuildRequires: golang(API) >= 1.14 +Requires(pre): shadow +%endif %{?systemd_requires} BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} -Requires(pre): shadow %{go_provides} %description @@ -67,17 +75,31 @@ %fdupes %{buildroot} %pre -%service_add_pre prometheus-postgres_exporter.service +%if 0%{?suse_version} +%service_add_pre %{name}.service +%endif %post -%fillup_only -n prometheus-postgres_exporter -%service_add_post prometheus-postgres_exporter.service +%if 0%{?rhel} +%systemd_post %{name}.service +%else +%service_add_post %{name}.service +%fillup_only -n %{name} +%endif %preun -%service_del_preun prometheus-postgres_exporter.service +%if 0%{?rhel} +%systemd_preun %{name}.service +%else +%service_del_preun %{name}.service +%endif %postun -%service_del_postun prometheus-postgres_exporter.service +%if 0%{?rhel} +%systemd_postun %{name}.service +%else +%service_del_postun %{name}.service +%endif %files %defattr(-,root,root,-)