import pyOpenSSL-19.0.0-1.el8

This commit is contained in:
CentOS Sources 2021-03-30 15:04:31 -04:00 committed by Stepan Oksanichenko
parent e08ab2353d
commit 81e1cf9514
3 changed files with 9 additions and 47 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/pyOpenSSL-18.0.0.tar.gz
SOURCES/pyOpenSSL-19.0.0.tar.gz

View File

@ -1 +1 @@
a41b82512585dd05a5370fb737f4eb4119030a38 SOURCES/pyOpenSSL-18.0.0.tar.gz
894c2736538d8fff4ffe6e02a4811d5f62e54350 SOURCES/pyOpenSSL-19.0.0.tar.gz

View File

@ -1,31 +1,19 @@
%if 0%{?fedora}
%bcond_without python2
%else
# Disable python2 build by default
%bcond_with python2
%endif
Summary: Python wrapper module around the OpenSSL library
Name: pyOpenSSL
Version: 18.0.0
Version: 19.0.0
Release: 1%{?dist}
Source0: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
BuildArch: noarch
License: ASL 2.0
Group: Development/Libraries
URL: https://pyopenssl.readthedocs.org/
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
%if %{with python2}
BuildRequires: python2-devel
BuildRequires: python2-cryptography >= 2.2.1
%endif
BuildRequires: python3-devel
BuildRequires: python3-cryptography >= 2.2.1
BuildRequires: python3-cryptography >= 2.3
%description
High-level wrapper around a subset of the OpenSSL library, includes among others
@ -34,25 +22,11 @@ High-level wrapper around a subset of the OpenSSL library, includes among others
* Callbacks written in Python
* Extensive error-handling mechanism, mirroring OpenSSL's error codes
%if %{with python2}
%package -n python2-pyOpenSSL
Summary: Python 2 wrapper module around the OpenSSL library
Requires: python2-cryptography >= 2.2.1
Obsoletes: pyOpenSSL < %{version}-%{release}
Provides: pyOpenSSL = %{version}-%{release}
%{?python_provide:%python_provide python2-pyOpenSSL}
%description -n python2-pyOpenSSL
High-level wrapper around a subset of the OpenSSL library, includes among others
* SSL.Connection objects, wrapping the methods of Python's portable
sockets
* Callbacks written in Python
* Extensive error-handling mechanism, mirroring OpenSSL's error codes
%endif
%package -n python3-pyOpenSSL
Summary: Python 3 wrapper module around the OpenSSL library
Requires: python3-cryptography >= 2.2.1
Requires: python3-cryptography >= 2.3
Requires: python3-six >= 1.5.2
%{?python_provide:%python_provide python3-pyOpenSSL}
%description -n python3-pyOpenSSL
@ -75,29 +49,14 @@ Documentation for pyOpenSSL
%build
%py3_build
%if %{with python2}
%py2_build
%endif
%{__make} -C doc html SPHINXBUILD=sphinx-build-3
%install
%py3_install
%if %{with python2}
%py2_install
%endif
# Cleanup sphinx .buildinfo file before packaging
rm doc/_build/html/.buildinfo
%if %{with python2}
%files -n python2-pyOpenSSL
%license LICENSE
%{python_sitelib}/OpenSSL/
%{python_sitelib}/pyOpenSSL-*.egg-info
%endif
%files -n python3-pyOpenSSL
%license LICENSE
%{python3_sitelib}/OpenSSL/
@ -108,6 +67,9 @@ rm doc/_build/html/.buildinfo
%doc CHANGELOG.rst examples doc/_build/html
%changelog
* Thu Oct 15 2020 Tomáš Mráz <tmraz@redhat.com> - 19.0.0-1
- Update to release 19.0.0 bringing full compatibility with openssl-1.1.1
* Mon Jun 11 2018 Tomáš Mráz <tmraz@redhat.com> - 18.0.0-1
- New upstream release 18.0.0