Fix compile failed of python-gevent

This commit is contained in:
starlet-dx 2022-01-07 17:49:05 +08:00
parent 5cebe06471
commit f621fef73a
3 changed files with 8 additions and 6 deletions

Binary file not shown.

BIN
gevent-20.6.1.tar.gz Normal file

Binary file not shown.

View File

@ -2,14 +2,14 @@
%global optflags %(echo %{optflags} -I%{_includedir}/libev)
Name: python-gevent
Version: 1.3.6
Release: 3
Version: 20.6.1
Release: 1
Summary: A coroutine-based Python networking library
License: MIT
URL: http://www.gevent.org/
Source0: https://files.pythonhosted.org/packages/source/g/gevent/gevent-%{version}.tar.gz
BuildRequires: gcc c-ares-devel libev-devel
BuildRequires: gcc c-ares-devel libev-devel libuv-devel
%description
gevent is a coroutine -based Python networking library that uses greenlet to
@ -32,6 +32,7 @@ Features include:
Summary: %{summary}
%{?python_provide:%python_provide python3-gevent}
BuildRequires: python3-devel python3-greenlet-devel
BuildRequires: python3-setuptools
Requires: python3-greenlet
%description -n python3-gevent
@ -52,9 +53,7 @@ Features include:
Python 3 version.
%prep
%autosetup -n gevent-%{version}
# Remove bundled libraries
rm -r deps
%autosetup -n gevent-%{version} -p1
# C extension sources will go into debuginfo as normal.
sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py
@ -84,6 +83,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
%{python3_sitearch}/gevent*
%changelog
* Fri Jan 07 2022 yaoxin <yaoxin30@huawei.com> - 20.6.1-1
- Fix compile failed of python-gevent
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 1.3.6-3
- remove python2 subpackage