forked from pool/golang-github-lusitaniae-apache_exporter
Accepting request 1108907 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1108907 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-lusitaniae-apache_exporter?expand=0&rev=12
This commit is contained in:
commit
d764c9125d
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 4 10:40:18 UTC 2023 - Witek Bedyk <witold.bedyk@suse.com>
|
||||
|
||||
- Fix apparmor profile for SLE 12
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 11 12:55:45 UTC 2023 - Witek Bedyk <witold.bedyk@suse.com>
|
||||
|
||||
@ -74,6 +79,13 @@ Mon Mar 8 09:40:42 UTC 2021 - Witek Bedyk <witold.bedyk@suse.com>
|
||||
|
||||
- Require building with Go 1.15
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 18 17:49:17 UTC 2020 - Joao Cavalheiro <jcavalheiro@suse.com>
|
||||
|
||||
- Add support for RedHat 8
|
||||
+ Adjust dependencies on spec file
|
||||
+ Disable dwarf compression in go build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 19 15:18:13 UTC 2019 - Joao Cavalheiro <jcavalheiro@suse.com>
|
||||
|
||||
@ -83,6 +95,11 @@ Tue Nov 19 15:18:13 UTC 2019 - Joao Cavalheiro <jcavalheiro@suse.com>
|
||||
- Changes from 0.6
|
||||
* Add option to override host name
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 19 13:08:57 UTC 2019 - Joao Cavalheiro <jcavalheiro@suse.com>
|
||||
|
||||
- Add support for Red Hat
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 6 09:26:16 UTC 2019 - jmc <jcavalheiro@suse.com>
|
||||
|
||||
|
@ -25,12 +25,18 @@
|
||||
%undefine _missing_build_ids_terminate_build
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%if 0%{?suse_version}
|
||||
%bcond_without apparmor
|
||||
%else
|
||||
%bcond_with apparmor
|
||||
%endif
|
||||
|
||||
%if %{with apparmor} && 0%{?suse_version} > 1320
|
||||
%bcond_without apparmor_reload
|
||||
%else
|
||||
%bcond_with apparmor_reload
|
||||
%endif
|
||||
|
||||
# Templating vars to simplify and standardize Prometheus exporters spec files
|
||||
%define githubrepo github.com/lusitaniae/apache_exporter
|
||||
%define upstreamname apache_exporter
|
||||
@ -58,9 +64,13 @@ Requires(pre): shadow-utils
|
||||
BuildRequires: golang(API) >= 1.19
|
||||
Requires(pre): shadow
|
||||
%if %{with apparmor}
|
||||
%if %{with apparmor_reload}
|
||||
BuildRequires: apparmor-abstractions
|
||||
BuildRequires: apparmor-rpm-macros
|
||||
Recommends: apparmor-abstractions
|
||||
%else
|
||||
BuildRequires: apparmor-profiles
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
ExcludeArch: s390
|
||||
@ -106,7 +116,7 @@ getent passwd %{serviceuser} >/dev/null || %{_sbindir}/useradd -r -g %{serviceus
|
||||
%systemd_post %{targetname}.service
|
||||
%else
|
||||
%service_add_post %{targetname}.service
|
||||
%if %{with apparmor}
|
||||
%if %{with apparmor_reload}
|
||||
%apparmor_reload %{_sysconfdir}/apparmor.d/usr.bin.%{targetname}
|
||||
%endif
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user