delete python2
This commit is contained in:
parent
31df74ebc7
commit
c6a66b2552
@ -5,7 +5,7 @@ other niceties (please check the docs).
|
||||
|
||||
Name: python-%{_name}
|
||||
Version: 4.4.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Simplify the signature-preserving function decorators and decorator factories
|
||||
License: BSD
|
||||
URL: https://github.com/micheles/decorator
|
||||
@ -15,14 +15,6 @@ BuildArch: noarch
|
||||
%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
|
||||
Summary: %{summary} in python3
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
@ -38,22 +30,14 @@ BuildRequires: python3-devel python3-setuptools
|
||||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files -n python2-%{_name}
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
%{python2_sitelib}/*
|
||||
|
||||
%files -n python3-%{_name}
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
@ -65,6 +49,12 @@ BuildRequires: python3-devel python3-setuptools
|
||||
%doc CHANGES.md
|
||||
|
||||
%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
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user