From 9b76dffc0ca16ab3ff1607743241ac140000decc Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 4 Sep 2017 18:13:55 +0200 Subject: [PATCH] setools-python requires python-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 0d68848..2690537 100644 --- a/setools.spec +++ b/setools.spec @@ -11,7 +11,7 @@ Name: setools Version: 4.1.1 -Release: 2%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist} +Release: 3%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist} Summary: Policy analysis tools for SELinux License: GPLv2 @@ -80,6 +80,7 @@ This package includes the following console tools: %package python Summary: Policy analysis tools for SELinux Recommends: libselinux-python +Requires: python-enum34 %description python SETools is a collection of graphical tools, command-line tools, and @@ -178,6 +179,9 @@ popd %{_mandir}/man1/apol* %changelog +* Mon Sep 04 2017 Petr Lautrbach - 4.1.1-3 +- setools-python requires python-enum34 + * Thu Aug 10 2017 Petr Lautrbach - 4.1.1-2 - bswap_* macros are defined in byteswap.h