forked from pool/python-opengl-accelerate
Accepting request 1273192 from home:mcalabkova:branches:devel:languages:python
- 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/request/show/1273192
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=29
This commit is contained in:
@@ -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,7 +17,7 @@
|
||||
|
||||
|
||||
%define tarname PyOpenGL-accelerate
|
||||
%define _version 3.1.7
|
||||
%define _version 3.1.9
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-opengl-accelerate
|
||||
Version: %{_version}
|
||||
@@ -27,10 +27,6 @@ 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
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module opengl >= %{version}}
|
||||
@@ -58,9 +54,6 @@ code.
|
||||
mv accelerate/* ./
|
||||
rmdir accelerate
|
||||
|
||||
# Force Cython to rebuild .c files
|
||||
rm src/*.c
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"
|
||||
%python_build
|
||||
@@ -74,7 +67,7 @@ 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user