delete python2

This commit is contained in:
s17723959267 2020-10-23 15:49:13 +08:00
parent 31df74ebc7
commit c6a66b2552

View File

@ -5,7 +5,7 @@ other niceties (please check the docs).
Name: python-%{_name} Name: python-%{_name}
Version: 4.4.2 Version: 4.4.2
Release: 1 Release: 2
Summary: Simplify the signature-preserving function decorators and decorator factories Summary: Simplify the signature-preserving function decorators and decorator factories
License: BSD License: BSD
URL: https://github.com/micheles/decorator URL: https://github.com/micheles/decorator
@ -15,14 +15,6 @@ BuildArch: noarch
%description %description
%{_description} %{_description}
%package -n python2-decorator
Summary: %{summary} in python2
BuildRequires: python2-devel python2-setuptools
%{?python_provide:%python_provide python2-decorator}
%description -n python2-decorator
%{_description}
%package -n python3-decorator %package -n python3-decorator
Summary: %{summary} in python3 Summary: %{summary} in python3
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
@ -38,22 +30,14 @@ BuildRequires: python3-devel python3-setuptools
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} setup.py test
%{__python3} setup.py test %{__python3} setup.py test
%files -n python2-%{_name}
%doc README.rst
%license LICENSE.txt
%{python2_sitelib}/*
%files -n python3-%{_name} %files -n python3-%{_name}
%doc README.rst %doc README.rst
%license LICENSE.txt %license LICENSE.txt
@ -65,6 +49,12 @@ BuildRequires: python3-devel python3-setuptools
%doc CHANGES.md %doc CHANGES.md
%changelog %changelog
* Fri Oct 23 2020 tianwei<tianwei12@huawei.com> - 4.4.2-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete python2
* Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 4.4.2-1 * Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 4.4.2-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA