1
0

33 Commits

Author SHA256 Message Date
99cf3c694d Accepting request 1295643 from devel:languages:python
- Add patch support-cython-3.1.patch:
  * Support Cython 3.1 changes.

OBS-URL: https://build.opensuse.org/request/show/1295643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=17
2025-07-25 15:05:33 +00:00
1040a24f7d - 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
2025-07-25 05:04:01 +00:00
d9b6e290b4 Accepting request 1290576 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1290576
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=16
2025-07-06 15:14:03 +00:00
826fdfdc00 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=31
2025-07-04 05:28:39 +00:00
467a3fcf94 Accepting request 1273248 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1273248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=15
2025-04-30 17:02:57 +00:00
5dad1a720a - update to 3.1.9
* Reduce the number of iterations in memory leak test to avoid JIT
    triggering
  * Cleanup formatting in a few modules
  * Don't bomb out during egl test when there's no egl devices
  * Regenerated C wrappers with latest Cython
  * Numpy intp type for latest numpy
  * Fix ctypes FormatHandler for Python 3.12+
  * More changes, see upstream commits
- Drop merged 112.patch and numpy2.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=29
2025-04-28 19:21:03 +00:00
e14e4c519e Accepting request 1199989 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1199989
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=14
2024-09-11 14:56:01 +00:00
a9a7567aed Accepting request 1178903 from devel:languages:python
- Cherry-pick upstream patch to fix build with GCC 14
  * https://github.com/mcfletch/pyopengl/pull/112.patch

OBS-URL: https://build.opensuse.org/request/show/1178903
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=13
2024-06-06 10:34:20 +00:00
a9ff18be43 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=25 2024-06-06 06:59:26 +00:00
6ad495e5bf Accepting request 1178768 from home:glaubitz:branches:devel:languages:python
- Cherry-pick upstream patch to fix build with GCC 14
  * https://github.com/mcfletch/pyopengl/pull/112.patch

OBS-URL: https://build.opensuse.org/request/show/1178768
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=24
2024-06-06 06:55:37 +00:00
c7c77b8f3e Accepting request 1136719 from devel:languages:python
- Drop test_numpyaccel.py and test_arraydatatypeaccel.py as they are
  already included in the downloaded tarball

- Update to 3.1.7
- Changing to /master/ vs. hash for Source[1,2] files

OBS-URL: https://build.opensuse.org/request/show/1136719
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=12
2024-01-04 14:59:32 +00:00
3825d8efa5 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=22 2024-01-04 08:36:54 +00:00
aafb906112 - Drop test_numpyaccel.py and test_arraydatatypeaccel.py as they are
already included in the downloaded tarball

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=21
2024-01-04 08:35:52 +00:00
a14f52c902 Accepting request 1136620 from home:sbradnick:branches:devel:languages:python
- Update to 3.1.7
- Changing to /master/ vs. hash for Source[1,2] files

OBS-URL: https://build.opensuse.org/request/show/1136620
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=20
2024-01-04 08:26:17 +00:00
2218a97829 Accepting request 966735 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/966735
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=11
2022-04-04 17:26:31 +00:00
7b7a0a159b Accepting request 966568 from home:sbradnick:branches:devel:languages:python
- Adding _service file
- Cleaning up Source0 declaration since PyPI doesn't have a tarball
- Updating hash for 'accelerate/test' Source[1,2]
- Adding code to %prep section to deal w/ how _service pulls down
  files for the gzip'd tarball

- Update to 3.1.6
  * Pulled directly from https://github.com/mcfletch/pyopengl since
    pypi.org (via py2pack fetch) doesn't have this version available.
  * Seems that some packages which use PyOpenGL and accelerate have
    a soft requirement that they're the same version.

OBS-URL: https://build.opensuse.org/request/show/966568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=18
2022-04-04 06:08:04 +00:00
817a6606e4 Accepting request 881022 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/881022
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=10
2021-03-24 15:16:53 +00:00
3cc675ad6e Accepting request 880827 from home:bnavigator:branches:devel:languages:python
- Don't build the numpy formathandler for python36.
  NumPy is optional and not available for python36 on Tumbleweed.
- Add test files test_arraydatatypeaccel.py and test_numpyaccel.py

OBS-URL: https://build.opensuse.org/request/show/880827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=16
2021-03-24 11:29:43 +00:00
e065d29528 Accepting request 821586 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/821586
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=9
2020-07-18 19:00:37 +00:00
Tomáš Chvátal
7cad447b1a Accepting request 821571 from home:seijikun:branches:openSUSE:Factory
- Update to 3.1.5
  * This aligns python3-opengl-accelerate with python3-opengl, which
    is required by some other packages
  * no real changelog
- Drop patch commit1080.patch, included upstream
- Drop shipped pxd files, included upstream (d401885f6a)

