14
0

- 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:
Tomáš Chvátal
2018-08-16 15:55:53 +00:00
committed by Git OBS Bridge
parent 6fcf888010
commit 071b74d8a2
6 changed files with 19 additions and 59 deletions

View File

@@ -19,27 +19,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-pyOpenSSL
Version: 17.5.0
Version: 18.0.0
Release: 0
Summary: Python wrapper module around the OpenSSL library
License: Apache-2.0
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
Patch0: bug-lp-1265482.diff
Patch1: skip-networked-test.patch
Patch2: rsa128-i586.patch
BuildRequires: %{python_module cryptography >= 2.1.4}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module cryptography >= 2.2.1}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module pretend}
BuildRequires: %{python_module pytest >= 3.0.1}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: openssl-devel
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
Requires: python-cryptography >= 2.1.4
Requires: python-cryptography >= 2.2.1
Requires: python-six >= 1.5.2
Provides: pyOpenSSL = %{version}
BuildArch: noarch
@@ -67,9 +63,7 @@ Provides documentation for %{name}.
%prep
%setup -q -n pyOpenSSL-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%python_build
@@ -77,7 +71,7 @@ Provides documentation for %{name}.
%install
%python_install
%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
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}
%doc LICENSE *.rst
%license LICENSE
%doc *.rst
%{python_sitelib}/OpenSSL/
%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info