From d25b5e4776894050a73325daf871bcfd7d703dab Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Thu, 22 Oct 2020 18:42:25 +0900 Subject: [PATCH] Set Epoch for Fedora only --- cldr-emoji-annotation.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cldr-emoji-annotation.spec b/cldr-emoji-annotation.spec index 15fc3b3..be8f26c 100644 --- a/cldr-emoji-annotation.spec +++ b/cldr-emoji-annotation.spec @@ -3,7 +3,9 @@ Name: cldr-emoji-annotation Version: 38~beta3 Release: 1%{?dist} +%if 0%{?fedora:1}%{?rhel:0} Epoch: 1 +%endif # Annotation files are in Unicode license Summary: Emoji annotation files in CLDR License: Unicode @@ -20,7 +22,7 @@ This package provides the emoji annotation file by language in CLDR. %package dtd Summary: DTD files of CLDR common -Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} BuildArch: noarch %description dtd @@ -29,7 +31,7 @@ cldr-emoji-annotations. %package devel Summary: Files for development using cldr-annotations -Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: pkgconfig BuildArch: noarch