OBS-URL: https://build.opensuse.org/request/show/821571
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=14
2020-07-18 05:56:14 +00:00
f8931a6810 Accepting request 724525 from devel:languages:python
- Add commit1080.patch to make source compatible with opengl 3.1.3b2
  needed for Python 3.7 compatibility
- Add wrapper.pxd and formathandler.pxd needed to rebuild from source

OBS-URL: https://build.opensuse.org/request/show/724525
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=8
2019-09-09 21:43:23 +00:00
Tomáš Chvátal
60c7f3ccf3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=12 2019-08-19 09:12:42 +00:00
Tomáš Chvátal
6d433a4a36 Accepting request 724517 from home:jayvdb:branches:devel:languages:python
Add patch to work with latest beta

OBS-URL: https://build.opensuse.org/request/show/724517
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=11
2019-08-19 09:12:08 +00:00
19e35e4315 Accepting request 644633 from devel:languages:python
- Version update to 3.1.3b1:
  * no real changelog

OBS-URL: https://build.opensuse.org/request/show/644633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=7
2018-11-08 08:47:14 +00:00
Tomáš Chvátal
b927279aa6 - Version update to 3.1.3b1:
* no real changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=9
2018-10-25 12:45:47 +00:00
451a9b70fa Accepting request 502723 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/502723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=6
2017-06-12 13:34:02 +00:00
Todd R
b7c1d9ff88 Accepting request 501161 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/501161
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=7
2017-06-09 19:45:06 +00:00
Stephan Kulow
70a7179327 Accepting request 240926 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/240926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=4
2014-07-15 08:08:42 +00:00
Todd R
c44c686e91 Accepting request 240925 from home:TheBlackCat:branches:devel:languages:python
Update to 3.1.0

OBS-URL: https://build.opensuse.org/request/show/240925
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=5
2014-07-14 12:30:21 +00:00
Stephan Kulow
f56cbfa65f Accepting request 179918 from devel:languages:python
housekeeping sr, necessary due to split between d:l:p and d:l:p3 and (manual) _link removal in Factory.

OBS-URL: https://build.opensuse.org/request/show/179918
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=2
2013-06-19 14:42:53 +00:00
Sascha Peilicke
fe6ab71505 Python3 moved to devel:languages:python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=3
2013-06-17 12:52:23 +00:00
Stephan Kulow
f1b0c5b970 Accepting request 172635 from devel:languages:python
This package provides acceleration for python-opengl, which is already in factory.  They are developed by the same group and are meant to work together.

OBS-URL: https://build.opensuse.org/request/show/172635
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=1
2013-04-22 12:16:27 +00:00
Todd R
07a2ea96c4 Accepting request 172477 from home:TheBlackCat:branches:devel:languages:python
Acceleration for python-opengl

OBS-URL: https://build.opensuse.org/request/show/172477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=1
2013-04-19 12:31:49 +00:00
8 changed files with 64 additions and 96 deletions

View File

@@ -1,54 +0,0 @@
From fbe0fab7947788039cb4fbc9a5a1ea65a0c0e15b Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Fri, 5 Jan 2024 08:48:12 +0100
Subject: [PATCH 1/2] accelerate: Fix type of PyArray_FillWithScalar
The first argument is of type PyArrayObject, not PyObject.
---
accelerate/src/numpy_formathandler.pyx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/accelerate/src/numpy_formathandler.pyx b/accelerate/src/numpy_formathandler.pyx
index 0c01d78e..10813694 100644
--- a/accelerate/src/numpy_formathandler.pyx
+++ b/accelerate/src/numpy_formathandler.pyx
@@ -21,7 +21,7 @@ cdef extern from "numpy/arrayobject.h":
int PyArray_ISCARRAY_RO( np.ndarray instance )
cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
cdef np.ndarray PyArray_EnsureArray(object)
- cdef int PyArray_FillWithScalar(object, object)
+ cdef int PyArray_FillWithScalar(np.ndarray, object)
cdef void import_array()
cdef void* PyArray_DATA( np.ndarray )
cdef int PyArray_NDIM( np.ndarray )
From f62dd58a5437c628d3ff3e626d4507811ef2127b Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Fri, 5 Jan 2024 08:48:43 +0100
Subject: [PATCH 2/2] accelerate: Use recommended way to integrate NumPy with
Cython
This approach follows
<https://cython.readthedocs.io/en/latest/src/tutorial/numpy.html#adding-types>.
---
accelerate/src/numpy_formathandler.pyx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/accelerate/src/numpy_formathandler.pyx b/accelerate/src/numpy_formathandler.pyx
index 10813694..47dacaa0 100644
--- a/accelerate/src/numpy_formathandler.pyx
+++ b/accelerate/src/numpy_formathandler.pyx
@@ -22,7 +22,6 @@ cdef extern from "numpy/arrayobject.h":
cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
cdef np.ndarray PyArray_EnsureArray(object)
cdef int PyArray_FillWithScalar(np.ndarray, object)
- cdef void import_array()
cdef void* PyArray_DATA( np.ndarray )
cdef int PyArray_NDIM( np.ndarray )
cdef int *PyArray_DIMS( np.ndarray )
@@ -226,4 +225,4 @@ cdef class NumpyHandler(FormatHandler):
# Cython numpy tutorial neglects to mention this AFAICS
# get segfaults without it
-import_array()
+np.import_array()

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b7e8b81c60c1a07d5b29fe89a9f1aba3172cd9e4b68046454e913943e7e4cb6f
size 599962

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e88282568e2921cf3983a715a9c2ecd9bb5ee45195d0e2648c17ef47ea18bdb
size 22027

