3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
5 %bcond_with tests # tests (display required)
7 %define module PyOpenGL
8 Summary: OpenGL bindings for Python
9 Summary(pl.UTF-8): Dowiązania do OpenGL dla Pythona
10 Name: python-%{module}
15 Group: Development/Languages/Python
16 #Source0Download: https://pypi.org/simple/pyopengl/
17 Source0: https://files.pythonhosted.org/packages/source/p/pyopengl/%{module}-%{version}.tar.gz
18 # Source0-md5: 0de021941018d46d91e5a8c11c071693
19 Source1: http://downloads.sourceforge.net/pyopengl/%{module}-Demo-3.0.1a1.tar.gz
20 # Source1-md5: 75b66abdf2d0e5003798c0fa12abee6e
21 URL: http://pyopengl.sourceforge.net/
23 BuildRequires: python-devel >= 1:2.5
24 BuildRequires: python-setuptools
26 BuildRequires: python-numpy
27 BuildRequires: python-pygame
31 BuildRequires: python3-devel >= 1:3.2
32 BuildRequires: python3-setuptools
34 BuildRequires: python3-numpy
35 BuildRequires: python3-pygame
38 BuildRequires: rpm-pythonprov
39 BuildRequires: rpmbuild(macros) >= 1.714
40 Requires: python-modules >= 1:2.5
41 Requires: python-numpy
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 OpenGL bindings for Python including support for GL extensions, GLU,
48 WGL, GLUT, GLE, and Tk.
50 %description -l pl.UTF-8
51 Dowiązania do OpenGL dla Pythona wraz z rozszerzeniami GL, GLU, WGL,
55 Summary: Demos for PyOpenGL
56 Summary(pl.UTF-8): Programy demonstracyjne dla pakietu PyOpenGL
57 Group: Development/Languages/Python
58 Requires: %{name} = %{epoch}:%{version}-%{release}
63 %description examples -l pl.UTF-8
64 Programy demonstracyjne dla pakietu PyOpenGL.
66 %package -n python3-%{module}
67 Summary: OpenGL bindings for Python
68 Summary(pl.UTF-8): Dowiązania do OpenGL dla Pythona
69 Group: Libraries/Python
70 Requires: python3-modules >= 1:3.2
71 Requires: python3-numpy
73 %description -n python3-%{module}
74 OpenGL bindings for Python including support for GL extensions, GLU,
75 WGL, GLUT, GLE, and Tk.
77 %description -n python3-%{module} -l pl.UTF-8
78 Dowiązania do OpenGL dla Pythona wraz z rozszerzeniami GL, GLU, WGL,
81 %package -n python3-%{module}-examples
82 Summary: Demos for PyOpenGL
83 Summary(pl.UTF-8): Programy demonstracyjne dla pakietu PyOpenGL
84 Group: Development/Languages/Python
85 Requires: python3-%{module} = %{epoch}:%{version}-%{release}
87 %description -n python3-%{module}-examples
90 %description -n python3-%{module}-examples -l pl.UTF-8
91 Programy demonstracyjne dla pakietu PyOpenGL.
94 %setup -q -n %{module}-%{version} -a 1
100 cd %{module}-Demo-3.0.1a1
106 %{__python} test_core.py
114 cd %{module}-Demo-3.0.1a1
120 %{__python3} test_core.py
126 rm -rf $RPM_BUILD_ROOT
131 cd %{module}-Demo-3.0.1a1
141 cd %{module}-Demo-3.0.1a1
147 rm -rf $RPM_BUILD_ROOT
151 %defattr(644,root,root,755)
153 %{py_sitescriptdir}/OpenGL
154 %{py_sitescriptdir}/PyOpenGL-%{version}-py*.egg-info
157 %defattr(644,root,root,755)
158 %{py_sitescriptdir}/PyOpenGL-Demo
159 %{py_sitescriptdir}/PyOpenGL_Demo-3.0.1a1-py*.egg-info
163 %files -n python3-%{module}
164 %defattr(644,root,root,755)
166 %{py3_sitescriptdir}/OpenGL
167 %{py3_sitescriptdir}/PyOpenGL-%{version}-py*.egg-info
169 %files -n python3-%{module}-examples
170 %defattr(644,root,root,755)
171 %{py3_sitescriptdir}/PyOpenGL-Demo
172 %{py3_sitescriptdir}/PyOpenGL_Demo-3.0.1a1-py*.egg-info