delete python2
This commit is contained in:
parent
5f73ffca9d
commit
3a7210ef9a
@ -1,12 +1,12 @@
|
|||||||
Name: python-greenlet
|
Name: python-greenlet
|
||||||
Version: 0.4.14
|
Version: 0.4.14
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: lightweight coroutines for in-process concurrent programming
|
Summary: lightweight coroutines for in-process concurrent programming
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/python-greenlet/greenlet
|
URL: https://github.com/python-greenlet/greenlet
|
||||||
Source0: https://github.com/python-greenlet/greenlet/archive/0.4.14.tar.gz
|
Source0: https://github.com/python-greenlet/greenlet/archive/0.4.14.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -15,22 +15,6 @@ that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently
|
|||||||
(typically in a single or a few OS-level threads) and are synchronized
|
(typically in a single or a few OS-level threads) and are synchronized
|
||||||
with data exchanges on "channels".
|
with data exchanges on "channels".
|
||||||
|
|
||||||
%package -n python2-greenlet
|
|
||||||
Summary: lightweight coroutines for in-process concurrent programming
|
|
||||||
%{?python_provide:%python_provide python2-greenlet}
|
|
||||||
|
|
||||||
%description -n python2-greenlet
|
|
||||||
The greenlet package of python 2 version.
|
|
||||||
|
|
||||||
%package -n python2-greenlet-devel
|
|
||||||
Summary: Development files for python2-greenlet
|
|
||||||
Requires: python2-greenlet%{?_isa} = %{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-greenlet-devel}
|
|
||||||
|
|
||||||
%description -n python2-greenlet-devel
|
|
||||||
This package contains libraries and headier files for developing applications
|
|
||||||
that use python2-greenlet.
|
|
||||||
|
|
||||||
%package -n python3-greenlet
|
%package -n python3-greenlet
|
||||||
Summary: lightweight coroutines for in-process concurrent programming
|
Summary: lightweight coroutines for in-process concurrent programming
|
||||||
%{?python_provide:%python_provide python3-greenlet}
|
%{?python_provide:%python_provide python3-greenlet}
|
||||||
@ -39,7 +23,7 @@ Summary: lightweight coroutines for in-process concurrent programming
|
|||||||
The greenlet package of python 3 version.
|
The greenlet package of python 3 version.
|
||||||
|
|
||||||
%package -n python3-greenlet-devel
|
%package -n python3-greenlet-devel
|
||||||
Summary: Development files for python2-greenlet
|
Summary: Development files for python3-greenlet
|
||||||
Requires: python3-greenlet%{?_isa} = %{version}-%{release}
|
Requires: python3-greenlet%{?_isa} = %{version}-%{release}
|
||||||
%{?python_provide:%python_provide python3-greenlet-devel}
|
%{?python_provide:%python_provide python3-greenlet-devel}
|
||||||
|
|
||||||
@ -51,27 +35,14 @@ that use python3-greenlet.
|
|||||||
%autosetup -n greenlet-%{version} -p1
|
%autosetup -n greenlet-%{version} -p1
|
||||||
|
|
||||||
%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-greenlet
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%license LICENSE LICENSE.PSF
|
|
||||||
%doc AUTHORS NEWS README.rst
|
|
||||||
%{python2_sitearch}/*
|
|
||||||
|
|
||||||
%files -n python2-greenlet-devel
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/python%{python2_version}*/greenlet/
|
|
||||||
|
|
||||||
%files -n python3-greenlet
|
%files -n python3-greenlet
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE LICENSE.PSF
|
%license LICENSE LICENSE.PSF
|
||||||
@ -83,6 +54,9 @@ that use python3-greenlet.
|
|||||||
%{_includedir}/python%{python3_version}*/greenlet/
|
%{_includedir}/python%{python3_version}*/greenlet/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 0.4.14-4
|
||||||
|
- delete python2 require
|
||||||
|
|
||||||
* Tue Sep 8 2020 liuweibo <liuweibo10@huawei.com> - 0.4.14-3
|
* Tue Sep 8 2020 liuweibo <liuweibo10@huawei.com> - 0.4.14-3
|
||||||
- Fix Source0
|
- Fix Source0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user