forked from pool/python-pyOpenSSL
- 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
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 30 01:28:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- Add typing-extensions to Requires for 3.11 and 3.12.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 29 15:05:24 UTC 2025 - ecsos <ecsos@opensuse.org>
|
Wed Jan 29 15:05:24 UTC 2025 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
@@ -37,11 +37,15 @@ Source: https://files.pythonhosted.org/packages/source/p/pyopenssl/pyope
|
|||||||
Patch0: skip-networked-test.patch
|
Patch0: skip-networked-test.patch
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module cffi}
|
BuildRequires: %{python_module cffi}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-cffi
|
Requires: python-cffi
|
||||||
Requires: (python-cryptography >= 41.0.5 with python-cryptography < 45)
|
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}
|
||||||
Provides: pyopenssl = %{version}-%release
|
Provides: pyopenssl = %{version}-%release
|
||||||
%if %{without test}
|
%if %{without test}
|
||||||
@@ -70,17 +74,17 @@ other things) a cffi-based interface to OpenSSL.
|
|||||||
%autosetup -p1 -n pyopenssl-%{version}
|
%autosetup -p1 -n pyopenssl-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
SKIPPED_TESTS="network"
|
SKIPPED_TESTS="(network or test_set_tmp_ecdh)"
|
||||||
%if %{__isa_bits} == 32
|
%if %{__isa_bits} == 32
|
||||||
SKIPPED_TESTS="(network or test_verify_with_time)"
|
SKIPPED_TESTS="(network or test_verify_with_time)"
|
||||||
%endif
|
%endif
|
||||||
@@ -93,7 +97,7 @@ export LC_ALL=en_US.UTF-8
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc *.rst
|
%doc *.rst
|
||||||
%{python_sitelib}/OpenSSL/
|
%{python_sitelib}/OpenSSL/
|
||||||
%{python_sitelib}/pyOpenSSL-%{version}*-info
|
%{python_sitelib}/pyOpenSSL-%{version}.dist-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user