From 0c764e3b4ce9d8ca66018cf8333446303e40aec85514cd92b3995667276022b9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 25 Jul 2025 05:04:01 +0000 Subject: [PATCH] - Add patch support-cython-3.1.patch: * Support Cython 3.1 changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=33 --- python-opengl-accelerate.changes | 6 ++++++ python-opengl-accelerate.spec | 2 ++ support-cython-3.1.patch | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 support-cython-3.1.patch diff --git a/python-opengl-accelerate.changes b/python-opengl-accelerate.changes index 1f3ad4e..7ab12ad 100644 --- a/python-opengl-accelerate.changes +++ b/python-opengl-accelerate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 25 05:03:22 UTC 2025 - Steve Kowalik + +- Add patch support-cython-3.1.patch: + * Support Cython 3.1 changes. + ------------------------------------------------------------------- Fri Jul 4 05:28:05 UTC 2025 - Steve Kowalik diff --git a/python-opengl-accelerate.spec b/python-opengl-accelerate.spec index 42577f4..7cdd3be 100644 --- a/python-opengl-accelerate.spec +++ b/python-opengl-accelerate.spec @@ -26,6 +26,8 @@ Summary: Acceleration for python-opengl License: BSD-3-Clause URL: http://pyopengl.sourceforge.net Source0: %{tarname}-%{_version}.tar.gz +# PATCH-FIX-UPSTREAM Based on gh#mcfletch/pyopengl#146 +Patch0: support-cython-3.1.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module opengl >= %{version}} diff --git a/support-cython-3.1.patch b/support-cython-3.1.patch new file mode 100644 index 0000000..fadb1bd --- /dev/null +++ b/support-cython-3.1.patch @@ -0,0 +1,23 @@ +From 69e8ced15eb63c3f00293f59cef50d5fad02d884 Mon Sep 17 00:00:00 2001 +From: Vsevolod Misiul +Date: Mon, 19 May 2025 14:46:00 +0300 +Subject: [PATCH 1/2] For linux on arm64 the long type is not defined, so grab + it from ctypes.c_long + +--- + accelerate/src/vbo.pyx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/accelerate/src/vbo.pyx b/accelerate/src/vbo.pyx +index 13f9e99d..6e92c059 100644 +--- a/accelerate/src/vbo.pyx ++++ b/accelerate/src/vbo.pyx +@@ -1,6 +1,7 @@ + """Cython-coded VBO implementation""" + #cython: language_level=3 + import ctypes, weakref ++from ctypes import c_long as long + from OpenGL_accelerate.formathandler cimport FormatHandler + from OpenGL import error + from OpenGL._bytes import bytes,unicode +