forked from pool/python-pyOpenSSL
- Update to 18.0.0:
* Update for new openssl 1.1.1 - Remove not needed patches: * bug-lp-1265482.diff * rsa128-i586.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=47
This commit is contained in:
committed by
Git OBS Bridge
parent
6fcf888010
commit
071b74d8a2
@@ -1,13 +0,0 @@
|
|||||||
Index: OpenSSL/test/test_crypto.py
|
|
||||||
===================================================================
|
|
||||||
--- OpenSSL/tests/test_crypto.py.orig
|
|
||||||
+++ OpenSSL/tests/test_crypto.py
|
|
||||||
@@ -627,7 +627,7 @@
|
|
||||||
`PKey.generate_key` generates an RSA key when passed `TYPE_RSA` as a
|
|
||||||
type and a reasonable number of bits.
|
|
||||||
"""
|
|
||||||
- bits = 128
|
|
||||||
+ bits = 2048
|
|
||||||
key = PKey()
|
|
||||||
key.generate_key(TYPE_RSA, bits)
|
|
||||||
assert key.type() == TYPE_RSA
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2c10cfba46a52c0b0950118981d61e72c1e5b1aac451ca1bc77de1a679456773
|
|
||||||
size 170870
|
|
3
pyOpenSSL-18.0.0.tar.gz
Normal file
3
pyOpenSSL-18.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6488f1423b00f73b7ad5167885312bb0ce410d3312eb212393795b53c8caa580
|
||||||
|
size 167296
|
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 16 15:48:21 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Update to 18.0.0:
|
||||||
|
* Update for new openssl 1.1.1
|
||||||
|
- Remove not needed patches:
|
||||||
|
* bug-lp-1265482.diff
|
||||||
|
* rsa128-i586.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 27 19:20:19 UTC 2018 - aplanas@suse.com
|
Tue Feb 27 19:20:19 UTC 2018 - aplanas@suse.com
|
||||||
|
|
||||||
|
@@ -19,27 +19,23 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
Name: python-pyOpenSSL
|
Name: python-pyOpenSSL
|
||||||
Version: 17.5.0
|
Version: 18.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python wrapper module around the OpenSSL library
|
Summary: Python wrapper module around the OpenSSL library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/pyca/pyopenssl
|
URL: https://github.com/pyca/pyopenssl
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
|
||||||
Patch0: bug-lp-1265482.diff
|
|
||||||
Patch1: skip-networked-test.patch
|
Patch1: skip-networked-test.patch
|
||||||
Patch2: rsa128-i586.patch
|
BuildRequires: %{python_module cryptography >= 2.2.1}
|
||||||
BuildRequires: %{python_module cryptography >= 2.1.4}
|
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module flaky}
|
BuildRequires: %{python_module flaky}
|
||||||
BuildRequires: %{python_module pretend}
|
BuildRequires: %{python_module pretend}
|
||||||
BuildRequires: %{python_module pytest >= 3.0.1}
|
BuildRequires: %{python_module pytest >= 3.0.1}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: openssl-devel
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
Requires: python-cryptography >= 2.1.4
|
Requires: python-cryptography >= 2.2.1
|
||||||
Requires: python-six >= 1.5.2
|
Requires: python-six >= 1.5.2
|
||||||
Provides: pyOpenSSL = %{version}
|
Provides: pyOpenSSL = %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -67,9 +63,7 @@ Provides documentation for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyOpenSSL-%{version}
|
%setup -q -n pyOpenSSL-%{version}
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -77,7 +71,7 @@ Provides documentation for %{name}.
|
|||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
PYTHONPATH="%{buildroot}%{python3_sitelib}" %__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
PYTHONPATH="%{buildroot}%{python3_sitelib}" python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LC_ALL=en_US.UTF-8
|
export LC_ALL=en_US.UTF-8
|
||||||
@@ -86,7 +80,8 @@ py.test-%{$python_bin_suffix} -m "not network" -k "not test_export_text"
|
|||||||
}
|
}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc LICENSE *.rst
|
%license LICENSE
|
||||||
|
%doc *.rst
|
||||||
%{python_sitelib}/OpenSSL/
|
%{python_sitelib}/OpenSSL/
|
||||||
%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info
|
%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info
|
||||||
|
|
||||||
|
@@ -1,31 +0,0 @@
|
|||||||
Index: pyOpenSSL-17.0.0/tests/test_ssl.py
|
|
||||||
===================================================================
|
|
||||||
--- pyOpenSSL-17.0.0.orig/tests/test_ssl.py
|
|
||||||
+++ pyOpenSSL-17.0.0/tests/test_ssl.py
|
|
||||||
@@ -525,7 +525,7 @@
|
|
||||||
`Context.use_privatekey` takes an `OpenSSL.crypto.PKey` instance.
|
|
||||||
"""
|
|
||||||
key = PKey()
|
|
||||||
- key.generate_key(TYPE_RSA, 128)
|
|
||||||
+ key.generate_key(TYPE_RSA, 2048)
|
|
||||||
ctx = Context(TLSv1_METHOD)
|
|
||||||
ctx.use_privatekey(key)
|
|
||||||
with pytest.raises(TypeError):
|
|
||||||
@@ -546,7 +546,7 @@
|
|
||||||
arguments does not raise an exception.
|
|
||||||
"""
|
|
||||||
key = PKey()
|
|
||||||
- key.generate_key(TYPE_RSA, 128)
|
|
||||||
+ key.generate_key(TYPE_RSA, 2048)
|
|
||||||
|
|
||||||
with open(pemfile, "wt") as pem:
|
|
||||||
pem.write(
|
|
||||||
@@ -849,7 +849,7 @@
|
|
||||||
passphrase. Return the path to the new file.
|
|
||||||
"""
|
|
||||||
key = PKey()
|
|
||||||
- key.generate_key(TYPE_RSA, 128)
|
|
||||||
+ key.generate_key(TYPE_RSA, 2048)
|
|
||||||
pem = dump_privatekey(FILETYPE_PEM, key, "blowfish", passphrase)
|
|
||||||
with open(tmpfile, 'w') as fObj:
|
|
||||||
fObj.write(pem.decode('ascii'))
|
|
Reference in New Issue
Block a user