1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
---|
3 | |
---|
4 | Name: PyOpenGL |
---|
5 | Version: 3.0.0 |
---|
6 | Release: 4%{_dist_release} |
---|
7 | Summary: Python bindings for OpenGL |
---|
8 | License: BSD |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: http://pyopengl.sourceforge.net/ |
---|
11 | Source0: http://downloads.sourceforge.net/pyopengl/%{name}-%{version}.tar.gz |
---|
12 | Patch0: PyOpenGL-3.0.0a6-shebang.patch |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: python-devel python-setuptools |
---|
15 | BuildArch: noarch |
---|
16 | Requires: python-numeric python-setuptools |
---|
17 | Requires: freeglut |
---|
18 | |
---|
19 | # in some other repositories this is named python-opengl |
---|
20 | Provides: python-opengl = %{version}-%{release} |
---|
21 | Obsoletes: python-opengl < %{version}-%{release} |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | |
---|
25 | |
---|
26 | %description |
---|
27 | PyOpenGL is the cross platform Python binding to OpenGL and related APIs. It |
---|
28 | includes support for OpenGL v1.1, GLU, GLUT v3.7, GLE 3 and WGL 4. It also |
---|
29 | includes support for dozens of extensions (where supported in the underlying |
---|
30 | implementation). |
---|
31 | |
---|
32 | PyOpenGL is interoperable with a large number of external GUI libraries |
---|
33 | for Python including (Tkinter, wxPython, FxPy, PyGame, and Qt). |
---|
34 | |
---|
35 | |
---|
36 | %package Tk |
---|
37 | Summary: %{name} OpenGL Tk widget |
---|
38 | Group: System Environment/Libraries |
---|
39 | Requires: %{name} = %{version}-%{release}, tkinter |
---|
40 | |
---|
41 | %description Tk |
---|
42 | %{name} Togl (Tk OpenGL widget) 1.6 support. |
---|
43 | |
---|
44 | |
---|
45 | %package doc |
---|
46 | Summary: Documentation files for %{name} |
---|
47 | Group: Development/Languages |
---|
48 | Requires: %{name} = %{version}-%{release} |
---|
49 | |
---|
50 | %description doc |
---|
51 | Documentation files for %{name}. |
---|
52 | |
---|
53 | |
---|
54 | %prep |
---|
55 | %setup -q |
---|
56 | %patch0 -p1 -z .shebang |
---|
57 | |
---|
58 | %build |
---|
59 | python setup.py build |
---|
60 | |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | python setup.py install -O1 --skip-build --root="$RPM_BUILD_ROOT" \ |
---|
65 | --prefix="%{_prefix}" |
---|
66 | chmod -x $RPM_BUILD_ROOT%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info |
---|
67 | |
---|
68 | |
---|
69 | %clean |
---|
70 | rm -rf $RPM_BUILD_ROOT |
---|
71 | |
---|
72 | |
---|
73 | %files |
---|
74 | %defattr(-,root,root,-) |
---|
75 | ##doc license.txt |
---|
76 | %{python_sitelib}/*OpenGL* |
---|
77 | %exclude %{python_sitelib}/OpenGL/Tk |
---|
78 | |
---|
79 | %files Tk |
---|
80 | %defattr(-,root,root,-) |
---|
81 | %{python_sitelib}/OpenGL/Tk |
---|
82 | |
---|
83 | %files doc |
---|
84 | %defattr(-,root,root,-) |
---|
85 | %doc documentation/* |
---|
86 | |
---|
87 | |
---|
88 | %changelog |
---|
89 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-4 |
---|
90 | - rebuild with python-2.7.2 |
---|
91 | |
---|
92 | * Sat Apr 16 2011 Shu KONNO <owa@bg.wakwak.com> 3.0.0-3 |
---|
93 | - rebuilt with rpm-4.8.1-3 |
---|
94 | |
---|
95 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 3.0.0-2 |
---|
96 | - rebuilt with python-2.6.4 |
---|
97 | |
---|
98 | * Sat Jul 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.0-1 |
---|
99 | - new upstream release 3.0.0 |
---|
100 | - remove Requires: XOrg-gl (libGL should be pulled by freeglut) |
---|
101 | |
---|
102 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.0-0.b1.2 |
---|
103 | - rebuilt with python-2.5.2 |
---|
104 | |
---|
105 | * Mon Apr 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0.0-0.b1.1 |
---|
106 | - Initial build for Vine Linux |
---|
107 | |
---|
108 | * Mon Dec 31 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-0.5.b1 |
---|
109 | - New upstream release 3.0.0b1 |
---|
110 | |
---|
111 | * Thu Aug 30 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-0.4.a6 |
---|
112 | - Change BuildRequires python-setuptools to python-setuptools-devel for |
---|
113 | the python-setuptools package split |
---|
114 | |
---|
115 | * Fri Apr 13 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-0.3.a6 |
---|
116 | - Add missing freeglut, libGL and libGLU requires (bz 236159) |
---|
117 | |
---|
118 | * Thu Mar 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-0.2.a6 |
---|
119 | - Remove tests from the package (bz 234121) |
---|
120 | - Add -Tk subpackage (bz 234121) |
---|
121 | - Remove shebang from files with shebang instead of chmod +x (bz 234121) |
---|
122 | - Better description |
---|
123 | |
---|
124 | * Sat Mar 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-0.1.a6 |
---|
125 | - Initial Fedora Extras package |
---|