2020-10-29 10:33:41 +08:00
|
|
|
%global __provides_exclude_from ^%{python3_sitearch}/.*\\.so$
|
2019-12-17 15:26:13 +08:00
|
|
|
%global optflags %(echo %{optflags} -I%{_includedir}/libev)
|
|
|
|
|
|
|
|
|
|
Name: python-gevent
|
2023-06-02 11:37:17 +08:00
|
|
|
Version: 22.10.2
|
|
|
|
|
Release: 1
|
2019-12-17 15:26:13 +08:00
|
|
|
Summary: A coroutine-based Python networking library
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.gevent.org/
|
2023-06-02 11:37:17 +08:00
|
|
|
Source0: %{pypi_source gevent}
|
2019-12-17 15:26:13 +08:00
|
|
|
|
2022-03-30 17:50:31 +08:00
|
|
|
BuildRequires: gcc c-ares-devel libev-devel libuv-devel
|
2019-12-17 15:26:13 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
gevent is a coroutine -based Python networking library that uses greenlet to
|
|
|
|
|
provide a high-level synchronous API on top of the libev or libuv event loop.
|
|
|
|
|
|
|
|
|
|
Features include:
|
|
|
|
|
* Fast event loop based on libev or libuv.
|
|
|
|
|
* Lightweight execution units based on greenlets.
|
|
|
|
|
* API that re-uses concepts from the Python standard library (for examples there are events and queues).
|
|
|
|
|
* Cooperative sockets with SSL support
|
|
|
|
|
* Cooperative DNS queries performed through a threadpool, dnspython, or c-ares.
|
|
|
|
|
* Monkey patching utility to get 3rd party modules to become cooperative
|
|
|
|
|
* TCP/UDP/HTTP servers
|
|
|
|
|
* Subprocess support (through gevent.subprocess)
|
|
|
|
|
* Thread pools
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%package -n python3-gevent
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-gevent}
|
|
|
|
|
BuildRequires: python3-devel python3-greenlet-devel
|
2022-05-06 10:38:46 +08:00
|
|
|
BuildRequires: python3-setuptools python3-Cython
|
2019-12-17 15:26:13 +08:00
|
|
|
Requires: python3-greenlet
|
|
|
|
|
|
|
|
|
|
%description -n python3-gevent
|
|
|
|
|
gevent is a coroutine -based Python networking library that uses greenlet to
|
|
|
|
|
provide a high-level synchronous API on top of the libev or libuv event loop.
|
|
|
|
|
|
|
|
|
|
Features include:
|
|
|
|
|
* Fast event loop based on libev or libuv.
|
|
|
|
|
* Lightweight execution units based on greenlets.
|
|
|
|
|
* API that re-uses concepts from the Python standard library (for examples there are events and queues).
|
|
|
|
|
* Cooperative sockets with SSL support
|
|
|
|
|
* Cooperative DNS queries performed through a threadpool, dnspython, or c-ares.
|
|
|
|
|
* Monkey patching utility to get 3rd party modules to become cooperative
|
|
|
|
|
* TCP/UDP/HTTP servers
|
|
|
|
|
* Subprocess support (through gevent.subprocess)
|
|
|
|
|
* Thread pools
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-03-30 17:50:31 +08:00
|
|
|
%autosetup -n gevent-%{version} -p1
|
2019-12-17 15:26:13 +08:00
|
|
|
# Remove bundled libraries
|
|
|
|
|
rm -r deps
|
|
|
|
|
# C extension sources will go into debuginfo as normal.
|
|
|
|
|
sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export LIBEV_EMBED=0
|
|
|
|
|
export CARES_EMBED=0
|
|
|
|
|
export GEVENT_NO_CFFI_BUILD=1
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export LIBEV_EMBED=0
|
|
|
|
|
export CARES_EMBED=0
|
|
|
|
|
export GEVENT_NO_CFFI_BUILD=1
|
|
|
|
|
%py3_install
|
|
|
|
|
rm %{buildroot}%{python3_sitearch}/gevent/_*2.py
|
|
|
|
|
rm %{buildroot}%{python3_sitearch}/gevent/__pycache__/_*2.*
|
|
|
|
|
find %{buildroot} -name '.buildinfo' -delete
|
|
|
|
|
# Correct the permissions.
|
|
|
|
|
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
%files -n python3-gevent
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitearch}/gevent*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-06-02 11:37:17 +08:00
|
|
|
* Thu Jun 01 2023 Ge Wang <wang__ge@126.com> - 22.10.2-1
|
|
|
|
|
- Update to version 22.10.2
|
|
|
|
|
|
2022-05-06 10:38:46 +08:00
|
|
|
* Fri May 06 2022 wulei <wulei80@h-partners.com> - 21.1.2-2
|
|
|
|
|
- Fix cannot import name _corecffi from gevent.libuv
|
|
|
|
|
|
2022-03-30 17:50:31 +08:00
|
|
|
* Wed Mar 30 2022 caodongxia <caodongxia@huawei.com> - 21.1.2-1
|
|
|
|
|
- Update to 21.1.2
|
|
|
|
|
|
2020-10-29 10:33:41 +08:00
|
|
|
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 1.3.6-3
|
|
|
|
|
- remove python2 subpackage
|
|
|
|
|
|
2019-12-17 15:26:13 +08:00
|
|
|
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.6-2
|
|
|
|
|
- modify spec format
|
|
|
|
|
|
|
|
|
|
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.6-1
|
|
|
|
|
- Package init
|