]>
Commit | Line | Data |
---|---|---|
9b5306c4 | 1 | %define module PyOpenGL |
5e5b16b4 | 2 | Summary: OpenGL bindings for Python |
b0e7aa0f | 3 | Summary(pl.UTF-8): Dowiązania do OpenGL dla Pythona |
5e5b16b4 | 4 | Name: python-%{module} |
e64ba317 AG |
5 | Version: 3.0.0 |
6 | %define beta b6 | |
7 | Release: 0.%{beta}.1 | |
5e5b16b4 AM |
8 | License: LGPL |
9 | Group: Development/Languages/Python | |
e64ba317 AG |
10 | Source0: http://dl.sourceforge.net/pyopengl/%{module}-%{version}%{beta}.tar.gz |
11 | # Source0-md5: 6a70dd315767064ec78b84a92d2420a8 | |
58c3fba7 | 12 | Patch0: %{name}-link.patch |
5e5b16b4 | 13 | URL: http://pyopengl.sourceforge.net/ |
861d3682 | 14 | BuildRequires: OpenGL-GLU-devel |
58c3fba7 | 15 | BuildRequires: OpenGL-glut-devel |
861d3682 | 16 | BuildRequires: python-Numeric-devel >= 22.0 |
05ffa257 | 17 | BuildRequires: python-devel >= 2.2 |
58c3fba7 | 18 | %pyrequires_eq python-libs |
861d3682 JB |
19 | Requires: python-Numeric >= 22.0 |
20 | Obsoletes: PyOpenGL | |
e64ba317 | 21 | Obsoletes: python-PyOpenGL-examples |
9b5306c4 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5e5b16b4 | 23 | |
58c3fba7 | 24 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
5e5b16b4 AM |
25 | |
26 | %description | |
27 | OpenGL bindings for Python including support for GL extensions, GLU, | |
28 | WGL, GLUT, GLE, and Tk. | |
29 | ||
f64240f2 JR |
30 | %description -l pl.UTF-8 |
31 | Dowiązania do OpenGL dla Pythona wraz z rozszerzeniami GL, GLU, WGL, | |
58c3fba7 JB |
32 | GLUT, GLE i Tk. |
33 | ||
5e5b16b4 | 34 | %prep |
e64ba317 | 35 | %setup -q -n %{module}-%{version}%{beta} |
5e5b16b4 AM |
36 | |
37 | %build | |
58c3fba7 | 38 | CFLAGS="%{rpmcflags}"; export CFLAGS |
5e5b16b4 AM |
39 | python setup.py build |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | python setup.py install \ | |
e64ba317 AG |
45 | --root=$RPM_BUILD_ROOT \ |
46 | --single-version-externally-managed | |
5e5b16b4 | 47 | |
58c3fba7 | 48 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
58c3fba7 | 49 | |
5e5b16b4 AM |
50 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
51 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
58c3fba7 JB |
52 | %py_postclean |
53 | ||
5e5b16b4 AM |
54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
58c3fba7 JB |
59 | %dir %{py_sitedir}/OpenGL |
60 | %{py_sitedir}/OpenGL/__init__.py[co] | |
61 | %{py_sitedir}/OpenGL/quaternion.py[co] | |
62 | %{py_sitedir}/OpenGL/trackball.py[co] | |
63 | %{py_sitedir}/OpenGL/scripts | |
64 | %{py_sitedir}/OpenGL/version | |
65 | # GL | |
66 | %dir %{py_sitedir}/OpenGL/GL | |
67 | %dir %{py_sitedir}/OpenGL/GL/[!G_]* | |
68 | %dir %{py_sitedir}/OpenGL/GL/_3DFX | |
69 | %{py_sitedir}/OpenGL/GL/*/*.py[co] | |
70 | %attr(755,root,root) %{py_sitedir}/OpenGL/GL/*/*.so | |
71 | %{py_sitedir}/OpenGL/GL/GL__init__.py[co] | |
72 | %{py_sitedir}/OpenGL/GL/__init__.py[co] | |
73 | %attr(755,root,root) %{py_sitedir}/OpenGL/GL/_GL__init__.so | |
74 | # GLU | |
75 | %dir %{py_sitedir}/OpenGL/GLU | |
76 | %dir %{py_sitedir}/OpenGL/GLU/[!G]* | |
77 | %{py_sitedir}/OpenGL/GLU/*/*.py[co] | |
78 | %attr(755,root,root) %{py_sitedir}/OpenGL/GLU/*/*.so | |
79 | %{py_sitedir}/OpenGL/GLU/GLU__init__.py[co] | |
80 | %{py_sitedir}/OpenGL/GLU/__init__.py[co] | |
81 | %attr(755,root,root) %{py_sitedir}/OpenGL/GLU/_GLU__init__.so | |
82 | # GLE | |
83 | %{py_sitedir}/OpenGL/GLE.py[co] | |
84 | %attr(755,root,root) %{py_sitedir}/OpenGL/_GLE.so | |
85 | # GLUT | |
86 | %{py_sitedir}/OpenGL/GLUT.py[co] | |
87 | %attr(755,root,root) %{py_sitedir}/OpenGL/_GLUT.so | |
88 | # GLX | |
89 | %{py_sitedir}/OpenGL/GLX | |
90 | # Tk | |
91 | %{py_sitedir}/OpenGL/Tk | |
92 | # WGL | |
93 | %{py_sitedir}/OpenGL/WGL |