]>
Commit | Line | Data |
---|---|---|
f6bcfd97 | 1 | %define pref /usr |
3ca6a5f0 BP |
2 | %define ver 2.2.0 |
3 | %define rpmver 0 | |
f6bcfd97 BP |
4 | |
5 | Summary: Cross platform GUI toolkit for use with the Python language. | |
6 | Name: wxPython | |
7 | Version: %{ver} | |
8 | Release: %{rpmver} | |
9 | Copyright: wxWindows License | |
10 | Group: Development/Languages/Python | |
11 | Source: wxPython-%{ver}.tar.gz | |
12 | Packager: Robin Dunn <robin@alldunn.com> | |
13 | URL:http://alldunn.com/wxPython/index.html | |
14 | Vendor: Total Control Software | |
15 | Requires: python >= 1.5.2 | |
16 | ##BuildRoot: /tmp/wxPython-build | |
17 | ##Prefix: /usr/lib/python1.5/site-packages | |
18 | ||
19 | Prefix: %{pref} | |
20 | ||
21 | %description | |
22 | wxPython is a GUI toolkit for Python that is a wrapper around the | |
23 | wxWindows C++ GUI library. wxPython provides a large variety of | |
24 | window types and controls, all imlemented with a native look and | |
25 | feel (and runtime speed) on the platforms it is supported on. | |
26 | ||
27 | ||
28 | %package gl | |
29 | Summary: Cross platform GUI toolkit for use with the Python language, OpenGL addon. | |
30 | Group: Development/Languages/Python | |
31 | Requires: wxPython | |
32 | ||
33 | %description gl | |
34 | OpenGL add on for wxPython. | |
35 | ||
36 | #---------------------------------------------------------------------- | |
37 | ||
38 | %prep | |
39 | ||
40 | %setup | |
41 | ||
42 | %build | |
43 | NOSWIG=1 | |
44 | export NOSWIG | |
45 | cd src | |
46 | python ../distrib/build.py -b WXPSRCDIR=$PWD USE_SONAME=1 | |
47 | cd ../contrib/ogl | |
48 | python ../../distrib/build.py -b WXPSRCDIR=../../src USE_SONAME=1 | |
49 | cd ../stc | |
50 | python ../../distrib/build.py -b WXPSRCDIR=../../src USE_SONAME=1 | |
51 | if [ -z $NOGLCANVAS ]; then | |
52 | cd ../glcanvas | |
53 | python ../../distrib/build.py -b WXPSRCDIR=../../src USE_SONAME=1 | |
54 | fi | |
55 | ||
56 | #---------------------------------------------------------------------- | |
57 | ||
58 | %install | |
59 | NOSWIG=1 | |
60 | export NOSWIG | |
61 | cd src | |
62 | python ../distrib/build.py -i | |
63 | cd ../contrib/ogl | |
64 | python ../../distrib/build.py -i | |
65 | cd ../stc | |
66 | python ../../distrib/build.py -i | |
67 | if [ -z $NOGLCANVAS ]; then | |
68 | cd ../glcanvas | |
69 | python ../../distrib/build.py -i | |
70 | fi | |
71 | ||
72 | #---------------------------------------------------------------------- | |
73 | ||
74 | %post | |
75 | /sbin/ldconfig | |
76 | ||
77 | %postun | |
78 | /sbin/ldconfig | |
79 | ||
80 | #---------------------------------------------------------------------- | |
81 | ||
82 | %files | |
83 | %doc BUILD.txt CHANGES.txt README.txt gpl.txt lgpl.txt licence.txt licendoc.txt preamble.txt | |
84 | %{pref}/lib/libwxPyHelpers* | |
85 | %{pref}/lib/python1.5/site-packages/wxPython/*.py | |
86 | %{pref}/lib/python1.5/site-packages/wxPython/*.py? | |
87 | %{pref}/lib/python1.5/site-packages/wxPython/lib | |
88 | %{pref}/lib/python1.5/site-packages/wxPython/demo | |
89 | %{pref}/lib/python1.5/site-packages/wxPython/wxcmodule.so | |
90 | %{pref}/lib/python1.5/site-packages/wxPython/oglcmodule.so | |
91 | %{pref}/lib/python1.5/site-packages/wxPython/stc_cmodule.so | |
92 | ||
93 | %files gl | |
94 | %{pref}/lib/python1.5/site-packages/wxPython/glcanvascmodule.so | |
95 | ||
96 | ||
97 | ||
98 | ||
99 | ||
100 | ||
101 |