[packages/python3-skia-pathops] Up to 0.9.2

arekm arekm at pld-linux.org
Thu Nov 12 09:56:59 CET 2026


commit 6037b42201cb37f03344d5a18afc22f1f95d3749
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 03:34:00 2026 +0100

    Up to 0.9.2

 python3-skia-pathops-cflags.patch | 16 ++++++++++++++++
 python3-skia-pathops.spec         | 20 ++++++++++----------
 2 files changed, 26 insertions(+), 10 deletions(-)
---
diff --git a/python3-skia-pathops.spec b/python3-skia-pathops.spec
index e9d80b6..574a225 100644
--- a/python3-skia-pathops.spec
+++ b/python3-skia-pathops.spec
@@ -6,32 +6,32 @@
 Summary:	Boolean operations on paths using the Skia library
 Summary(pl.UTF-8):	Operacje logiczne na ścieżkach przy użyciu biblioteki Skia
 Name:		python3-skia-pathops
-Version:	0.8.0.post2
+Version:	0.9.2
 Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/skia-pathops/
-Source0:	https://files.pythonhosted.org/packages/source/s/skia-pathops/skia_pathops-%{version}.zip
-# Source0-md5:	ca966c20deeaa87fb5077d19a5d23768
+Source0:	https://files.pythonhosted.org/packages/source/s/skia-pathops/skia_pathops-%{version}.tar.gz
+# Source0-md5:	bb9c7d1e3728c6e8bc1b25bdda82b70e
 Patch0:		%{name}-build.patch
+Patch1:		%{name}-cflags.patch
 URL:		https://pypi.org/project/skia-pathops/
 BuildRequires:	gn
 BuildRequires:	libstdc++-devel >= 6:5
 BuildRequires:	ninja
-BuildRequires:	python3-Cython >= 0.28.4
-BuildRequires:	python3-devel >= 1:3.8
+BuildRequires:	python3-Cython >= 3.2.0
+BuildRequires:	python3-devel >= 1:3.10
+BuildRequires:	python3-packaging
 BuildRequires:	python3-setuptools
 BuildRequires:	python3-setuptools_scm
 %if %{with tests}
 BuildRequires:	python3-pytest >= 3.0.0
-BuildRequires:	python3-pytest-cython
 #BuildRequires:	python3-pytest-randomly >= 1.2.3
 #BuildRequires:	python3-pytest-xdist >= 1.22.2
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-BuildRequires:	unzip
-Requires:	python3-modules >= 1:3.8
+Requires:	python3-modules >= 1:3.10
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,13 +47,13 @@ różnice, różnice symetryczne).
 %prep
 %setup -q -n skia_pathops-%{version}
 %patch -P 0 -p1
+%patch -P 1 -p1
 
 %build
 %py3_build
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="pytest_cython.plugin" \
 PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
 %{__python3} -m pytest tests
 %endif
@@ -71,6 +71,6 @@ rm -rf $RPM_BUILD_ROOT
 %doc LICENSE README.md
 %dir %{py3_sitedir}/pathops
 %{py3_sitedir}/pathops/*.py
-%attr(755,root,root) %{py3_sitedir}/pathops/_pathops.cpython-*.so
+%attr(755,root,root) %{py3_sitedir}/pathops/_pathops.abi3.so
 %{py3_sitedir}/pathops/__pycache__
 %{py3_sitedir}/skia_pathops-%{version}-py*.egg-info
diff --git a/python3-skia-pathops-cflags.patch b/python3-skia-pathops-cflags.patch
new file mode 100644
index 0000000..1fcc08a
--- /dev/null
+++ b/python3-skia-pathops-cflags.patch
@@ -0,0 +1,16 @@
+bundled skia is built by gn, which ignores $CFLAGS; pass them as extra_cflags
+
+--- skia_pathops-0.9.2/src/cpp/skia-builder/build_skia.py.orig
++++ skia_pathops-0.9.2/src/cpp/skia-builder/build_skia.py
+@@ -44,7 +44,10 @@
+     "skia_enable_spirv_validation=false",
+     "skia_use_lua=false",
+     "skia_use_wuffs=false",
+-    'extra_cflags=["-DSK_DISABLE_LEGACY_PNG_WRITEBUFFER"]',
++    'extra_cflags=[{}]'.format(", ".join(
++        '"{}"'.format(f) for f in
++        ["-DSK_DISABLE_LEGACY_PNG_WRITEBUFFER"] + os.environ.get("CFLAGS", "").split()
++    )),
+ ]
+ if sys.platform != "win32":
+     # On Linux, I need this flag otherwise I get undefined symbol upon importing;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-skia-pathops.git/commitdiff/6037b42201cb37f03344d5a18afc22f1f95d3749



More information about the pld-cvs-commit mailing list