]>
Commit | Line | Data |
---|---|---|
9859b6af | 1 | # TODO: |
9859b6af | 2 | # - Editra plugins are not installed, do it manually? |
2d9bbbc5 | 3 | %define module wxPython |
2d9bbbc5 | 4 | Summary: Cross platform GUI toolkit for Python |
e11767f5 | 5 | Summary(pl.UTF-8): Wieloplatformowe narzędzie GUI dla Pythona |
2d9bbbc5 | 6 | Name: python-%{module} |
6fa71d78 | 7 | Version: 2.8.11.0 |
1fc52f4a | 8 | Release: 2 |
9859b6af | 9 | License: wxWindows Library Licence 3.1 (LGPL v2+ with exception) |
2d9bbbc5 | 10 | Group: Libraries/Python |
a1de01e5 | 11 | Source0: http://dl.sourceforge.net/wxpython/%{module}-src-%{version}.tar.bz2 |
6fa71d78 | 12 | # Source0-md5: 63f73aae49e530852db56a31b57529fa |
80e800ed | 13 | Source1: %{name}-wxversion-null.py |
efd75bb2 | 14 | Patch0: %{name}-CFLAGS.patch |
41bbfc6a | 15 | URL: http://wxpython.org/ |
9859b6af | 16 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
dbb01471 | 17 | BuildRequires: pkgconfig |
cf488c94 JB |
18 | BuildRequires: python >= 1:2.5 |
19 | BuildRequires: python-devel >= 1:2.5 | |
dbb01471 | 20 | BuildRequires: python-modules |
c7e90457 | 21 | BuildRequires: rpm-pythonprov |
9e94b181 | 22 | BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.9 |
c7e90457 | 23 | # optional: libgnomeprint >= 2.8 (if wx uses it), gstreamer 0.8 |
dbb01471 | 24 | %pyrequires_eq python-modules |
9e94b181 | 25 | Requires: wxGTK2-unicode-gl >= 2.8.9 |
2d9bbbc5 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2d9bbbc5 | 27 | |
28 | %description | |
29 | wxPython is a GUI toolkit for Python that is a wrapper around the | |
89ed416b | 30 | wxWidgets C++ GUI library. wxPython provides a large variety of window |
2d9bbbc5 | 31 | types and controls, all implemented with a native look and feel (and |
32 | native runtime speed) on the platforms it is supported on. | |
33 | ||
11382b1e JR |
34 | %description -l pl.UTF-8 |
35 | wxPython jest narzędziem GUI dla Pythona będącym nakładką na | |
36 | bibliotekę GUI napisaną w C++ o nazwie wxWidgets. wxPython dostarcza | |
37 | dużą liczbę typów okien, kontrolek. | |
2d9bbbc5 | 38 | |
9859b6af JB |
39 | %package devel |
40 | Summary: Header and SWIG files for wxPython | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe i SWIG dla wxPythona | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: wxWidgets-devel >= 2.8.7 | |
45 | ||
46 | %description devel | |
47 | Header and SWIG files for wxPython. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe i SWIG dla wxPythona. | |
51 | ||
52 | %package editra | |
53 | Summary: Editra editor | |
54 | Summary(pl.UTF-8): Edytor Editra | |
55 | Group: Development/Tools | |
56 | URL: http://editra.org/ | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description editra | |
60 | Editra is a multi-platform text editor with an implementation that | |
61 | focuses on creating an easy to use interface and features that aid in | |
62 | code development. Currently it supports syntax highlighting and | |
63 | variety of other useful features for over 50 programming languages. | |
64 | ||
65 | %description editra -l pl.UTF-8 | |
66 | Editra to wieloplatformowy edytor tekstu, którego implementacja skupia | |
67 | się na stworzeniu łatwego w użyciu interfejsu i możliwościach | |
68 | pomagających w tworzeniu kodu. Aktualnie obsługuje podświetlanie | |
69 | składni i różne przydatne ułatwienia dla ponad 50 języków | |
70 | programowania. | |
71 | ||
72 | %package xrced | |
73 | Summary: XRCed - XRC files editor | |
74 | Summary(pl.UTF-8): XRCed - edytor plików XRC | |
75 | License: BSD | |
76 | Group: Development/Tools | |
77 | URL: http://xrced.sourceforge.net/ | |
78 | Requires: %{name} = %{version}-%{release} | |
79 | ||
80 | %description xrced | |
81 | XRCed is a simple resource editor for wxWidgets/wxPython GUI | |
82 | development which supports creating and editing files in XRC format. | |
83 | It is written in Python and uses wxPython GUI toolkit. | |
84 | ||
85 | %description xrced -l pl.UTF-8 | |
86 | XRCed to prosty edytor zasobów do programowania w środowisku | |
87 | graficznym wxWidgets/wxPython, pozwalający na tworzenie i | |
88 | modyfikowanie plików w formacie XRC. Został napisany w Pythonie i | |
89 | wykorzystuje toolkit graficzny wxPython. | |
90 | ||
2d9bbbc5 | 91 | %package examples |
92 | Summary: wxPython example programs | |
e11767f5 | 93 | Summary(pl.UTF-8): Przykładowe programy wxPython |
2d9bbbc5 | 94 | Group: Libraries/Python |
e89df15f | 95 | Requires: %{name} = %{version}-%{release} |
2d9bbbc5 | 96 | |
97 | %description examples | |
89ed416b | 98 | wxPython example programs. |
2d9bbbc5 | 99 | |
11382b1e JR |
100 | %description examples -l pl.UTF-8 |
101 | Przykładowe programy w wxPythonie. | |
2d9bbbc5 | 102 | |
103 | %prep | |
e9736c06 | 104 | %setup -q -n %{module}-src-%{version} |
efd75bb2 | 105 | %patch0 -p1 |
4c99c19b | 106 | |
2d9bbbc5 | 107 | %build |
d53fabac AF |
108 | cd wxPython |
109 | CFLAGS="%{rpmcflags}" python setup.py build \ | |
e9736c06 KK |
110 | WX_CONFIG=%{_bindir}/wx-gtk2-unicode-config \ |
111 | UNICODE=1 | |
2d9bbbc5 | 112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
787efee9 | 115 | cd wxPython |
2d9bbbc5 | 116 | |
117 | python setup.py install \ | |
e9736c06 KK |
118 | WX_CONFIG=%{_bindir}/wx-gtk2-unicode-config \ |
119 | INSTALL_MULTIVERSION=0 \ | |
120 | UNICODE=1 \ | |
121 | --optimize 2 \ | |
7e78df0d | 122 | --root=$RPM_BUILD_ROOT |
2d9bbbc5 | 123 | |
80e800ed AM |
124 | install %{SOURCE1} $RPM_BUILD_ROOT%{py_sitedir}/wxversion.py |
125 | ||
2d9bbbc5 | 126 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
127 | cp -a demo samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
5a3cc61d | 128 | rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded |
129 | rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded.o | |
130 | ||
9859b6af JB |
131 | mv $RPM_BUILD_ROOT%{py_sitedir}/wx/lib/editor/README.txt README.editor.txt |
132 | rm -r $RPM_BUILD_ROOT%{py_sitedir}/wx/tools/Editra/{AUTHORS,CHANGELOG,COPYING,FAQ,INSTALL,MANIFEST.in,NEWS,README,THANKS,TODO,docs/*.txt,setup.py*,tests,plugins/*.egg} | |
133 | ||
80e800ed AM |
134 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
135 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
136 | %py_postclean | |
2d9bbbc5 | 137 | |
138 | %clean | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %files | |
142 | %defattr(644,root,root,755) | |
9859b6af | 143 | %doc wxPython/docs/{CHANGES.txt,MigrationGuide.txt,README.txt} wxPython/README.editor.txt |
d53fabac AF |
144 | #don't remove this files, because this is licensing information |
145 | %doc docs/{licence.txt,licendoc.txt,preamble.txt} | |
9859b6af JB |
146 | %attr(755,root,root) %{_bindir}/helpviewer |
147 | %attr(755,root,root) %{_bindir}/img2png | |
148 | %attr(755,root,root) %{_bindir}/img2py | |
149 | %attr(755,root,root) %{_bindir}/img2xpm | |
150 | %attr(755,root,root) %{_bindir}/pyalacarte | |
151 | %attr(755,root,root) %{_bindir}/pyalamode | |
152 | %attr(755,root,root) %{_bindir}/pycrust | |
153 | %attr(755,root,root) %{_bindir}/pyshell | |
154 | %attr(755,root,root) %{_bindir}/pywrap | |
155 | %attr(755,root,root) %{_bindir}/pywxrc | |
80e800ed AM |
156 | |
157 | %{py_sitedir}/wxversion.py[co] | |
158 | ||
6aacdda9 | 159 | %dir %{py_sitedir}/%{module} |
2d9bbbc5 | 160 | %{py_sitedir}/%{module}/*.py[co] |
6aacdda9 | 161 | %dir %{py_sitedir}/%{module}/lib |
2d9bbbc5 | 162 | %{py_sitedir}/%{module}/lib/*.py[co] |
6aacdda9 | 163 | %dir %{py_sitedir}/%{module}/lib/colourchooser |
d53fabac | 164 | %{py_sitedir}/%{module}/lib/colourchooser/*.py[co] |
6aacdda9 | 165 | %dir %{py_sitedir}/%{module}/lib/editor |
2d9bbbc5 | 166 | %{py_sitedir}/%{module}/lib/editor/*.py[co] |
6aacdda9 | 167 | %dir %{py_sitedir}/%{module}/lib/mixins |
2d9bbbc5 | 168 | %{py_sitedir}/%{module}/lib/mixins/*.py[co] |
6aacdda9 | 169 | %dir %{py_sitedir}/%{module}/tools |
d53fabac | 170 | %{py_sitedir}/%{module}/tools/*.py[co] |
1ab6ba2b AF |
171 | |
172 | %dir %{py_sitedir}/wx | |
e9736c06 | 173 | %attr(755,root,root) %{py_sitedir}/wx/*.so |
1ab6ba2b | 174 | %{py_sitedir}/wx/*.py[co] |
89ed416b MC |
175 | %dir %{py_sitedir}/wx/build |
176 | %{py_sitedir}/wx/build/*.py[co] | |
1ab6ba2b AF |
177 | %dir %{py_sitedir}/wx/lib |
178 | %{py_sitedir}/wx/lib/*.py[co] | |
a5bf25b4 JB |
179 | %dir %{py_sitedir}/wx/lib/analogclock |
180 | %{py_sitedir}/wx/lib/analogclock/*.py[co] | |
181 | %dir %{py_sitedir}/wx/lib/analogclock/lib_setup | |
182 | %{py_sitedir}/wx/lib/analogclock/lib_setup/*.py[co] | |
7f7e4110 AM |
183 | %dir %{py_sitedir}/wx/lib/art |
184 | %{py_sitedir}/wx/lib/art/*.py[co] | |
1ab6ba2b AF |
185 | %dir %{py_sitedir}/wx/lib/colourchooser |
186 | %{py_sitedir}/wx/lib/colourchooser/*.py[co] | |
187 | %dir %{py_sitedir}/wx/lib/editor | |
188 | %{py_sitedir}/wx/lib/editor/*.py[co] | |
e9736c06 KK |
189 | %dir %{py_sitedir}/wx/lib/floatcanvas |
190 | %{py_sitedir}/wx/lib/floatcanvas/*.py[co] | |
9859b6af JB |
191 | %dir %{py_sitedir}/wx/lib/floatcanvas/Utilities |
192 | %{py_sitedir}/wx/lib/floatcanvas/Utilities/*.py[co] | |
e9736c06 KK |
193 | %dir %{py_sitedir}/wx/lib/masked |
194 | %{py_sitedir}/wx/lib/masked/*.py[co] | |
1ab6ba2b AF |
195 | %dir %{py_sitedir}/wx/lib/mixins |
196 | %{py_sitedir}/wx/lib/mixins/*.py[co] | |
e9736c06 KK |
197 | %dir %{py_sitedir}/wx/lib/ogl |
198 | %{py_sitedir}/wx/lib/ogl/*.py[co] | |
6fa71d78 RT |
199 | %dir %{py_sitedir}/wx/lib/agw |
200 | %{py_sitedir}/wx/lib/agw/*.py[co] | |
201 | %dir %{py_sitedir}/wx/lib/agw/aui | |
202 | %{py_sitedir}/wx/lib/agw/aui/*.py[co] | |
203 | %dir %{py_sitedir}/wx/lib/agw/ribbon | |
204 | %{py_sitedir}/wx/lib/agw/ribbon/*.py[co] | |
205 | %dir %{py_sitedir}/wx/lib/pubsub | |
206 | %{py_sitedir}/wx/lib/pubsub/*.py[co] | |
207 | %dir %{py_sitedir}/wx/lib/pubsub/core | |
208 | %{py_sitedir}/wx/lib/pubsub/core/*.py[co] | |
209 | %dir %{py_sitedir}/wx/lib/pubsub/core/arg1 | |
210 | %{py_sitedir}/wx/lib/pubsub/core/arg1/*.py[co] | |
211 | %dir %{py_sitedir}/wx/lib/pubsub/core/kwargs | |
212 | %{py_sitedir}/wx/lib/pubsub/core/kwargs/*.py[co] | |
213 | %dir %{py_sitedir}/wx/lib/pubsub/pubsub2 | |
214 | %{py_sitedir}/wx/lib/pubsub/pubsub2/*.py[co] | |
215 | %dir %{py_sitedir}/wx/lib/pubsub/pubsub1 | |
216 | %{py_sitedir}/wx/lib/pubsub/pubsub1/*.py[co] | |
217 | %dir %{py_sitedir}/wx/lib/pubsub/utils | |
218 | %{py_sitedir}/wx/lib/pubsub/utils/*.py[co] | |
1ab6ba2b | 219 | %dir %{py_sitedir}/wx/py |
e9736c06 | 220 | %{py_sitedir}/wx/py/*.ico |
1ab6ba2b | 221 | %{py_sitedir}/wx/py/*.py[co] |
e9736c06 | 222 | %doc %{py_sitedir}/wx/py/*.txt |
1ab6ba2b AF |
223 | %dir %{py_sitedir}/wx/tools |
224 | %{py_sitedir}/wx/tools/*.py[co] | |
225 | %dir %{py_sitedir}/wx/tools/XRCed | |
226 | %{py_sitedir}/wx/tools/XRCed/*.py[co] | |
e9736c06 KK |
227 | %doc %{py_sitedir}/wx/tools/XRCed/*.txt |
228 | %{py_sitedir}/wx/tools/XRCed/*.xrc | |
2d9bbbc5 | 229 | |
6fa71d78 RT |
230 | #%dir %{py_sitescriptdir}/wxaddons |
231 | #%{py_sitescriptdir}/wxaddons/*.py[co] | |
7f7e4110 | 232 | |
9859b6af | 233 | %{py_sitedir}/wxPython-*.egg-info |
6fa71d78 | 234 | #%{py_sitescriptdir}/wxaddons-*.egg-info |
9859b6af JB |
235 | |
236 | %files devel | |
237 | %defattr(644,root,root,755) | |
238 | %{_includedir}/wx-2.8/wx/wxPython | |
239 | ||
240 | %files editra | |
241 | %defattr(644,root,root,755) | |
242 | %doc wxPython/wx/tools/Editra/{AUTHORS,CHANGELOG,COPYING,FAQ,NEWS,README,THANKS,TODO,docs/*.txt} | |
243 | %attr(755,root,root) %{_bindir}/editra | |
244 | %dir %{py_sitedir}/wx/tools/Editra | |
245 | %attr(755,root,root) %{py_sitedir}/wx/tools/Editra/Editra | |
246 | %{py_sitedir}/wx/tools/Editra/__init__.py[co] | |
e34ba184 | 247 | %{py_sitedir}/wx/tools/Editra/launcher.py[co] |
9859b6af JB |
248 | %dir %{py_sitedir}/wx/tools/Editra/locale |
249 | %lang(en) %{py_sitedir}/wx/tools/Editra/locale/en_US | |
250 | %lang(es) %{py_sitedir}/wx/tools/Editra/locale/es_ES | |
251 | %lang(ja) %{py_sitedir}/wx/tools/Editra/locale/ja_JP | |
252 | %lang(ru) %{py_sitedir}/wx/tools/Editra/locale/ru_RU | |
253 | %{py_sitedir}/wx/tools/Editra/pixmaps | |
254 | %dir %{py_sitedir}/wx/tools/Editra/src | |
255 | %{py_sitedir}/wx/tools/Editra/src/*.py[co] | |
256 | %dir %{py_sitedir}/wx/tools/Editra/src/autocomp | |
257 | %{py_sitedir}/wx/tools/Editra/src/autocomp/*.py[co] | |
e34ba184 | 258 | %dir %{py_sitedir}/wx/tools/Editra/src/eclib |
259 | %{py_sitedir}/wx/tools/Editra/src/eclib/*.py[co] | |
9859b6af JB |
260 | %dir %{py_sitedir}/wx/tools/Editra/src/extern |
261 | %{py_sitedir}/wx/tools/Editra/src/extern/*.py[co] | |
262 | %dir %{py_sitedir}/wx/tools/Editra/src/syntax | |
263 | %{py_sitedir}/wx/tools/Editra/src/syntax/*.py[co] | |
264 | %{py_sitedir}/wx/tools/Editra/styles | |
6fa71d78 RT |
265 | %dir %{py_sitedir}/wx/tools/Editra |
266 | %{py_sitedir}/wx/tools/Editra/*.py[co] | |
267 | %dir %{py_sitedir}/wx/tools/Editra/src | |
268 | %dir %{py_sitedir}/wx/tools/Editra/src/ebmlib | |
269 | %{py_sitedir}/wx/tools/Editra/src/ebmlib/*.py[co] | |
270 | %{py_sitedir}/wx/tools/Editra/Editra.pyw | |
7f7e4110 | 271 | |
9859b6af JB |
272 | %files xrced |
273 | %defattr(644,root,root,755) | |
274 | %doc wxPython/wx/tools/XRCed/{CHANGES.txt,ChangeLog,README.txt,TODO.txt,license.txt} | |
275 | %attr(755,root,root) %{_bindir}/xrced | |
276 | %dir %{py_sitedir}/wx/tools/XRCed | |
277 | %{py_sitedir}/wx/tools/XRCed/misc | |
278 | %dir %{py_sitedir}/wx/tools/XRCed/plugins | |
279 | %{py_sitedir}/wx/tools/XRCed/plugins/*.py[co] | |
280 | %{py_sitedir}/wx/tools/XRCed/plugins/bitmaps | |
281 | %{py_sitedir}/wx/tools/XRCed/plugins/gizmos.crx | |
282 | %{py_sitedir}/wx/tools/XRCed/xrced.htb | |
a5bf25b4 | 283 | |
2d9bbbc5 | 284 | %files examples |
16bda523 | 285 | %defattr(644,root,root,755) |
2d9bbbc5 | 286 | %{_examplesdir}/%{name}-%{version} |