!3 remove python2 subpackage

From: @lei_ju
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-29 18:37:51 +08:00 committed by Gitee
commit 18954b2922

View File

@ -1,23 +1,16 @@
Name: python-incremental
Version: 17.5.0
Release: 5
Release: 6
Summary: A small library versions your Python projects
License: MIT
URL: https://github.com/twisted/incremental
Source0: https://files.pythonhosted.org/packages/source/i/incremental/incremental-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools
BuildRequires: python3-devel python3-setuptools
%description
Incremental is a small library that versions your Python projects.
%package -n python2-incremental
Summary: A small library versions your Python projects
%python_provide python2-incremental
%description -n python2-incremental
Incremental is a small library that versions your Python projects.
%package -n python3-incremental
Summary: A small library versions your Python projects
%python_provide python3-incremental
@ -30,18 +23,10 @@ Incremental is a small library that versions your Python projects.
rm -rf incremental.egg-info
%build
%py2_build
%py3_build
%install
%py3_install
%py2_install
%files -n python2-incremental
%doc LICENSE
%doc README.rst
%{python2_sitelib}/incremental
%{python2_sitelib}/incremental-%{version}-py?.?.egg-info
%files -n python3-incremental
%doc LICENSE
@ -50,5 +35,8 @@ rm -rf incremental.egg-info
%{python3_sitelib}/incremental-%{version}-py?.?.egg-info
%changelog
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 17.5.0-6
- remove python2 subpackage
* Fri Feb 21 2020 gulining<gulining1@huawei.com> - 17.5.0-5
- Package init.