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