Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyuv for openSUSE:Factory checked in at 2022-06-23 10:25:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyuv (Old) and /work/SRC/openSUSE:Factory/.python-pyuv.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyuv" Thu Jun 23 10:25:01 2022 rev:4 rq:984614 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyuv/python-pyuv.changes 2022-01-31 22:58:27.129124977 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyuv.new.1548/python-pyuv.changes 2022-06-23 10:25:45.263836741 +0200 @@ -1,0 +2,5 @@ +Wed Jun 22 14:31:39 UTC 2022 - Mark??ta Machov?? <mmach...@suse.com> + +- Fix build with Python 3.10 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyuv.spec ++++++ --- /var/tmp/diff_new_pack.n7W2NU/_old 2022-06-23 10:25:45.631837141 +0200 +++ /var/tmp/diff_new_pack.n7W2NU/_new 2022-06-23 10:25:45.635837146 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyuv # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python310 1 Name: python-pyuv Version: 1.4.0 Release: 0 @@ -56,7 +55,17 @@ %build export CFLAGS="%{optflags}" -%python_build +%{python_expand \ +# fix for py3.10, but it doesn't work for py3.8 and lower +# https://github.com/saghul/pyuv/issues/271 +%if %{$python_version_nodots} > 38 +sed -i 's/Py_REFCNT(self) = refcnt/Py_SET_REFCNT(self, refcnt)/' src/handle.c +%else +# what if python3.8 isn't first in the line? +sed -i 's/Py_SET_REFCNT(self, refcnt)/Py_REFCNT(self) = refcnt/' src/handle.c +%endif +$python setup.py build +} %install %python_install