!7 remove python2

From: @zhangtao2020
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-31 10:18:08 +08:00 committed by Gitee
commit e92d52ad09

View File

@ -1,8 +1,6 @@
%bcond_with python2
Name: python-cryptography-vectors Name: python-cryptography-vectors
Version: 3.0 Version: 3.0
Release: 1 Release: 2
License: ASL 2.0 or BSD License: ASL 2.0 or BSD
Summary: This module is a test vectors for the cryptography package Summary: This module is a test vectors for the cryptography package
URL: https://pypi.python.org/pypi/cryptography-vectors URL: https://pypi.python.org/pypi/cryptography-vectors
@ -12,16 +10,6 @@ BuildArch: noarch
%description %description
This package is a test vectors for the python-cryptography. This package is a test vectors for the python-cryptography.
%if %{with python2}
%package -n python2-cryptography-vectors
Summary: This module is a test vectors for the cryptography package
BuildRequires: python2-devel python2-setuptools
%{?python_provide:%python_provide python2-cryptography-vectors}
%description -n python2-cryptography-vectors
This package is a test vectors for the python-cryptography.
%endif
%package -n python3-cryptography-vectors %package -n python3-cryptography-vectors
Summary: This module is a test vectors for the cryptography package Summary: This module is a test vectors for the cryptography package
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
@ -35,34 +23,14 @@ This package is a test vectors for the python-cryptography.
rm -vrf cryptography_vectors.egg-info rm -vrf cryptography_vectors.egg-info
%build %build
%if %{with python2}
%py2_build
%endif
%py3_build %py3_build
%check %check
%if %{with python2}
%{__python2} setup.py test
%endif
%{__python3} setup.py test %{__python3} setup.py test
%install %install
%if %{with python2}
%py2_install
%endif
%py3_install %py3_install
%if %{with python2}
%files -n python2-cryptography-vectors
%defattr(-,root,root)
%license LICENSE LICENSE.APACHE LICENSE.BSD
%{python2_sitelib}/cryptography_vectors/
%{python2_sitelib}/cryptography_vectors-%{version}-py*.egg-info
%endif
%files -n python3-cryptography-vectors %files -n python3-cryptography-vectors
%defattr(-,root,root) %defattr(-,root,root)
%license LICENSE LICENSE.APACHE LICENSE.BSD %license LICENSE LICENSE.APACHE LICENSE.BSD
@ -70,6 +38,9 @@ rm -vrf cryptography_vectors.egg-info
%{python3_sitelib}/cryptography_vectors-%{version}-py*.egg-info %{python3_sitelib}/cryptography_vectors-%{version}-py*.egg-info
%changelog %changelog
* Thu Oct 22 2020 zhangtao <zhangtao221@huawei.com> - 2.3-2
- delete python2
* Mon Jul 27 2020 dingyue<dingyue5@huawei.com> -3.0-1 * Mon Jul 27 2020 dingyue<dingyue5@huawei.com> -3.0-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA