!4 remove python2

From: @jlwwlsqc
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2020-10-30 17:51:30 +08:00 committed by Gitee
commit 235ebd381a

View File

@ -4,7 +4,7 @@
Name: python-%{_name} Name: python-%{_name}
Version: 1.3.0 Version: 1.3.0
Release: 1 Release: 2
Summary: %{_summary} Summary: %{_summary}
License: MIT License: MIT
URL: https://github.com/wbond/asn1crypto URL: https://github.com/wbond/asn1crypto
@ -15,14 +15,6 @@ BuildArch: noarch
%description %description
%{_description} %{_description}
%package -n python2-%{_name}
Summary: %{_summary}
BuildRequires: python2-devel python2-setuptools
%{?python_provide:%python_provide python2-%{_name}}
%description -n python2-%{_name}
%{_description}
%package -n python3-%{_name} %package -n python3-%{_name}
Summary: %{_summary} Summary: %{_summary}
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
@ -38,18 +30,11 @@ BuildRequires: python3-devel python3-setuptools
rm -rf %{_name}.egg-info rm -rf %{_name}.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%files -n python2-%{_name}
%license LICENSE
%{python2_sitelib}/%{_name}/*
%{python2_sitelib}/%{_name}-*info
%files -n python3-%{_name} %files -n python3-%{_name}
%license LICENSE %license LICENSE
%{python3_sitelib}/%{_name}/* %{python3_sitelib}/%{_name}/*
@ -59,6 +44,12 @@ rm -rf %{_name}.egg-info
%doc readme.md changelog.md %doc readme.md changelog.md
%changelog %changelog
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -1.3.0-2
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 1.3.0-1 * Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 1.3.0-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA