diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index d85f10c..5f8ab0d 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 30 01:28:29 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Add typing-extensions to Requires for 3.11 and 3.12. + ------------------------------------------------------------------- Wed Jan 29 15:05:24 UTC 2025 - ecsos 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