diff --git a/golang-github-prometheus-prometheus.changes b/golang-github-prometheus-prometheus.changes index c6e29a5..1aaab63 100644 --- a/golang-github-prometheus-prometheus.changes +++ b/golang-github-prometheus-prometheus.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 18 12:20:59 UTC 2022 - Witek Bedyk + +- Create firewalld-prometheus-config subpackage (bsc#1197042) + ------------------------------------------------------------------- Mon Mar 7 16:40:16 UTC 2022 - Witek Bedyk diff --git a/golang-github-prometheus-prometheus.spec b/golang-github-prometheus-prometheus.spec index 196f7a1..74bb499 100644 --- a/golang-github-prometheus-prometheus.spec +++ b/golang-github-prometheus-prometheus.spec @@ -57,6 +57,7 @@ BuildRequires: golang-github-prometheus-promu BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.16 BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: firewalld-prometheus-config Requires(pre): user(prometheus) Requires(pre): group(prometheus) Requires(post): %fillup_prereq @@ -146,6 +147,18 @@ install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus/metrics %dir %{_sysconfdir}/prometheus %config(noreplace) %{_sysconfdir}/prometheus/prometheus.yml +%package -n firewalld-prometheus-config +Summary: Firewalld configuration file for Prometheus +Group: Productivity/Networking/Security +Version: 0.1 +Release: 0 +License: GPL-2.0-or-later + +%description -n firewalld-prometheus-config +This package contains configuration file for Prometheus for older versions of +Firewalld which do not provide this in own package. + +%files -n firewalld-prometheus-config %if 0%{?suse_version} == 1500 && 0%{?sle_version} < 150300 %dir %{_prefix}/lib/firewalld %dir %{_prefix}/lib/firewalld/services