Accepting request 918056 from home:fusionfuture:branches:devel:languages:python
- Add libuv >= 1.28.0 BuildRequires.
(c2b65bc8d2
)
- Do not include autogenerated source code (loop.c).
- Add rpmlintrc to suppress devel-file-in-non-devel-package messages.
OBS-URL: https://build.opensuse.org/request/show/918056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvloop?expand=0&rev=20
This commit is contained in:
parent
64fd87943b
commit
787dd014ce
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 9 14:04:48 UTC 2021 - Fusion Future <qydwhotmail@gmail.com>
|
||||||
|
|
||||||
|
- Add libuv >= 1.28.0 BuildRequires.
|
||||||
|
(https://github.com/MagicStack/uvloop/commit/c2b65bc8d2e1bb759a755adb255f095fb40ce953)
|
||||||
|
- Do not include autogenerated source code (loop.c).
|
||||||
|
- Add rpmlintrc to suppress devel-file-in-non-devel-package messages.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 30 16:07:06 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Mon Aug 30 16:07:06 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
4
python-uvloop.rpmlintrc
Normal file
4
python-uvloop.rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# The devel files identified by rpmlint are required for
|
||||||
|
# uvloop, it does not make sense to put them in a separate
|
||||||
|
# devel package
|
||||||
|
addFilter("devel-file-in-non-devel-package")
|
@ -19,6 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%define skip_python36 1
|
%define skip_python36 1
|
||||||
|
%define modname uvloop
|
||||||
Name: python-uvloop
|
Name: python-uvloop
|
||||||
Version: 0.16.0
|
Version: 0.16.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -27,6 +28,7 @@ License: Apache-2.0 AND MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://github.com/MagicStack/uvloop
|
URL: http://github.com/MagicStack/uvloop
|
||||||
Source: https://files.pythonhosted.org/packages/source/u/uvloop/uvloop-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/u/uvloop/uvloop-%{version}.tar.gz
|
||||||
|
Source1: python-uvloop.rpmlintrc
|
||||||
BuildRequires: %{python_module Cython >= 0.28}
|
BuildRequires: %{python_module Cython >= 0.28}
|
||||||
BuildRequires: %{python_module aiohttp}
|
BuildRequires: %{python_module aiohttp}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
@ -36,7 +38,7 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(libuv)
|
BuildRequires: pkgconfig(libuv) >= 1.28.0
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -62,6 +64,8 @@ rm -vrf vendor/
|
|||||||
# https://github.com/MagicStack/uvloop/issues/70
|
# https://github.com/MagicStack/uvloop/issues/70
|
||||||
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/_testbase.py
|
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/_testbase.py
|
||||||
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/__pycache__/_testbase.*
|
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/__pycache__/_testbase.*
|
||||||
|
# Remove autogenerated source code
|
||||||
|
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/loop.c
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Actually the tests are VERY flaky, thus continue even if they fail :(
|
# Actually the tests are VERY flaky, thus continue even if they fail :(
|
||||||
|
Loading…
Reference in New Issue
Block a user