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