From 1924f091708e3ebf33de08998c6317552446448c Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 4 Sep 2017 18:13:55 +0200 Subject: [PATCH] setools-python2 requires python2-enum34 Fixes: >>> import setools Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.7/site-packages/setools/__init__.py", line 31, in from . import policyrep File "/usr/lib64/python2.7/site-packages/setools/policyrep/__init__.py", line 26, in from .bounds import BoundsRuletype File "/usr/lib64/python2.7/site-packages/setools/policyrep/bounds.py", line 24, in from .util import PolicyEnum File "/usr/lib64/python2.7/site-packages/setools/policyrep/util.py", line 21, in from enum import Enum ImportError: No module named enum --- setools.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setools.spec b/setools.spec index ce389d7..fbaf473 100644 --- a/setools.spec +++ b/setools.spec @@ -11,7 +11,7 @@ Name: setools Version: 4.1.1 -Release: 4%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist} +Release: 5%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist} Summary: Policy analysis tools for SELinux License: GPLv2 @@ -85,6 +85,7 @@ Recommends: libselinux-python Provides: %{name}-python = %{version}-%{release} Provides: %{name}-python%{?_isa} = %{version}-%{release} Obsoletes: %{name}-python < %{version}-%{release} +Requires: python2-enum34 %description -n python2-setools SETools is a collection of graphical tools, command-line tools, and @@ -188,6 +189,9 @@ popd %{_mandir}/man1/apol* %changelog +* Mon Sep 04 2017 Petr Lautrbach - 4.1.1-5 +- setools-python2 requires python2-enum34 + * Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek - 4.1.1-4 - Add Provides for the old name without %%_isa