- Inject multibuild to avoid a build loop.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=85
This commit is contained in:
parent
76cf59019d
commit
2ea74614d2
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 9 05:55:51 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Inject multibuild to avoid a build loop.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 30 19:08:35 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
Sat Oct 30 19:08:35 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyOpenSSL
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -18,7 +18,15 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
Name: python-pyOpenSSL
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-pyOpenSSL%{psuffix}
|
||||||
Version: 21.0.0
|
Version: 21.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python wrapper module around the OpenSSL library
|
Summary: Python wrapper module around the OpenSSL library
|
||||||
@ -32,16 +40,19 @@ Patch0: skip-networked-test.patch
|
|||||||
# Check for invalid ALPN lists before calling OpenSSL
|
# Check for invalid ALPN lists before calling OpenSSL
|
||||||
Patch1: check_inv_ALPN_lists.patch
|
Patch1: check_inv_ALPN_lists.patch
|
||||||
BuildRequires: %{python_module cffi}
|
BuildRequires: %{python_module cffi}
|
||||||
BuildRequires: %{python_module cryptography >= 3.3}
|
|
||||||
BuildRequires: %{python_module flaky}
|
|
||||||
BuildRequires: %{python_module pretend}
|
|
||||||
BuildRequires: %{python_module pytest >= 3.0.1}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
|
||||||
BuildRequires: ca-certificates-mozilla
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: openssl
|
BuildRequires: openssl
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module cryptography >= 3.3}
|
||||||
|
BuildRequires: %{python_module flaky}
|
||||||
|
BuildRequires: %{python_module pretend}
|
||||||
|
BuildRequires: %{python_module pyOpenSSL}
|
||||||
|
BuildRequires: %{python_module pytest >= 3.0.1}
|
||||||
|
BuildRequires: %{python_module six}
|
||||||
|
BuildRequires: ca-certificates-mozilla
|
||||||
|
%endif
|
||||||
Requires: python-cffi
|
Requires: python-cffi
|
||||||
Requires: python-cryptography >= 3.3
|
Requires: python-cryptography >= 3.3
|
||||||
Requires: python-six >= 1.5.2
|
Requires: python-six >= 1.5.2
|
||||||
@ -70,21 +81,27 @@ other things) a cffi-based interface to OpenSSL.
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
SKIPPED_TESTS="network"
|
SKIPPED_TESTS="network"
|
||||||
%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
|
||||||
export LC_ALL=en_US.UTF-8
|
export LC_ALL=en_US.UTF-8
|
||||||
%pytest -k "not $SKIPPED_TESTS"
|
%pytest -k "not $SKIPPED_TESTS"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc *.rst
|
%doc *.rst
|
||||||
%{python_sitelib}/OpenSSL/
|
%{python_sitelib}/OpenSSL/
|
||||||
%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info
|
%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user