14
0
forked from pool/python-PyKMIP

- Fix build without python2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyKMIP?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2020-04-20 10:38:15 +00:00
committed by Git OBS Bridge
parent 1d99ad17d0
commit 548557299b
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 20 10:38:03 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Mon Mar 16 10:39:58 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-PyKMIP
Version: 0.10.0
Release: 0
@@ -36,17 +37,19 @@ BuildRequires: %{python_module six}
BuildRequires: %{python_module testtools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-enum34
Requires: python-SQLAlchemy
Requires: python-cryptography
Requires: python-requests
Requires: python-six
%ifpython2
Requires: python-enum34
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with python2}
BuildRequires: python-enum34
%endif
%ifpython2
Requires: python-enum34
%endif
%python_subpackages
%description