Subpackage python2-pyOpenSSL has been removed
This commit is contained in:
parent
9ad5403178
commit
30a88863ce
@ -1,14 +1,7 @@
|
||||
%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: 19.0.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
@ -19,10 +12,6 @@ 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
|
||||
|
||||
@ -33,28 +22,14 @@ 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
|
||||
Requires: python2-six >= 1.5.2
|
||||
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-six >= 1.5.2
|
||||
%{?python_provide:%python_provide python3-pyOpenSSL}
|
||||
Obsoletes: pyOpenSSL < 19.0.0-5
|
||||
Provides: pyOpenSSL = %{version}-%{release}
|
||||
|
||||
%description -n python3-pyOpenSSL
|
||||
High-level wrapper around a subset of the OpenSSL library, includes among others
|
||||
@ -76,29 +51,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
|
||||
%{python2_sitelib}/OpenSSL/
|
||||
%{python2_sitelib}/pyOpenSSL-*.egg-info
|
||||
%endif
|
||||
|
||||
%files -n python3-pyOpenSSL
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/OpenSSL/
|
||||
@ -109,6 +69,10 @@ rm doc/_build/html/.buildinfo
|
||||
%doc CHANGELOG.rst examples doc/_build/html
|
||||
|
||||
%changelog
|
||||
* Wed Oct 23 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0.0-5
|
||||
- Subpackage python2-pyOpenSSL has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0.0-4
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user