diff --git a/python-uvloop.changes b/python-uvloop.changes index df603b7..8162c89 100644 --- a/python-uvloop.changes +++ b/python-uvloop.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Sep 9 14:04:48 UTC 2021 - Fusion Future + +- 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 diff --git a/python-uvloop.rpmlintrc b/python-uvloop.rpmlintrc new file mode 100644 index 0000000..fc885a3 --- /dev/null +++ b/python-uvloop.rpmlintrc @@ -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") diff --git a/python-uvloop.spec b/python-uvloop.spec index 725a8c8..b334b06 100644 --- a/python-uvloop.spec +++ b/python-uvloop.spec @@ -19,6 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 +%define modname uvloop Name: python-uvloop Version: 0.16.0 Release: 0 @@ -27,6 +28,7 @@ License: Apache-2.0 AND MIT Group: Development/Languages/Python URL: http://github.com/MagicStack/uvloop 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 aiohttp} BuildRequires: %{python_module devel} @@ -36,12 +38,12 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros -BuildRequires: pkgconfig(libuv) +BuildRequires: pkgconfig(libuv) >= 1.28.0 %python_subpackages %description uvloop is a drop-in replacement of the built-in asyncio -event loop. uvloop is implemented in Cython and uses libuv +event loop. uvloop is implemented in Cython and uses libuv under the hood. %prep @@ -62,6 +64,8 @@ rm -vrf vendor/ # 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}/__pycache__/_testbase.* +# Remove autogenerated source code +%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/loop.c %check # Actually the tests are VERY flaky, thus continue even if they fail :(