2011-08-31 16:44:01 +02:00
|
|
|
#
|
2021-12-09 06:56:40 +01:00
|
|
|
# spec file
|
2011-08-31 16:44:01 +02:00
|
|
|
#
|
2023-01-02 19:49:48 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-08-31 16:44:01 +02: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.
|
2011-09-19 17:56:50 +02:00
|
|
|
|
Accepting request 775308 from home:jayvdb:branches:devel:languages:python
- Update to v19.1
* Removed deprecated aliases ContextType, ConnectionType, PKeyType, X509NameType,
X509ReqType, X509Type, X509StoreType, CRLType, PKCS7Type, PKCS12Type, and NetscapeSPKIType.
Use the classes without the ``Type`` suffix instead.
* The minimum ``cryptography`` version is now 2.8
* Deprecated ``OpenSSL.SSL.Context.set_npn_advertise_callback,
OpenSSL.SSL.Context.set_npn_select_callback, and
OpenSSL.SSL.Connection.get_next_proto_negotiated
ALPN should be used instead.
* Support bytearray in SSL.Connection.send() by using cffi's from_buffer
* The OpenSSL.SSL.Context.set_alpn_select_callback can return a new
NO_OVERLAPPING_PROTOCOLS sentinel value to allow a TLS handshake
to complete without an application protocol.
OBS-URL: https://build.opensuse.org/request/show/775308
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=69
2020-02-19 10:00:04 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-31 16:44:01 +02:00
|
|
|
#
|
|
|
|
|
2011-09-19 17:56:50 +02:00
|
|
|
|
2021-12-09 06:56:40 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2023-04-21 16:09:52 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2021-12-09 06:56:40 +01:00
|
|
|
Name: python-pyOpenSSL%{psuffix}
|
2023-11-27 09:55:08 +01:00
|
|
|
Version: 23.3.0
|
2012-06-15 16:36:55 +02:00
|
|
|
Release: 0
|
2011-08-31 16:44:01 +02:00
|
|
|
Summary: Python wrapper module around the OpenSSL library
|
2011-09-01 10:55:44 +02:00
|
|
|
License: Apache-2.0
|
2018-08-16 17:55:53 +02:00
|
|
|
URL: https://github.com/pyca/pyopenssl
|
2017-05-01 17:14:02 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
|
2020-12-22 23:29:19 +01:00
|
|
|
# PATCH-FIX-UPSTREAM skip-networked-test.patch gh#pyca/pyopenssl#68 mcepl@suse.com
|
|
|
|
# Mark tests requiring network access
|
|
|
|
Patch0: skip-networked-test.patch
|
2019-02-06 09:55:31 +01:00
|
|
|
BuildRequires: %{python_module cffi}
|
2021-12-09 06:56:40 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with test}
|
2023-11-27 09:55:08 +01:00
|
|
|
BuildRequires: %{python_module cryptography >= 41.0.5 with %python-cryptography < 42}
|
2018-02-02 12:41:11 +01:00
|
|
|
BuildRequires: %{python_module flaky}
|
|
|
|
BuildRequires: %{python_module pretend}
|
2022-02-05 00:30:57 +01:00
|
|
|
BuildRequires: %{python_module pyOpenSSL >= %version}
|
2018-02-02 12:41:11 +01:00
|
|
|
BuildRequires: %{python_module pytest >= 3.0.1}
|
2019-03-02 17:33:31 +01:00
|
|
|
BuildRequires: ca-certificates-mozilla
|
2022-06-01 10:26:10 +02:00
|
|
|
BuildRequires: openssl
|
2021-12-09 06:56:40 +01:00
|
|
|
%endif
|
2019-02-06 09:55:31 +01:00
|
|
|
Requires: python-cffi
|
2023-11-27 09:55:08 +01:00
|
|
|
Requires: (python-cryptography >= 41.0.5 with python-cryptography < 42)
|
2011-08-31 16:44:01 +02:00
|
|
|
Provides: pyOpenSSL = %{version}
|
2018-02-02 12:41:11 +01:00
|
|
|
BuildArch: noarch
|
2017-05-01 17:14:02 +02:00
|
|
|
%python_subpackages
|
2011-08-31 16:44:01 +02:00
|
|
|
|
|
|
|
%description
|
2014-03-26 16:28:17 +01:00
|
|
|
pyOpenSSL is a set of Python bindings for OpenSSL. It includes some low-level
|
|
|
|
cryptography APIs but is primarily focused on providing an API for using the
|
|
|
|
TLS protocol from Python.
|
|
|
|
|
|
|
|
pyOpenSSL is now a pure-Python project with a dependency on a new project,
|
|
|
|
cryptography (<https://github.com/pyca/cryptography>), which provides (among
|
|
|
|
other things) a cffi-based interface to OpenSSL.
|
|
|
|
|
2011-08-31 16:44:01 +02:00
|
|
|
%prep
|
2022-10-24 23:44:16 +02:00
|
|
|
%autosetup -p1 -n pyOpenSSL-%{version}
|
2011-08-31 16:44:01 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-01 17:14:02 +02:00
|
|
|
%python_build
|
2014-03-26 16:28:17 +01:00
|
|
|
|
2011-08-31 16:44:01 +02:00
|
|
|
%install
|
2021-12-09 06:56:40 +01:00
|
|
|
%if !%{with test}
|
2017-05-01 17:14:02 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2021-12-09 06:56:40 +01:00
|
|
|
%endif
|
2011-08-31 16:44:01 +02:00
|
|
|
|
2016-05-17 15:40:41 +02:00
|
|
|
%check
|
2021-12-09 06:56:40 +01:00
|
|
|
%if %{with test}
|
2020-12-11 18:24:47 +01:00
|
|
|
SKIPPED_TESTS="network"
|
2020-12-11 16:36:51 +01:00
|
|
|
%if %{__isa_bits} == 32
|
2020-12-22 23:40:09 +01:00
|
|
|
SKIPPED_TESTS="(network or test_verify_with_time)"
|
2020-12-11 16:50:10 +01:00
|
|
|
%endif
|
2020-12-11 18:24:47 +01:00
|
|
|
export LC_ALL=en_US.UTF-8
|
2020-12-22 23:40:09 +01:00
|
|
|
%pytest -k "not $SKIPPED_TESTS"
|
2021-12-09 06:56:40 +01:00
|
|
|
%endif
|
2016-05-17 15:40:41 +02:00
|
|
|
|
2021-12-09 06:56:40 +01:00
|
|
|
%if !%{with test}
|
2017-05-01 17:14:02 +02:00
|
|
|
%files %{python_files}
|
2018-08-16 17:55:53 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc *.rst
|
2014-03-26 16:28:17 +01:00
|
|
|
%{python_sitelib}/OpenSSL/
|
2022-10-24 23:44:16 +02:00
|
|
|
%{python_sitelib}/pyOpenSSL-%{version}*-info
|
2021-12-09 06:56:40 +01:00
|
|
|
%endif
|
2014-03-26 16:28:17 +01:00
|
|
|
|
2011-08-31 16:44:01 +02:00
|
|
|
%changelog
|