1 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
3 | |
---|
4 | %define buildflags WXPORT=gtk2 UNICODE=1 |
---|
5 | |
---|
6 | Name: wxPython |
---|
7 | Version: 2.8.12.1 |
---|
8 | Release: 3%{?dist} |
---|
9 | |
---|
10 | Summary: GUI toolkit for the Python programming language |
---|
11 | |
---|
12 | Group: Development/Languages |
---|
13 | License: LGPLv2+ and wxWidgets |
---|
14 | URL: http://www.wxpython.org/ |
---|
15 | Source0: http://downloads.sourceforge.net/wxpython/%{name}-src-%{version}.tar.bz2 |
---|
16 | # fix aui imports |
---|
17 | # http://trac.wxwidgets.org/ticket/12107 |
---|
18 | Patch0: wxPython-2.8.12.0-aui.patch |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
20 | # make sure to keep this updated as appropriate |
---|
21 | BuildRequires: wxGTK-devel >= 2.8.11 |
---|
22 | BuildRequires: python-devel |
---|
23 | BuildRequires: gtk2-devel |
---|
24 | BuildRequires: mesa-libGL-devel mesa-libGLU-devel |
---|
25 | |
---|
26 | # packages should depend on "wxPython", not "wxPythonGTK2", but in case |
---|
27 | # one does, here's the provides for it. |
---|
28 | Provides: wxPythonGTK2 = %{version}-%{release} |
---|
29 | |
---|
30 | Vendor: Project Vine |
---|
31 | Distribution: Vine Linux |
---|
32 | |
---|
33 | %description |
---|
34 | wxPython is a GUI toolkit for the Python programming language. It allows |
---|
35 | Python programmers to create programs with a robust, highly functional |
---|
36 | graphical user interface, simply and easily. It is implemented as a Python |
---|
37 | extension module (native code) that wraps the popular wxWindows cross |
---|
38 | platform GUI library, which is written in C++. |
---|
39 | |
---|
40 | %package devel |
---|
41 | Group: Development/Libraries |
---|
42 | Summary: Development files for wxPython add-on modules |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | Requires: wxGTK-devel >= 2.8.11 |
---|
45 | |
---|
46 | %description devel |
---|
47 | This package includes C++ header files and SWIG files needed for developing |
---|
48 | add-on modules for wxPython. It is NOT needed for development of most |
---|
49 | programs which use the wxPython toolkit. |
---|
50 | |
---|
51 | %package docs |
---|
52 | Group: Documentation |
---|
53 | Summary: Documentation and samples for wxPython |
---|
54 | Requires: %{name} = %{version}-%{release} |
---|
55 | BuildArch: noarch |
---|
56 | |
---|
57 | %description docs |
---|
58 | Documentation, samples and demo application for wxPython. |
---|
59 | |
---|
60 | |
---|
61 | %prep |
---|
62 | %setup -q -n wxPython-src-%{version} |
---|
63 | %patch0 -p1 -b .aui |
---|
64 | |
---|
65 | # fix libdir otherwise additional wx libs cannot be found |
---|
66 | %__sed -i -e 's|/usr/lib|%{_libdir}|' wxPython/config.py |
---|
67 | |
---|
68 | |
---|
69 | %build |
---|
70 | # Just build the wxPython part, not all of wxWindows which we already have |
---|
71 | # in Fedora |
---|
72 | cd wxPython |
---|
73 | # included distutils is not multilib aware; use normal |
---|
74 | %__rm -rf distutils |
---|
75 | python setup.py %{buildflags} build |
---|
76 | |
---|
77 | |
---|
78 | %install |
---|
79 | %__rm -rf $RPM_BUILD_ROOT |
---|
80 | cd wxPython |
---|
81 | python setup.py %{buildflags} install --root=$RPM_BUILD_ROOT |
---|
82 | |
---|
83 | # this is a kludge.... |
---|
84 | %if "%{python_sitelib}" != "%{python_sitearch}" |
---|
85 | %__mv $RPM_BUILD_ROOT%{python_sitelib}/wx.pth $RPM_BUILD_ROOT%{python_sitearch} |
---|
86 | %__mv $RPM_BUILD_ROOT%{python_sitelib}/wxversion.py* $RPM_BUILD_ROOT%{python_sitearch} |
---|
87 | %endif |
---|
88 | |
---|
89 | %clean |
---|
90 | %__rm -rf $RPM_BUILD_ROOT |
---|
91 | |
---|
92 | |
---|
93 | %files |
---|
94 | %defattr(-,root,root,-) |
---|
95 | %doc wxPython/licence |
---|
96 | %{_bindir}/* |
---|
97 | %{python_sitearch}/wx.pth |
---|
98 | %{python_sitearch}/wxversion.py* |
---|
99 | %dir %{python_sitearch}/wx-2.8-gtk2-unicode/ |
---|
100 | %{python_sitearch}/wx-2.8-gtk2-unicode/wx |
---|
101 | %{python_sitearch}/wx-2.8-gtk2-unicode/wxPython |
---|
102 | %{python_sitelib}/*egg-info |
---|
103 | %{python_sitearch}/wx-2.8-gtk2-unicode/*egg-info |
---|
104 | |
---|
105 | %files devel |
---|
106 | %defattr(-,root,root,-) |
---|
107 | %dir %{_includedir}/wx-2.8/wx/wxPython |
---|
108 | %{_includedir}/wx-2.8/wx/wxPython/*.h |
---|
109 | %dir %{_includedir}/wx-2.8/wx/wxPython/i_files |
---|
110 | %{_includedir}/wx-2.8/wx/wxPython/i_files/*.i |
---|
111 | %{_includedir}/wx-2.8/wx/wxPython/i_files/*.py* |
---|
112 | %{_includedir}/wx-2.8/wx/wxPython/i_files/*.swg |
---|
113 | |
---|
114 | %files docs |
---|
115 | %defattr(-,root,root,-) |
---|
116 | %doc wxPython/docs wxPython/demo wxPython/samples |
---|
117 | |
---|
118 | |
---|
119 | %changelog |
---|
120 | * Fri Aug 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.8.12.1-3 |
---|
121 | - s/wx-gtk2/wxGTK/g |
---|
122 | |
---|
123 | * Sun Jul 29 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.8.12.1-2 |
---|
124 | - rebuilt with wx-gtk2-devel-2.8.12-2 |
---|
125 | |
---|
126 | * Fri Apr 6 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.8.12.1-1 |
---|
127 | - updated to 2.8.12.1 |
---|
128 | |
---|
129 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.12.0-2 |
---|
130 | - rebuild with python-2.7.2 |
---|
131 | |
---|
132 | * Sun May 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.8.12.0-1 |
---|
133 | - initial build based on Fedora rawhide |
---|
134 | |
---|
135 | * Tue Apr 26 2011 Dan Horák <dan[at]danny.cz> - 2.8.12.0-1 |
---|
136 | - update to 2.8.12.0 (#699207) |
---|
137 | |
---|
138 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.11.0-5 |
---|
139 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
140 | |
---|
141 | * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.8.11.0-4 |
---|
142 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
143 | |
---|
144 | * Mon Jul 12 2010 Dan Horák <dan@danny.cz> - 2.8.11.0-3 |
---|
145 | - rebuilt against wxGTK-2.8.11-2 |
---|
146 | |
---|
147 | * Sun Jul 11 2010 Lubomir Rintel <lkundrak@v3.sk> - 2.8.11.0-2 |
---|
148 | - Include egg-info when build on recent RHEL |
---|
149 | |
---|
150 | * Mon May 31 2010 Dan Horák <dan[at]danny.cz> - 2.8.11.0-1 |
---|
151 | - update to 2.8.11.0 (#593837, #595936, #597639) |
---|
152 | |
---|
153 | * Sun May 2 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-3 |
---|
154 | - rebuilt with wxGTK 2.8.11 |
---|
155 | |
---|
156 | * Wed Mar 17 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-2 |
---|
157 | - add missing module (#573961) |
---|
158 | |
---|
159 | * Sat Jan 16 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-1 |
---|
160 | - update to 2.8.10.1 |
---|
161 | - backport to wxGTK 2.8.10 API |
---|
162 | - cleaned up BRs |
---|
163 | |
---|
164 | * Thu Jan 7 2010 Hans de Goede <hdegoede@redhat.com> - 2.8.9.2-4 |
---|
165 | - Change python_foo macros to use %%global as the new rpm will break |
---|
166 | using %%define here, see: |
---|
167 | https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html |
---|
168 | |
---|
169 | * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.9.2-3 |
---|
170 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
171 | |
---|
172 | * Fri Apr 10 2009 Dan Horák <dan[at]danny.cz> - 2.8.9.2-2 |
---|
173 | - add patch to fix compile failure for contrib/gizmos/_treelist.i |
---|
174 | |
---|
175 | * Fri Apr 10 2009 Dan Horák <dan[at]danny.cz> - 2.8.9.2-1 |
---|
176 | - update to 2.8.9.2 |
---|
177 | - create noarch docs subpackage |
---|
178 | |
---|
179 | * Thu Mar 5 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.8.9.1-4 |
---|
180 | - Rebuilt for newer wxgtk package |
---|
181 | |
---|
182 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.9.1-3 |
---|
183 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
184 | |
---|
185 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.8.9.1-2 |
---|
186 | - Rebuild for Python 2.6 |
---|
187 | |
---|
188 | * Tue Sep 30 2008 Dan Horak <dan[at]danny.cz> - 2.8.9.1-1 |
---|
189 | - update to 2.8.9.1 |
---|
190 | - fix libdir for additional wx libraries (#306761) |
---|
191 | |
---|
192 | * Mon Sep 29 2008 Dan Horak <dan[at]danny.cz> - 2.8.9.0-1 |
---|
193 | - update to 2.8.9.0 |
---|
194 | |
---|
195 | * Sat Sep 6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.8.0-2 |
---|
196 | - fix license tag |
---|
197 | |
---|
198 | * Thu Jul 31 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.8.0-1 |
---|
199 | - update to 2.8.8.0 (bug #457408) |
---|
200 | - a fix for bug #450073 is included in the upstream release, so |
---|
201 | dropping that patch. |
---|
202 | |
---|
203 | * Thu Jun 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> - 2.8.7.1-5 |
---|
204 | - Fix an attribute error when importing wxPython (compat) module |
---|
205 | (redhat bugzilla 450073, 450074) |
---|
206 | |
---|
207 | * Sat Jun 6 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-4 |
---|
208 | - gratuitously bump package release number to work around build system |
---|
209 | glitch. again, but it will work this time. |
---|
210 | |
---|
211 | * Wed Jun 4 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-3 |
---|
212 | - gratuitously bump package release number to work around build system |
---|
213 | glitch |
---|
214 | |
---|
215 | * Thu Feb 21 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-2 |
---|
216 | - include egg-info files for fedora 9 or greater |
---|
217 | |
---|
218 | * Wed Feb 20 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-1 |
---|
219 | - update to 2.8.7.1 |
---|
220 | |
---|
221 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.8.4.0-3 |
---|
222 | - Autorebuild for GCC 4.3 |
---|
223 | |
---|
224 | * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.8.4.0-2 |
---|
225 | - Rebuild for selinux ppc32 issue. |
---|
226 | |
---|
227 | * Wed Jul 11 2007 Matthew Miller <mattdm@mattdm.org> - 2.8.4.0-1 |
---|
228 | - update to 2.8.4.0 |
---|
229 | - obsolete compat-wxPythonGTK |
---|
230 | |
---|
231 | * Sun Apr 15 2007 Matthew Miller <mattdm@mattdm.org> - 2.8.3.0-1 |
---|
232 | - update to 2.8.3.0 |
---|
233 | |
---|
234 | * Fri Dec 15 2006 Matthew Miller <mattdm@mattdm.org> - 2.8.0.1-1 |
---|
235 | - update to 2.8.0.1 |
---|
236 | - make buildrequire wxGTK of version-wxpythonsubrelease |
---|
237 | - add wxaddons to filelist |
---|
238 | |
---|
239 | * Mon Dec 11 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-3 |
---|
240 | - bump release for rebuild against python 2.5. |
---|
241 | |
---|
242 | * Mon Aug 28 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-2 |
---|
243 | - bump release for FC6 rebuild |
---|
244 | |
---|
245 | * Thu Apr 13 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-1 |
---|
246 | - version 2.6.3.2 |
---|
247 | - move wxversion.py _into_ lib64. Apparently that's the right thing to do. :) |
---|
248 | - upstream tarball no longer includes embedded.o (since I finally got around |
---|
249 | to pointing that out to the developers instead of just kludging it away.) |
---|
250 | - buildrequires to just libGLU-devel instead of mesa-libGL-devel |
---|
251 | |
---|
252 | * Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-4 |
---|
253 | - grr. bump relnumber. |
---|
254 | |
---|
255 | * Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-3 |
---|
256 | - oh yeah -- wxversion.py not lib64. |
---|
257 | |
---|
258 | * Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-2 |
---|
259 | - buildrequires mesa-libGLU-devel |
---|
260 | |
---|
261 | * Thu Mar 30 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-1 |
---|
262 | - update to 2.6.3.0 |
---|
263 | - wxGTK and wxPython versions are inexorably linked; make BuildRequires |
---|
264 | be exact, rather than >=. |
---|
265 | - make devel subpackage as per comment #7 in bug #163440. |
---|
266 | |
---|
267 | * Thu Nov 24 2005 Matthew Miller <mattdm@mattdm.org> - 2.6.1.0-1 |
---|
268 | - update to 2.6.0.0 |
---|
269 | - merge in changes from current extras 2.4.x package |
---|
270 | - Happy Thanksgiving |
---|
271 | - build animate extention again -- works now. |
---|
272 | |
---|
273 | * Thu Apr 28 2005 Matthew Miller <mattdm@bu.edu> - 2.6.0.0-bu45.1 |
---|
274 | - get rid of accidental binaries in source tarball -- they generates |
---|
275 | spurious dependencies and serve no purpose |
---|
276 | - update to 2.6.0.0 and build for Velouria |
---|
277 | - switch to Fedora Extras base spec file |
---|
278 | - enable gtk2 and unicode and all the code stuff (as FE does) |
---|
279 | - disable BUILD_ANIMATE extension from contrib -- doesn't build |
---|
280 | - files are in a different location now -- adjust to that |
---|
281 | - zap include files (needed only for building wxPython 3rd-party modules), |
---|
282 | because I don't think this is likely to be very useful. Other option |
---|
283 | would be to create a -devel package, but I think that'd be confusing. |
---|
284 | |
---|
285 | * Tue Feb 08 2005 Thorsten Leemhuis <fedora at leemhuis dot info> 0:2.4.2.4-4 |
---|
286 | - remove included disutils - it is not multilib aware; this |
---|
287 | fixes build on x86_64 |
---|
288 | |
---|
289 | * Tue Jan 06 2004 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.3 |
---|
290 | - rename package to wxPythonGTK2, provide wxPython (see bug 927) |
---|
291 | - dont ship binaries in /usr/share |
---|
292 | |
---|
293 | * Thu Nov 20 2003 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.2 |
---|
294 | - add missing buildrequires: python-devel, wxGTK2-gl |
---|
295 | |
---|
296 | * Sun Nov 02 2003 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.1 |
---|
297 | - Initial RPM release. |
---|
298 | ~ |
---|