From 311a9e6421274d94d80e56f50a5100c9f60d3d92da53cd31ca1181bc45319676 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 30 Jan 2025 01:29:32 +0000 Subject: [PATCH] - Switch to pyproject macros. - Add typing-extensions to Requires for 3.11 and 3.12. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=119 --- python-pyOpenSSL.changes | 4 ++-- python-pyOpenSSL.spec | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index b0d934d..51aed6d 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a3ed52c811737a01b78aa065c18d48dc9e735993b9813ef075d7125d3968dd0e -size 29802 +oid sha256:cf0a4aa88eca177e1826e3e935edd1992e3707ee463ce16a6da0c7a64948912a +size 30028 diff --git a/python-pyOpenSSL.spec b/python-pyOpenSSL.spec index 8e3936e..05f42c0 100644 --- a/python-pyOpenSSL.spec +++ b/python-pyOpenSSL.spec @@ -37,11 +37,15 @@ Source: https://files.pythonhosted.org/packages/source/p/pyopenssl/pyope Patch0: skip-networked-test.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module cffi} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cffi Requires: (python-cryptography >= 41.0.5 with python-cryptography < 45) +%if %{python_version_nodots} < 313 +Requires: python-typing-extensions >= 4.9 +%endif Provides: pyOpenSSL = %{version} Provides: pyopenssl = %{version}-%release %if %{without test} @@ -70,17 +74,17 @@ other things) a cffi-based interface to OpenSSL. %autosetup -p1 -n pyopenssl-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %check %if %{with test} -SKIPPED_TESTS="network" +SKIPPED_TESTS="(network or test_set_tmp_ecdh)" %if %{__isa_bits} == 32 SKIPPED_TESTS="(network or test_verify_with_time)" %endif @@ -93,7 +97,7 @@ export LC_ALL=en_US.UTF-8 %license LICENSE %doc *.rst %{python_sitelib}/OpenSSL/ -%{python_sitelib}/pyOpenSSL-%{version}*-info +%{python_sitelib}/pyOpenSSL-%{version}.dist-info %endif %changelog