From 7e6f3cd70d6e22d6a219b1e1e64175ce4ab15f5d Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Jan 24 2020 13:26:45 +0000 Subject: TRIAL - change macros defs for centos build on obs Signed-off-by: Lokesh Mandvekar --- diff --git a/conmon.spec b/conmon.spec index 71c074e..b5bac3e 100644 --- a/conmon.spec +++ b/conmon.spec @@ -20,7 +20,7 @@ # Used for comparing with latest upstream tag # to decide whether to autobuild (non-rawhide only) -%global built_tag v2.0.10 +%define built_tag v2.0.10 Name: %{repo} Epoch: 2 @@ -28,8 +28,8 @@ Version: 2.0.10 Release: 2%{?dist} Summary: OCI container runtime monitor License: ASL 2.0 -URL: %{git0} -Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz +URL: https://github.com/containers/%{name} +Source0: %{url}/archive/%{built_tag}.tar.gz BuildRequires: gcc BuildRequires: git BuildRequires: glib2-devel @@ -38,7 +38,7 @@ BuildRequires: glib2-devel %{summary}. %prep -%autosetup -Sgit -n %{name}-%{commit0} +%autosetup -Sgit -n %{name}-%{version} %build %{__make} all