forked from pool/python-PyKMIP
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyKMIP?expand=0&rev=23
98 lines
3.4 KiB
RPMSpec
98 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package python-PyKMIP
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-PyKMIP
|
|
Version: 0.10.0
|
|
Release: 0
|
|
Summary: KMIP v11 library
|
|
License: Apache-2.0
|
|
URL: https://github.com/OpenKMIP/PyKMIP
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyKMIP/PyKMIP-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM fix-tests-SQLAlchemy-140.patch gh#OpenKMIP/PyKMIP#656 mcepl@suse.com
|
|
# fix tests to work with SQLAlchemy >= 1.4.0
|
|
Patch0: fix-tests-SQLAlchemy-140.patch
|
|
# https://github.com/OpenKMIP/PyKMIP/issues/668
|
|
Patch1: python-PyKMIP-no-mock.patch
|
|
# PATCH-FIX-UPSTREAM crypto-39.patch gh#OpenKMIP/PyKMIP#689
|
|
Patch2: crypto-39.patch
|
|
# PATCH-FIX-UPSTREAM fix_test_mac_with_cryptographic_failure.patch gh#OpenKMIP/PyKMIP#702
|
|
Patch3: fix_test_mac_with_cryptographic_failure.patch
|
|
# PATCH-FIX-OPENSUSE Use cryptography.hazmat.primitives.serialization for loading private keys.
|
|
Patch4: crypto-42.patch
|
|
# PATCH-FIX-UPSTREAM Based on gh#OpenKMIP/PyKMIP#707, including some changes suggested
|
|
Patch5: no-ssl-wrap-socket.patch
|
|
BuildRequires: %{python_module SQLAlchemy}
|
|
BuildRequires: %{python_module cryptography}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: %{python_module testtools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-SQLAlchemy
|
|
Requires: python-cryptography
|
|
Requires: python-requests
|
|
Requires: python-six
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
%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
|
|
%autosetup -p1 -n PyKMIP-%{version}
|
|
# Not needed, we use Python 3.4+ only
|
|
sed -i '/"enum-compat",/d' setup.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_clone -a %{buildroot}%{_bindir}/pykmip-server
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest kmip/tests/unit
|
|
|
|
%post
|
|
%python_install_alternative pykmip-server
|
|
|
|
%postun
|
|
%python_uninstall_alternative pykmip-server
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.rst
|
|
%{python_sitelib}/kmip
|
|
%{python_sitelib}/[Pp]y[Kk][Mm][Ii][Pp]-%{version}.dist-info
|
|
%python_alternative %{_bindir}/pykmip-server
|
|
|
|
%changelog
|