From 54b82f7f122331e60cdf6cf55854a34f9fc6db08 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Jan 31 2020 20:54:19 +0000 Subject: update build dir macro Signed-off-by: Lokesh Mandvekar --- diff --git a/skopeo.spec b/skopeo.spec index 90dec7f..3fcf96a 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -29,6 +29,7 @@ # Used for comparing with latest upstream tag # to decide whether to autobuild (non-rawhide only) %define built_tag v0.1.40 +%define built_tag_strip %(b=%{built_tag}; echo ${b:1}) # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required # manually listed arches due https://bugzilla.redhat.com/show_bug.cgi?id=1391932 (removed ppc64) @@ -257,7 +258,7 @@ This package installs a default signature store configuration and a default policy under `/etc/containers/`. %prep -%autosetup -Sgit -n %{name}-%{version} +%autosetup -Sgit -n %{name}-%{built_tag_strip} # use below line to build a random commit #%%autosetup -Sgit -n %%{name}-%%{commit0}