1
0

Accepting request 750776 from home:jcavalheiro:monitoring

Fix spec file to allow build in SLE 12

OBS-URL: https://build.opensuse.org/request/show/750776
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=27
This commit is contained in:
Jan Fajerski 2019-11-25 15:41:44 +00:00 committed by Git OBS Bridge
parent be2cdb4342
commit bbc1d7ca82
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 25 14:59:24 UTC 2019 - Joao Cavalheiro <jcavalheiro@suse.com>
- Patch macros on spec file to support builds on SLE 12
-------------------------------------------------------------------
Thu Nov 21 13:29:22 UTC 2019 - Jan Fajerski <jan.fajerski@suse.com>

View File

@ -20,6 +20,15 @@
%global prometheus_user prometheus
%global prometheus_group %{prometheus_user}
# Compatibility with systems older than Nov 2017
# See https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
%if 0%{?suse_version} < 1500
%define _sharedstatedir /var/lib
%endif
%{go_nostrip}
Name: golang-github-prometheus-prometheus