forked from pool/python-opengl
Update to 3.1.0 OBS-URL: https://build.opensuse.org/request/show/240924 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl?expand=0&rev=16
76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-opengl
|
|
#
|
|
# Copyright (c) 2014 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: python-opengl
|
|
%define tarname PyOpenGL
|
|
Version: 3.1.0
|
|
Release: 0
|
|
Summary: OpenGL bindings for Python
|
|
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: fdupes
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: libdrm-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-Pillow
|
|
BuildRequires: python-numpy
|
|
BuildRequires: swig
|
|
BuildRequires: tk-devel
|
|
BuildRequires: xorg-x11
|
|
Requires: python-numpy
|
|
Requires: tk >= 8.1
|
|
Recommends: python-opengl-accelerate
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{py_requires}
|
|
# this is only noarch as long as the accelerator module is missing
|
|
%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version:1}
|
|
BuildRequires: libgle-devel
|
|
BuildArch: noarch
|
|
%else
|
|
BuildRequires: gle
|
|
%endif
|
|
|
|
%description
|
|
OpenGL bindings for Python including support for GL extensions, GLU,
|
|
WGL, GLUT, GLE, and Tk.
|
|
|
|
%prep
|
|
%setup -q -n %{tarname}-%{version}
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
chmod a+x %{buildroot}%{python_sitelib}/OpenGL/arrays/_buffers.py
|
|
chmod a+x %{buildroot}%{python_sitelib}/OpenGL/arrays/buffers.py
|
|
%fdupes %{buildroot}%{python_sitelib}/OpenGL/
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc license.txt
|
|
%{python_sitelib}/OpenGL/
|
|
%{python_sitelib}/PyOpenGL-%{version}-py*.egg-info
|
|
|
|
%changelog
|