forked from pool/python-opengl
* tons of changes, but no upstream documentation beside
ChangeLog.txt
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl?expand=0&rev=11
77 lines
2.2 KiB
RPMSpec
77 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-opengl
|
|
#
|
|
# Copyright (c) 2012 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
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: libdrm-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-imaging
|
|
BuildRequires: swig
|
|
BuildRequires: tk-devel
|
|
BuildRequires: xorg-x11
|
|
%if %suse_version > 1110
|
|
BuildRequires: libgle-devel
|
|
BuildRequires: python-numpy
|
|
%else
|
|
BuildRequires: gle
|
|
BuildRequires: python-numeric
|
|
%endif
|
|
%define tarname PyOpenGL
|
|
Summary: OpenGL bindings for Python
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Python
|
|
Version: 3.0.1
|
|
Release: 0
|
|
Source0: %{tarname}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Prefix: %{_prefix}
|
|
%{py_requires}
|
|
Requires: tk >= 8.1
|
|
Url: http://pyopengl.sourceforge.net
|
|
# this is only noarch as long as the accelerator module is missing
|
|
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
OpenGL bindings for Python including support for GL extensions, GLU,
|
|
WGL, GLUT, GLE, and Tk.
|
|
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{tarname}-%{version}
|
|
#sed -i '/^library_dirs/ s@/lib@/%{_lib}@g' config/linux.cfg
|
|
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
|
find . -name CVS -type d -print0 | xargs -0 rm -rf
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS -DGLX_GLXEXT_LEGACY" python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog.txt license.txt
|
|
|
|
%changelog
|