setools-python2 requires python2-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:
parent
7672531487
commit
1924f09170
@ -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 <plautrba@redhat.com> - 4.1.1-5
|
||||
- setools-python2 requires python2-enum34
|
||||
|
||||
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.1.1-4
|
||||
- Add Provides for the old name without %%_isa
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user