View File

@@ -16,11 +16,11 @@
or my understanding of it.
-->
<!--
<param name="versionrewrite-pattern">227f9c6</param>
<param name="versionrewrite-replacement">3.1.6</param>
-->
<param name="versionrewrite-pattern">29b79e8</param>
<param name="versionrewrite-replacement">3.1.7</param>
-->
<param name="versionrewrite-pattern">5dfca47</param>
<param name="versionrewrite-replacement">3.1.9</param>
<param name="filename">PyOpenGL-accelerate</param>
</service>
<service name="recompress" mode="manual">

View File

@@ -1,22 +0,0 @@
From f897b0ed75c00d4c524be4689683a334832217ac Mon Sep 17 00:00:00 2001
From: "Mike C. Fletcher" <mcfletch@vrplumber.com>
Date: Mon, 1 Jul 2024 11:33:37 -0400
Subject: [PATCH] BUGFIX Numpy intp type for latest numpy
---
accelerate/src/numpy_formathandler.pyx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/accelerate/src/numpy_formathandler.pyx b/accelerate/src/numpy_formathandler.pyx
index 47ed919b..ae5c7bfa 100644
--- a/accelerate/src/numpy_formathandler.pyx
+++ b/accelerate/src/numpy_formathandler.pyx
@@ -20,7 +20,7 @@ cdef extern from "numpy/arrayobject.h":
int NPY_ARRAY_FORCECAST
int PyArray_ISCARRAY( np.ndarray instance )
int PyArray_ISCARRAY_RO( np.ndarray instance )
- cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
+ cdef np.ndarray PyArray_Zeros(int nd, np.npy_intp* dims, np.dtype, int fortran)
cdef np.ndarray PyArray_EnsureArray(object)
cdef int PyArray_FillWithScalar(np.ndarray, object)
cdef void* PyArray_DATA( np.ndarray )

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Fri Jul 25 05:03:22 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-cython-3.1.patch:
* Support Cython 3.1 changes.
-------------------------------------------------------------------
Fri Jul 4 05:28:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Apr 28 15:37:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
- update to 3.1.9
* Reduce the number of iterations in memory leak test to avoid JIT
triggering
* Cleanup formatting in a few modules
* Don't bomb out during egl test when there's no egl devices
* Regenerated C wrappers with latest Cython
* Numpy intp type for latest numpy
* Fix ctypes FormatHandler for Python 3.12+
* More changes, see upstream commits
- Drop merged 112.patch and numpy2.patch
-------------------------------------------------------------------
Tue Sep 10 12:33:04 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-opengl-accelerate
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,23 @@
%define tarname PyOpenGL-accelerate
%define _version 3.1.7
%define _version 3.1.9
%{?sle15_python_module_pythons}
Name: python-opengl-accelerate
Version: %{_version}
Release: 0
Summary: Acceleration for python-opengl
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: http://pyopengl.sourceforge.net
Source0: %{tarname}-%{_version}.tar.gz
# PATCH-FIX-UPSTREAM - accelerate: Fix C type errors for GCC 14/Clang compatibility
Patch0: https://github.com/mcfletch/pyopengl/pull/112.patch
# PATCH-FIX-UPSTREAM https://github.com/mcfletch/pyopengl/commit/f897b0ed75c00d4c524be4689683a334832217ac BUGFIX Numpy intp type for latest numpy
Patch1: numpy2.patch
# 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}}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module numpy-devel if (%python-base without python36-base)}
@@ -58,15 +57,12 @@ code.
mv accelerate/* ./
rmdir accelerate
# Force Cython to rebuild .c files
rm src/*.c
%build
export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -74,8 +70,8 @@ export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"
%files %{python_files}
%license license.txt
%doc README.txt
%doc README.md
%{python_sitearch}/OpenGL_accelerate/
%{python_sitearch}/PyOpenGL_accelerate-*-py%{python_version}.egg-info
%{python_sitearch}/[Pp]y[Oo]pen[Gg][Ll]_accelerate-%{version}.dist-info
%changelog

23
support-cython-3.1.patch Normal file
View File

@@ -0,0 +1,23 @@
From 69e8ced15eb63c3f00293f59cef50d5fad02d884 Mon Sep 17 00:00:00 2001
From: Vsevolod Misiul <vsevolod.misul@innowise.com>
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