From c90c00c1de19e1c4fbc7f2419a20d46726d4f2e7 Mon Sep 17 00:00:00 2001 From: Martin Sehnoutka Date: Tue, 25 Sep 2018 15:06:12 +0200 Subject: [PATCH] use conditional name for python enum package --- dnf.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dnf.spec b/dnf.spec index bd1d9cb2aa..107a5bdbc4 100644 --- a/dnf.spec +++ b/dnf.spec @@ -171,15 +171,18 @@ BuildRequires: python2-libdnf >= %{hawkey_version} BuildRequires: python2-libcomps >= %{libcomps_version} BuildRequires: python2-libdnf BuildRequires: python2-nose -Requires: python2-enum34 BuildRequires: libmodulemd >= %{libmodulemd_version} Requires: libmodulemd >= %{libmodulemd_version} %if (0%{?rhel} && 0%{?rhel} <= 7) BuildRequires: pygpgme Requires: pygpgme +BuildRequires: python-enum34 +Requires: python-enum34 %else BuildRequires: python2-gpg Requires: python2-gpg +BuildRequires: python2-enum34 +Requires: python2-enum34 %endif BuildRequires: pyliblzma Requires: pyliblzma