From 5dcb3690afd2d0f9fb61ef78b86c7983cfb9e042 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 7 May 2019 13:44:37 +0200 Subject: [PATCH] Adapt spec file to be able to build package in OBS. (cherry picked from commit 02a305a1501709bcf4896606140320b375c16910) Signed-off-by: Volker Theile --- prometheus-webhook-snmp.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus-webhook-snmp.spec b/prometheus-webhook-snmp.spec index 2258006..f3b8087 100644 --- a/prometheus-webhook-snmp.spec +++ b/prometheus-webhook-snmp.spec @@ -21,7 +21,7 @@ Summary: Prometheus Alertmanager receiver for SNMP traps License: GPL-3.0 Group: System/Management Url: https://github.com/SUSE/prometheus-webhook-snmp -Source0: https://github.com/SUSE/prometheus-webhook-snmp/archive/master.zip +Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-setuptools @@ -41,7 +41,7 @@ prometheus-webhook-snmp is a Prometheus Alertmanager receiver that translates incoming notifications into SNMP traps. %prep -%setup -n %{name}-master +%setup -n %{name}-%{version} %build