]>
Commit | Line | Data |
---|---|---|
cc8b386e | 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} |
0e091076 | 5 | Version: 3.0.1 |
d557cf90 | 6 | Release: 1 |
0e091076 | 7 | Epoch: 1 |
5e5b16b4 AM |
8 | License: LGPL |
9 | Group: Development/Languages/Python | |
eff6a30c | 10 | Source0: http://downloads.sourceforge.net/pyopengl/%{module}-%{version}.tar.gz |
0e091076 | 11 | # Source0-md5: 221d4a6a0928fcfeef26751370ec5f52 |
12 | Source1: http://downloads.sourceforge.net/pyopengl/%{module}-Demo-%{version}a1.tar.gz | |
cc8b386e | 13 | # Source1-md5: 75b66abdf2d0e5003798c0fa12abee6e |
5e5b16b4 | 14 | URL: http://pyopengl.sourceforge.net/ |
861d3682 | 15 | BuildRequires: OpenGL-GLU-devel |
58c3fba7 | 16 | BuildRequires: OpenGL-glut-devel |
861d3682 | 17 | BuildRequires: python-Numeric-devel >= 22.0 |
cc8b386e | 18 | BuildRequires: python-devel |
58c3fba7 | 19 | %pyrequires_eq python-libs |
44b3a963 | 20 | BuildRequires: rpm-pythonprov |
06d1bbff | 21 | BuildRequires: rpmbuild(macros) >= 1.219 |
cc8b386e | 22 | Requires: python-Numeric >= 22.0 |
861d3682 | 23 | Obsoletes: PyOpenGL |
9b5306c4 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5e5b16b4 | 25 | |
58c3fba7 | 26 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
5e5b16b4 AM |
27 | |
28 | %description | |
29 | OpenGL bindings for Python including support for GL extensions, GLU, | |
30 | WGL, GLUT, GLE, and Tk. | |
31 | ||
f64240f2 JR |
32 | %description -l pl.UTF-8 |
33 | Dowiązania do OpenGL dla Pythona wraz z rozszerzeniami GL, GLU, WGL, | |
58c3fba7 JB |
34 | GLUT, GLE i Tk. |
35 | ||
0c7b5aa8 AG |
36 | %package examples |
37 | Summary: Demos for PyOpenGL | |
38 | Summary(pl.UTF-8): Programy demonstracyjne dla pakietu PyOpenGL | |
39 | Group: Development/Languages/Python | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description examples | |
43 | Demos for PyOpenGL. | |
44 | ||
45 | %description examples -l pl.UTF-8 | |
46 | Programy demonstracyjne dla pakietu PyOpenGL. | |
47 | ||
5e5b16b4 | 48 | %prep |
06d1bbff | 49 | %setup -q -n %{module}-%{version} -a 1 |
5e5b16b4 AM |
50 | |
51 | %build | |
06d1bbff | 52 | %{__python} setup.py build |
53 | ||
0e091076 | 54 | cd %{module}-Demo-%{version}a1 |
06d1bbff | 55 | %{__python} setup.py build |
5e5b16b4 AM |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
06d1bbff | 60 | %{__python} setup.py install \ |
61 | --optimize=2 \ | |
62 | --root=$RPM_BUILD_ROOT | |
63 | ||
0e091076 | 64 | cd %{module}-Demo-%{version}a1 |
06d1bbff | 65 | %{__python} setup.py install \ |
66 | --optimize=2 \ | |
0c7b5aa8 | 67 | --root=$RPM_BUILD_ROOT |
5e5b16b4 AM |
68 | |
69 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
70 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
58c3fba7 JB |
71 | %py_postclean |
72 | ||
0c7b5aa8 AG |
73 | rm -rf $RPM_BUILD_ROOT%{py_sitedir}/OpenGL/{Demo,doc} |
74 | ||
5e5b16b4 AM |
75 | %clean |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
06d1bbff | 80 | %doc PKG-INFO |
81 | %{py_sitescriptdir}/OpenGL | |
cc8b386e | 82 | %if "%{py_ver}" > "2.4" |
06d1bbff | 83 | %{py_sitescriptdir}/*.egg-info |
cc8b386e | 84 | %endif |
0c7b5aa8 AG |
85 | |
86 | %files examples | |
87 | %defattr(644,root,root,755) | |
06d1bbff | 88 | %{py_sitescriptdir}/PyOpenGL-Demo |