From bbc1d7ca82139344774893cc5360dfac0697b137b65f2585c42cf1634c38d844 Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Mon, 25 Nov 2019 15:41:44 +0000 Subject: [PATCH] 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 --- golang-github-prometheus-prometheus.changes | 5 +++++ golang-github-prometheus-prometheus.spec | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/golang-github-prometheus-prometheus.changes b/golang-github-prometheus-prometheus.changes index 9219051..113c026 100644 --- a/golang-github-prometheus-prometheus.changes +++ b/golang-github-prometheus-prometheus.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 25 14:59:24 UTC 2019 - Joao Cavalheiro + +- Patch macros on spec file to support builds on SLE 12 + ------------------------------------------------------------------- Thu Nov 21 13:29:22 UTC 2019 - Jan Fajerski diff --git a/golang-github-prometheus-prometheus.spec b/golang-github-prometheus-prometheus.spec index 45940bd..68d8f05 100644 --- a/golang-github-prometheus-prometheus.spec +++ b/golang-github-prometheus-prometheus.spec @@ -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