2011-08-31 14:44:01 +00:00
|
|
|
#
|
2021-12-09 05:56:40 +00:00
|
|
|
# spec file
|
2011-08-31 14:44:01 +00:00
|
|
|
#
|
2022-02-04 23:26:14 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-08-31 14:44:01 +00: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 15:56:50 +00: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 09:00:04 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-31 14:44:01 +00:00
|
|
|
#
|
|
|
|
|
2011-09-19 15:56:50 +00:00
|
|
|
|
2017-05-01 15:14:02 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-12-09 05:56:40 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2022-02-04 23:26:14 +00:00
|
|
|
%global skip_python2 1
|
2021-12-09 05:56:40 +00:00
|
|
|
Name: python-pyOpenSSL%{psuffix}
|
2022-09-29 19:34:28 +00:00
|
|
|
Version: 22.1.0
|
2012-06-15 14:36:55 +00:00
|
|
|
Release: 0
|
2011-08-31 14:44:01 +00:00
|
|
|
Summary: Python wrapper module around the OpenSSL library
|
2011-09-01 08:55:44 +00:00
|
|
|
License: Apache-2.0
|
2018-08-16 15:55:53 +00:00
|
|
|
URL: https://github.com/pyca/pyopenssl
|
2017-05-01 15:14:02 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
|
2020-12-22 22:29:19 +00: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 08:55:31 +00:00
|
|
|
BuildRequires: %{python_module cffi}
|
2021-12-09 05:56:40 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with test}
|
2022-09-29 19:34:28 +00:00
|
|
|
BuildRequires: %{python_module cryptography >= 37.0.2}
|
2018-02-02 11:41:11 +00:00
|
|
|
BuildRequires: %{python_module flaky}
|
|
|
|
BuildRequires: %{python_module pretend}
|
2022-02-04 23:30:57 +00:00
|
|
|
BuildRequires: %{python_module pyOpenSSL >= %version}
|
2018-02-02 11:41:11 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 3.0.1}
|
2019-03-02 16:33:31 +00:00
|
|
|
BuildRequires: ca-certificates-mozilla
|
2022-06-01 08:26:10 +00:00
|
|
|
BuildRequires: openssl
|
2021-12-09 05:56:40 +00:00
|
|
|
%endif
|
2019-02-06 08:55:31 +00:00
|
|
|
Requires: python-cffi
|
2022-09-29 19:34:28 +00:00
|
|
|
Requires: python-cryptography >= 37.0.2
|
2011-08-31 14:44:01 +00:00
|
|
|
Provides: pyOpenSSL = %{version}
|
2018-02-02 11:41:11 +00:00
|
|
|
BuildArch: noarch
|
2017-05-01 15:14:02 +00:00
|
|
|
%python_subpackages
|
2011-08-31 14:44:01 +00:00
|
|
|
|
|
|
|
%description
|
2014-03-26 15:28:17 +00: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 14:44:01 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n pyOpenSSL-%{version}
|
2018-08-24 09:10:42 +00:00
|
|
|
%autopatch -p1
|
2011-08-31 14:44:01 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-01 15:14:02 +00:00
|
|
|
%python_build
|
2014-03-26 15:28:17 +00:00
|
|
|
|
2011-08-31 14:44:01 +00:00
|
|
|
%install
|
2021-12-09 05:56:40 +00:00
|
|
|
%if !%{with test}
|
2017-05-01 15:14:02 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2021-12-09 05:56:40 +00:00
|
|
|
%endif
|
2011-08-31 14:44:01 +00:00
|
|
|
|
2016-05-17 13:40:41 +00:00
|
|
|
%check
|
2021-12-09 05:56:40 +00:00
|
|
|
%if %{with test}
|
2020-12-11 17:24:47 +00:00
|
|
|
SKIPPED_TESTS="network"
|
2020-12-11 15:36:51 +00:00
|
|
|
%if %{__isa_bits} == 32
|
2020-12-22 22:40:09 +00:00
|
|
|
SKIPPED_TESTS="(network or test_verify_with_time)"
|
2020-12-11 15:50:10 +00:00
|
|
|
%endif
|
2020-12-11 17:24:47 +00:00
|
|
|
export LC_ALL=en_US.UTF-8
|
2020-12-22 22:40:09 +00:00
|
|
|
%pytest -k "not $SKIPPED_TESTS"
|
2021-12-09 05:56:40 +00:00
|
|
|
%endif
|
2016-05-17 13:40:41 +00:00
|
|
|
|
2021-12-09 05:56:40 +00:00
|
|
|
%if !%{with test}
|
2017-05-01 15:14:02 +00:00
|
|
|
%files %{python_files}
|
2018-08-16 15:55:53 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc *.rst
|
2014-03-26 15:28:17 +00:00
|
|
|
%{python_sitelib}/OpenSSL/
|
2017-05-01 15:14:02 +00:00
|
|
|
%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info
|
2021-12-09 05:56:40 +00:00
|
|
|
%endif
|
2014-03-26 15:28:17 +00:00
|
|
|
|
2011-08-31 14:44:01 +00:00
|
|
|
%changelog
|