File python-opengl-accelerate.spec of Package python-opengl-accelerate

# spec file for package python-opengl-accelerate
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define tarname PyOpenGL-accelerate
Name:           python-opengl-accelerate
Version:        3.1.1a1
Release:        0
Summary:        Acceleration for python-opengl
License:        BSD-3-Clause
Group:          Development/Libraries/Python
BuildRequires:  %{python_module Cython}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module numpy-devel}
BuildRequires:  %{python_module opengl == %{version}}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-numpy
Requires:       python-opengl == %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%setup -q -n %{tarname}-%{version}

export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"

%python_expand %fdupes -s %{buildroot}%{$python_sitearch}

%files %{python_files}
%doc README.txt license.txt

openSUSE Build Service is sponsored by