]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/wxPythonFull.spec.in
added missing return to avoid 'control reaches end of non-void function'
[wxWidgets.git] / wxPython / distrib / wxPythonFull.spec.in
1 %define pref %{_prefix}
2 %define python @PYTHON@
3 %define pyver @PYVER@
4 %define debug @DEBUG@
5 %define port @PORT@
6 %define lcport @LCPORT@
7 %define tarname @TARNAME@
8
9 %if %{debug}
10 %define name wxPython%{port}_py%{pyver}_dbg
11 %else
12 %define name wxPython%{port}_py%{pyver}
13 %endif
14 %define version 2.3.3pre5
15 %define release 1
16
17
18 Summary: Cross platform GUI toolkit for Python using wx%{port}
19 Name: %{name}
20 Version: %{version}
21 Release: %{release}
22 Source0: %{tarname}-%{version}.tar.gz
23 License: wxWindows Library Licence, Version 3
24 url: http://wxPython.org/
25 packager: Robin Dunn <robind@alldunn.com>
26 Group: Development/Python
27 BuildRoot: %{_tmppath}/%{name}-buildroot
28 Prefix: %{pref}
29
30
31 # They conflict with each other
32 %if %{debug}
33 Conflicts: wxPython%{port}_py%{pyver}
34 %else
35 Conflicts: wxPython%{port}_py%{pyver}_dbg
36 %endif
37
38 Provides: wxwin
39 Provides: wx%{port} = %{version}
40 Provides: wxPython = %{version}
41
42
43 # ?? Obsoletes: wx%{port}, wxPython
44 # Some funky mandrake names
45 Conflicts: wxGTK2.3, wxGTK6
46
47
48 %description
49 wxPython is a GUI toolkit for Python that is a wrapper around the
50 wxWindows C++ GUI library. wxPython provides a large variety of
51 window types and controls, all implemented with a native look and feel
52 (and native runtime speed) on the platforms it is supported on.
53
54 This package is implemented using the GTK port of wxWindows, and
55 includes the wx%{port} shared libs and etc.
56
57
58 %prep
59 %setup -n %{tarname}-%{version}
60
61
62 %build
63 if [ "$SMP" != "" ]; then
64 MAKE="make -j$SMP"
65 else
66 MAKE="make"
67 fi
68
69 mkdir build
70 cd build
71
72 # Configure, trying to reduce dependencies
73 ../configure --with-%{lcport} --enable-soname --prefix=%{pref} \
74 --with-odbc \
75 --with-opengl \
76 %if %{debug}
77 --enable-debug \
78 %else
79 --enable-optimise \
80 %endif
81 --with-libjpeg=builtin \
82 --with-libpng=builtin \
83 --with-libtiff=builtin \
84 --with-zlib=builtin \
85
86 # Build wxWindows
87 $MAKE
88
89 cd ../locale
90 make allmo
91
92
93 # ** Unfortunately we have to do a bit of installation here so wxPython
94 # can be built. Perhaps wx-config should be changed to be able to be
95 # used from the build dir, maybe with an --inplace flag... Move these
96 # three lines to %install if/when that happens.
97 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
98 cd ../build
99 make prefix=$RPM_BUILD_ROOT%{pref} install
100
101
102 # Now build wxPython
103 cd ../wxPython
104 %{python} setup.py \
105 IN_CVS_TREE=1 \
106 WX_CONFIG="$RPM_BUILD_ROOT%{pref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{pref}" \
107 build
108
109
110 %install
111 ## ** [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
112 %find_lang wxstd
113 cd wxPython
114 %{python} setup.py \
115 IN_CVS_TREE=1 \
116 WX_CONFIG="$RPM_BUILD_ROOT%{pref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{pref}" \
117 install \
118 --root=$RPM_BUILD_ROOT
119
120
121
122 %clean
123 ##[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
124
125
126 %post
127 /sbin/ldconfig
128
129
130 %postun
131 /sbin/ldconfig
132
133
134
135 %files
136 %defattr(-,root,root)
137 %{_libdir}/libwx*
138 %{_libdir}/python*
139 %{_datadir}
140
141
142 %changelog
143
144 # end of file