2019-01-07 08:59:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-PyKMIP
|
|
|
|
#
|
2021-06-05 12:14:49 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-01-07 08:59:11 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-25 11:59:00 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-01-07 08:59:11 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-04-20 10:38:15 +00:00
|
|
|
%bcond_without python2
|
2019-01-07 08:59:11 +00:00
|
|
|
Name: python-PyKMIP
|
2020-03-16 10:43:38 +00:00
|
|
|
Version: 0.10.0
|
2019-01-07 08:59:11 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: KMIP v11 library
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2019-07-25 11:59:00 +00:00
|
|
|
URL: https://github.com/OpenKMIP/PyKMIP
|
2019-01-07 08:59:11 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyKMIP/PyKMIP-%{version}.tar.gz
|
2021-06-05 12:14:49 +00:00
|
|
|
# PATCH-FIX-UPSTREAM SQL-issues.patch gh#OpenKMIP/PyKMIP#649 mcepl@suse.com
|
|
|
|
# skip tests failing due to gh#OpenKMIP/PyKMIP#649
|
|
|
|
Patch0: SQL-issues.patch
|
2019-01-07 08:59:11 +00:00
|
|
|
BuildRequires: %{python_module SQLAlchemy}
|
|
|
|
BuildRequires: %{python_module cryptography}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: %{python_module testtools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-SQLAlchemy
|
|
|
|
Requires: python-cryptography
|
|
|
|
Requires: python-requests
|
|
|
|
Requires: python-six
|
|
|
|
Requires(post): update-alternatives
|
2021-06-05 12:14:49 +00:00
|
|
|
Requires(postun):update-alternatives
|
2019-01-07 08:59:11 +00:00
|
|
|
BuildArch: noarch
|
2020-04-20 10:38:15 +00:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-enum34
|
|
|
|
%endif
|
|
|
|
%ifpython2
|
|
|
|
Requires: python-enum34
|
|
|
|
%endif
|
2019-01-07 08:59:11 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
PyKMIP is a Python implementation of the Key Management Interoperability
|
|
|
|
Protocol (KMIP). KMIP is a client/server communication protocol for the
|
|
|
|
storage and maintenance of key, certificate, and secret objects. The standard
|
|
|
|
is governed by the `Organization for the Advancement of Structured Information
|
|
|
|
Standards`_ (OASIS). PyKMIP supports a subset of features in versions
|
|
|
|
1.0 - 1.2 of the KMIP specification.
|
|
|
|
|
|
|
|
%prep
|
2021-06-05 12:14:49 +00:00
|
|
|
%autosetup -p1 -n PyKMIP-%{version}
|
2019-01-07 08:59:11 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pykmip-server
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-07-25 11:59:00 +00:00
|
|
|
%pytest kmip/tests/unit
|
2019-01-07 08:59:11 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative pykmip-server
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative pykmip-server
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%python_alternative %{_bindir}/pykmip-server
|
|
|
|
|
|
|
|
%changelog
|