15
0
forked from pool/python-gevent

- Use bundled libev library to overcome the current

incompatibility with libev > 4.25. gh#gevent/gevent#1501

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=63
This commit is contained in:
2020-01-03 14:37:00 +00:00
committed by Git OBS Bridge
parent e6dc6f473a
commit 38f5252610
2 changed files with 18 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jan 3 11:51:00 CET 2020 - Matej Cepl <mcepl@suse.com>
- Use bundled libev library to overcome the current
incompatibility with libev > 4.25. gh#gevent/gevent#1501
-------------------------------------------------------------------
Thu Jan 2 14:09:44 CET 2020 - Matej Cepl <mcepl@suse.com>

View File

@@ -16,6 +16,9 @@
#
# DON'T USE FOR SLE, USES BUNDLED VERSION OF LIBEV!!!
%define use_bundled_libev 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modversion 1.5a3
%define modname gevent
@@ -50,7 +53,9 @@ BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: python3-testsuite
BuildRequires: pkgconfig(libcares)
%if 0%{?use_bundled_libev}
BuildRequires: pkgconfig(libev)
%endif
BuildRequires: pkgconfig(libuv)
Requires: python-cffi
Requires: python-dnspython
@@ -98,13 +103,13 @@ Documentation and examples for %{name}.
sed -i -e '1s!bin/env python!bin/python!' examples/*.py
%build
export LIBEV_EMBED=0
export LIBEV_EMBED=%{use_bundled_libev}
export CARES_EMBED=0
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
export LIBEV_EMBED=0
export LIBEV_EMBED=%{use_bundled_libev}
export CARES_EMBED=0
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
@@ -116,17 +121,15 @@ export CARES_EMBED=0
# Also, gh#gevent/gevent#1390
# Also, gh#gevent/gevent#1501
cat <<'EOF' >> network_tests.txt
test__close_backend_fd.py
test__core_stat.py
test___example_servers.py
test__all__.py
test___config.py
test__doctests.py
test__examples.py
test__execmodules.py
test__getaddrinfo_import.py
test_httplib.py
test_https.py
test__select.py
test__server.py
test__server_pywsgi.py
test__socket_dns.py
test_socket.py
test__socket_ssl.py
test__ssl.py
test_ssl.py