forked from pool/python-opengl-accelerate
Python3 moved to devel:languages:python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
f1b0c5b970
commit
fe6ab71505
@@ -25,8 +25,8 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Url: http://pyopengl.sourceforge.net
|
Url: http://pyopengl.sourceforge.net
|
||||||
Source0: https://pypi.python.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz
|
Source0: https://pypi.python.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-Cython
|
BuildRequires: python-Cython
|
||||||
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-numpy-devel
|
BuildRequires: python-numpy-devel
|
||||||
BuildRequires: python-opengl == %{version}
|
BuildRequires: python-opengl == %{version}
|
||||||
Requires: python-numpy
|
Requires: python-numpy
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Apr 18 13:41:53 UTC 2013 - toddrme2178@gmail.com
|
|
||||||
|
|
||||||
- Initial version
|
|
||||||
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package python3-opengl-accelerate
|
|
||||||
#
|
|
||||||
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
Name: python3-opengl-accelerate
|
|
||||||
%define tarname PyOpenGL-accelerate
|
|
||||||
Version: 3.0.2
|
|
||||||
Release: 0
|
|
||||||
Summary: Acceleration for python-opengl
|
|
||||||
License: BSD-3-Clause
|
|
||||||
Group: Development/Libraries/Python
|
|
||||||
Url: http://pyopengl.sourceforge.net
|
|
||||||
Source0: https://pypi.python.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-Cython
|
|
||||||
BuildRequires: python3-numpy-devel
|
|
||||||
BuildRequires: python3-opengl == %{version}
|
|
||||||
Requires: python3-numpy
|
|
||||||
Requires: python3-opengl == %{version}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{py_requires}
|
|
||||||
|
|
||||||
%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
|
|
||||||
%setup -q -n %{tarname}-%{version}
|
|
||||||
|
|
||||||
%build
|
|
||||||
CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" python3 setup.py build
|
|
||||||
|
|
||||||
%install
|
|
||||||
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README.txt license.txt
|
|
||||||
%{python3_sitearch}/OpenGL_accelerate/
|
|
||||||
%{python3_sitearch}/PyOpenGL_accelerate-%{version}-py*.egg-info
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
Reference in New Issue
Block a user