adjust epoch conditionals

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-02-04 10:58:46 -05:00
parent 868757fe5f
commit 22e5e8a916

View File

@ -7,12 +7,6 @@
%global debug_package %{nil} %global debug_package %{nil}
%endif %endif
%if 0%{?fedora} && ! 0%{?rhel}
%global conditional_epoch 1
%else
%global conditional_epoch 2
%endif
%global provider github %global provider github
%global provider_tld com %global provider_tld com
%global project containers %global project containers
@ -26,7 +20,11 @@
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"}) %global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
Name: %{repo} Name: %{repo}
Epoch: %{conditional_epoch} %if 0%{?fedora} && ! 0%{?rhel}
Epoch: 1
%else
Epoch: 2
%endif
Version: %{gen_version} Version: %{gen_version}
Release: %autorelease Release: %autorelease
Summary: Inspect container images and repositories on registries Summary: Inspect container images and repositories on registries