Accepting request 1072130 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1072130
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gevent?expand=0&rev=39
This commit is contained in:
Dominique Leuenberger 2023-03-17 16:02:23 +00:00 committed by Git OBS Bridge
commit 3149eb1425
2 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 8 15:30:19 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file.
-------------------------------------------------------------------
Sun Oct 16 17:41:54 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-gevent
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,22 +16,20 @@
#
%define modname gevent
# on TW, gevent is able to use system libev, Leaps et.al. need the bundled version
%if 0%{?suse_version} <= 1500
%define use_bundled_libev 1
%else
%define use_bundled_libev 0
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname gevent
Name: python-gevent
Version: 22.10.1
Release: 0
Summary: Python network library that uses greenlet and libevent
License: MIT
Group: Development/Languages/Python
URL: http://www.gevent.org/
URL: https://www.gevent.org/
# Source: https://files.pythonhosted.org/packages/source/g/gevent/gevent-%%{version}.tar.gz
Source0: https://github.com/gevent/%{modname}/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
Source100: %{name}-rpmlintrc
@ -58,9 +56,6 @@ 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
@ -68,6 +63,9 @@ Requires: python-greenlet
Requires: python-requests
Requires: python-zope.event
Requires: python-zope.interface
%if ! 0%{use_bundled_libev}
BuildRequires: pkgconfig(libev)
%endif
%if 0%{?suse_version} || 0%{?fedora_version} || 0%{?rhel} >= 8
Recommends: python-psutil
%else
@ -170,8 +168,8 @@ fi
%files %{python_files}
%doc AUTHORS README.rst TODO CHANGES.rst CONTRIBUTING.rst
%license LICENSE*
%{python_sitearch}/gevent-%{version}-py*.egg-info
%{python_sitearch}/gevent/
%{python_sitearch}/gevent-%{version}*-info
%{python_sitearch}/gevent
%files -n python-gevent-doc
%license LICENSE*