Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ecsos:python
python-opengl-accelerate
python-opengl-accelerate.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-opengl-accelerate.spec of Package python-opengl-accelerate
# # spec file for package python-opengl-accelerate # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define tarname PyOpenGL-accelerate %define _version 3.1.7 %{?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 BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module opengl >= %{version}} BuildRequires: %{python_module pytest} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: %{python_module numpy-devel if (%python-base without python36-base)} Recommends: python-numpy Requires: python-opengl >= %{version} Provides: python-PyOpenGL_accelerate = %{version}-%{release} %python_subpackages %description This set of C (Cython) extensions provides acceleration of common operations for slow points in PyOpenGL 3.x. For code which uses large arrays extensively speed-up is around 10% compared to unaccelerated code. %prep %autosetup -p1 -n %{tarname}-%{_version} # _service pulldown creates %%{tarname}-%%{_version}/accelerate/<required files>, # move them to root of build area and remove 'accelerate' directory # to continue as normal. mv accelerate/* ./ rmdir accelerate # Force Cython to rebuild .c files rm src/*.c %build export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check %pytest_arch %files %{python_files} %license license.txt %doc README.txt %{python_sitearch}/OpenGL_accelerate/ %{python_sitearch}/PyOpenGL_accelerate-*-py%{python_version}.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor