setools-python requires python-enum34

Fixes:
>>> import setools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/setools/__init__.py", line 31, in <module>
    from . import policyrep
  File "/usr/lib64/python2.7/site-packages/setools/policyrep/__init__.py", line 26, in <module>
    from .bounds import BoundsRuletype
  File "/usr/lib64/python2.7/site-packages/setools/policyrep/bounds.py", line 24, in <module>
    from .util import PolicyEnum
  File "/usr/lib64/python2.7/site-packages/setools/policyrep/util.py", line 21, in <module>
    from enum import Enum
ImportError: No module named enum
This commit is contained in:
Petr Lautrbach 2017-09-04 18:13:55 +02:00
parent 31fd610d91
commit 03687f1d4b
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@
Name: setools
Version: 4.1.0
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
@ -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 <plautrba@redhat.com> - 4.1.0-5}
- setools-python requires python-enum34
* Mon Sep 04 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.0-4
- bswap_* macros are defined in byteswap.h