remove python2

From: @tong_1001
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2020-09-15 10:15:55 +08:00 committed by wangjie
commit 15ee1e0fc6
3 changed files with 16 additions and 24 deletions

BIN
19.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,16 +1,14 @@
%bcond_without python2
Name: pyOpenSSL Name: pyOpenSSL
Version: 19.1.0 Version: 19.1.0
Release: 1 Release: 3
Summary: A rather thin wrapper around (a subset of) the OpenSSL library. Summary: A rather thin wrapper around (a subset of) the OpenSSL library.
License: ASL 2.0 License: ASL 2.0
URL: https://www.pyopenssl.org/en/stable/ URL: https://www.pyopenssl.org/en/stable/
Source0: https://github.com/pyca/pyopenssl/archive/%{name}-%{version}.tar.gz Source0: https://github.com/pyca/pyopenssl/archive/%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python3-devel python2-cryptography python3-cryptography BuildRequires: python3-devel python3-cryptography
BuildRequires: python3-setuptools python3-sphinx python3-sphinx_rtd_theme BuildRequires: python3-setuptools python3-sphinx python3-sphinx_rtd_theme
%description %description
@ -18,18 +16,6 @@ pyOpenSSL is a rather thin wrapper around (a subset of) the OpenSSL library.
With thin wrapper we mean that a lot of the object methods do nothing more With thin wrapper we mean that a lot of the object methods do nothing more
than calling a corresponding function in the OpenSSL library. than calling a corresponding function in the OpenSSL library.
%package -n python2-%{name}
Summary: A rather thin wrapper around (a subset of) the OpenSSL library.
Requires: python2-six >= 1.5.2 python2-cryptography
Obsoletes: pyOpenSSL < %{version}-%{release}
Provides: pyOpenSSL = %{version}-%{release}
%{?python_provide:%python_provide python2-pyOpenSSL}
%description -n python2-%{name}
pyOpenSSL is a rather thin wrapper around (a subset of) the OpenSSL library.
With thin wrapper we mean that a lot of the object methods do nothing more
than calling a corresponding function in the OpenSSL library.
%package -n python3-%{name} %package -n python3-%{name}
Summary: A rather thin wrapper around (a subset of) the OpenSSL library. Summary: A rather thin wrapper around (a subset of) the OpenSSL library.
Requires: python3-six >= 1.5.2 python3-cryptography Requires: python3-six >= 1.5.2 python3-cryptography
@ -51,22 +37,16 @@ Obsoletes: %{name}-doc
Man pages and other related documents for %{name}. Man pages and other related documents for %{name}.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n pyopenssl-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
make -C doc html SPHINXBUILD=sphinx-build-3 make -C doc html SPHINXBUILD=sphinx-build-3
%install %install
%py2_install
%py3_install %py3_install
%files -n python2-%{name}
%license LICENSE
%{python2_sitelib}/OpenSSL/*
%{python2_sitelib}/%{name}-%{version}-py?.?.egg-info
%files -n python3-%{name} %files -n python3-%{name}
%license LICENSE %license LICENSE
@ -78,6 +58,18 @@ make -C doc html SPHINXBUILD=sphinx-build-3
%doc CHANGELOG.rst doc/_build/html %doc CHANGELOG.rst doc/_build/html
%changelog %changelog
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -19.1.0-3
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Mon Sep 14 2020 shixuantong <shixuantong@huawei.com> - 19.1.0-2
- Type:NA
- ID:NA
- SUG:NA
- DESC:update source0
* Tue May 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 19.1.0-1 * Tue May 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 19.1.0-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA