From 22e5e8a91624d61ca6d61f29abb75214423d1864 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 4 Feb 2022 10:58:46 -0500 Subject: [PATCH] adjust epoch conditionals Signed-off-by: Lokesh Mandvekar --- skopeo.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/skopeo.spec b/skopeo.spec index 8e8cb78..891060f 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -7,12 +7,6 @@ %global debug_package %{nil} %endif -%if 0%{?fedora} && ! 0%{?rhel} -%global conditional_epoch 1 -%else -%global conditional_epoch 2 -%endif - %global provider github %global provider_tld com %global project containers @@ -26,7 +20,11 @@ %global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"}) Name: %{repo} -Epoch: %{conditional_epoch} +%if 0%{?fedora} && ! 0%{?rhel} +Epoch: 1 +%else +Epoch: 2 +%endif Version: %{gen_version} Release: %autorelease Summary: Inspect container images and repositories on registries