]>
Commit | Line | Data |
---|---|---|
7496232a | 1 | # TODO: move Editra locale (.mo) files to system LC_MESSAGES dirs |
2d9bbbc5 | 2 | %define module wxPython |
2d9bbbc5 | 3 | Summary: Cross platform GUI toolkit for Python |
e11767f5 | 4 | Summary(pl.UTF-8): Wieloplatformowe narzędzie GUI dla Pythona |
2d9bbbc5 | 5 | Name: python-%{module} |
4c71c800 AM |
6 | Version: 2.8.12.1 |
7 | Release: 1 | |
9859b6af | 8 | License: wxWindows Library Licence 3.1 (LGPL v2+ with exception) |
2d9bbbc5 | 9 | Group: Libraries/Python |
7496232a | 10 | Source0: http://downloads.sourceforge.net/wxpython/%{module}-src-%{version}.tar.bz2 |
4c71c800 | 11 | # Source0-md5: 8c06c5941477beee213b4f2fa78be620 |
80e800ed | 12 | Source1: %{name}-wxversion-null.py |
efd75bb2 | 13 | Patch0: %{name}-CFLAGS.patch |
41bbfc6a | 14 | URL: http://wxpython.org/ |
9859b6af | 15 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
dbb01471 | 16 | BuildRequires: pkgconfig |
cf488c94 JB |
17 | BuildRequires: python >= 1:2.5 |
18 | BuildRequires: python-devel >= 1:2.5 | |
dbb01471 | 19 | BuildRequires: python-modules |
c7e90457 | 20 | BuildRequires: rpm-pythonprov |
e382d546 | 21 | BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.11 |
c7e90457 | 22 | # optional: libgnomeprint >= 2.8 (if wx uses it), gstreamer 0.8 |
dbb01471 | 23 | %pyrequires_eq python-modules |
9e94b181 | 24 | Requires: wxGTK2-unicode-gl >= 2.8.9 |
2d9bbbc5 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2d9bbbc5 | 26 | |
27 | %description | |
28 | wxPython is a GUI toolkit for Python that is a wrapper around the | |
89ed416b | 29 | wxWidgets C++ GUI library. wxPython provides a large variety of window |
2d9bbbc5 | 30 | types and controls, all implemented with a native look and feel (and |
31 | native runtime speed) on the platforms it is supported on. | |
32 | ||
11382b1e JR |
33 | %description -l pl.UTF-8 |
34 | wxPython jest narzędziem GUI dla Pythona będącym nakładką na | |
35 | bibliotekę GUI napisaną w C++ o nazwie wxWidgets. wxPython dostarcza | |
36 | dużą liczbę typów okien, kontrolek. | |
2d9bbbc5 | 37 | |
9859b6af JB |
38 | %package devel |
39 | Summary: Header and SWIG files for wxPython | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe i SWIG dla wxPythona | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: wxWidgets-devel >= 2.8.7 | |
44 | ||
45 | %description devel | |
46 | Header and SWIG files for wxPython. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe i SWIG dla wxPythona. | |
50 | ||
51 | %package editra | |
52 | Summary: Editra editor | |
53 | Summary(pl.UTF-8): Edytor Editra | |
54 | Group: Development/Tools | |
55 | URL: http://editra.org/ | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description editra | |
59 | Editra is a multi-platform text editor with an implementation that | |
60 | focuses on creating an easy to use interface and features that aid in | |
61 | code development. Currently it supports syntax highlighting and | |
62 | variety of other useful features for over 50 programming languages. | |
63 | ||
64 | %description editra -l pl.UTF-8 | |
65 | Editra to wieloplatformowy edytor tekstu, którego implementacja skupia | |
66 | się na stworzeniu łatwego w użyciu interfejsu i możliwościach | |
67 | pomagających w tworzeniu kodu. Aktualnie obsługuje podświetlanie | |
68 | składni i różne przydatne ułatwienia dla ponad 50 języków | |
69 | programowania. | |
70 | ||
71 | %package xrced | |
72 | Summary: XRCed - XRC files editor | |
73 | Summary(pl.UTF-8): XRCed - edytor plików XRC | |
74 | License: BSD | |
75 | Group: Development/Tools | |
76 | URL: http://xrced.sourceforge.net/ | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description xrced | |
80 | XRCed is a simple resource editor for wxWidgets/wxPython GUI | |
81 | development which supports creating and editing files in XRC format. | |
82 | It is written in Python and uses wxPython GUI toolkit. | |
83 | ||
84 | %description xrced -l pl.UTF-8 | |
85 | XRCed to prosty edytor zasobów do programowania w środowisku | |
86 | graficznym wxWidgets/wxPython, pozwalający na tworzenie i | |
87 | modyfikowanie plików w formacie XRC. Został napisany w Pythonie i | |
88 | wykorzystuje toolkit graficzny wxPython. | |
89 | ||
2d9bbbc5 | 90 | %package examples |
91 | Summary: wxPython example programs | |
e11767f5 | 92 | Summary(pl.UTF-8): Przykładowe programy wxPython |
2d9bbbc5 | 93 | Group: Libraries/Python |
e89df15f | 94 | Requires: %{name} = %{version}-%{release} |
2d9bbbc5 | 95 | |
96 | %description examples | |
89ed416b | 97 | wxPython example programs. |
2d9bbbc5 | 98 | |
11382b1e JR |
99 | %description examples -l pl.UTF-8 |
100 | Przykładowe programy w wxPythonie. | |
2d9bbbc5 | 101 | |
102 | %prep | |
e9736c06 | 103 | %setup -q -n %{module}-src-%{version} |
efd75bb2 | 104 | %patch0 -p1 |
4c99c19b | 105 | |
2d9bbbc5 | 106 | %build |
d53fabac | 107 | cd wxPython |
7496232a JB |
108 | CFLAGS="%{rpmcflags}" \ |
109 | %{__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 | |
7496232a | 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 |
7496232a | 144 | #don't remove these files, because this is licensing information |
d53fabac | 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] | |
4c71c800 AM |
203 | %dir %{py_sitedir}/wx/lib/agw/persist |
204 | %{py_sitedir}/wx/lib/agw/persist/*.py[co] | |
6fa71d78 RT |
205 | %dir %{py_sitedir}/wx/lib/agw/ribbon |
206 | %{py_sitedir}/wx/lib/agw/ribbon/*.py[co] | |
207 | %dir %{py_sitedir}/wx/lib/pubsub | |
208 | %{py_sitedir}/wx/lib/pubsub/*.py[co] | |
209 | %dir %{py_sitedir}/wx/lib/pubsub/core | |
210 | %{py_sitedir}/wx/lib/pubsub/core/*.py[co] | |
211 | %dir %{py_sitedir}/wx/lib/pubsub/core/arg1 | |
212 | %{py_sitedir}/wx/lib/pubsub/core/arg1/*.py[co] | |
213 | %dir %{py_sitedir}/wx/lib/pubsub/core/kwargs | |
214 | %{py_sitedir}/wx/lib/pubsub/core/kwargs/*.py[co] | |
215 | %dir %{py_sitedir}/wx/lib/pubsub/pubsub2 | |
216 | %{py_sitedir}/wx/lib/pubsub/pubsub2/*.py[co] | |
217 | %dir %{py_sitedir}/wx/lib/pubsub/pubsub1 | |
218 | %{py_sitedir}/wx/lib/pubsub/pubsub1/*.py[co] | |
219 | %dir %{py_sitedir}/wx/lib/pubsub/utils | |
220 | %{py_sitedir}/wx/lib/pubsub/utils/*.py[co] | |
1ab6ba2b | 221 | %dir %{py_sitedir}/wx/py |
e9736c06 | 222 | %{py_sitedir}/wx/py/*.ico |
1ab6ba2b | 223 | %{py_sitedir}/wx/py/*.py[co] |
e9736c06 | 224 | %doc %{py_sitedir}/wx/py/*.txt |
1ab6ba2b AF |
225 | %dir %{py_sitedir}/wx/tools |
226 | %{py_sitedir}/wx/tools/*.py[co] | |
227 | %dir %{py_sitedir}/wx/tools/XRCed | |
228 | %{py_sitedir}/wx/tools/XRCed/*.py[co] | |
e9736c06 KK |
229 | %doc %{py_sitedir}/wx/tools/XRCed/*.txt |
230 | %{py_sitedir}/wx/tools/XRCed/*.xrc | |
2d9bbbc5 | 231 | |
9859b6af | 232 | %{py_sitedir}/wxPython-*.egg-info |
9859b6af JB |
233 | |
234 | %files devel | |
235 | %defattr(644,root,root,755) | |
236 | %{_includedir}/wx-2.8/wx/wxPython | |
237 | ||
238 | %files editra | |
239 | %defattr(644,root,root,755) | |
240 | %doc wxPython/wx/tools/Editra/{AUTHORS,CHANGELOG,COPYING,FAQ,NEWS,README,THANKS,TODO,docs/*.txt} | |
241 | %attr(755,root,root) %{_bindir}/editra | |
242 | %dir %{py_sitedir}/wx/tools/Editra | |
9859b6af | 243 | %{py_sitedir}/wx/tools/Editra/__init__.py[co] |
e34ba184 | 244 | %{py_sitedir}/wx/tools/Editra/launcher.py[co] |
2c9c16b7 | 245 | %{py_sitedir}/wx/tools/Editra/Editra.pyw |
9859b6af | 246 | %dir %{py_sitedir}/wx/tools/Editra/locale |
7496232a JB |
247 | %lang(ca) %{py_sitedir}/wx/tools/Editra/locale/ca_ES@valencia |
248 | %lang(cs) %{py_sitedir}/wx/tools/Editra/locale/cs_CZ | |
249 | %lang(da) %{py_sitedir}/wx/tools/Editra/locale/da_DK | |
250 | %lang(de) %{py_sitedir}/wx/tools/Editra/locale/de_DE | |
9859b6af JB |
251 | %lang(en) %{py_sitedir}/wx/tools/Editra/locale/en_US |
252 | %lang(es) %{py_sitedir}/wx/tools/Editra/locale/es_ES | |
7496232a JB |
253 | %lang(fr) %{py_sitedir}/wx/tools/Editra/locale/fr_FR |
254 | %lang(gl) %{py_sitedir}/wx/tools/Editra/locale/gl_ES | |
255 | %lang(hr) %{py_sitedir}/wx/tools/Editra/locale/hr_HR | |
256 | %lang(hu) %{py_sitedir}/wx/tools/Editra/locale/hu_HU | |
257 | %lang(it) %{py_sitedir}/wx/tools/Editra/locale/it_IT | |
9859b6af | 258 | %lang(ja) %{py_sitedir}/wx/tools/Editra/locale/ja_JP |
7496232a JB |
259 | %lang(lv) %{py_sitedir}/wx/tools/Editra/locale/lv_LV |
260 | %lang(nl) %{py_sitedir}/wx/tools/Editra/locale/nl_NL | |
261 | %lang(nn) %{py_sitedir}/wx/tools/Editra/locale/nn_NO | |
262 | %lang(pl) %{py_sitedir}/wx/tools/Editra/locale/pl_PL | |
263 | %lang(pt_BR) %{py_sitedir}/wx/tools/Editra/locale/pt_BR | |
9859b6af | 264 | %lang(ru) %{py_sitedir}/wx/tools/Editra/locale/ru_RU |
7496232a JB |
265 | %lang(sk) %{py_sitedir}/wx/tools/Editra/locale/sk_SK |
266 | %lang(sl) %{py_sitedir}/wx/tools/Editra/locale/sl_SI | |
267 | %lang(sr) %{py_sitedir}/wx/tools/Editra/locale/sr_RS | |
268 | %lang(sv) %{py_sitedir}/wx/tools/Editra/locale/sv_SE | |
269 | %lang(tr) %{py_sitedir}/wx/tools/Editra/locale/tr_TR | |
270 | %lang(uk) %{py_sitedir}/wx/tools/Editra/locale/uk_UA | |
271 | %lang(zh_CN) %{py_sitedir}/wx/tools/Editra/locale/zh_CN | |
272 | %lang(zh_TW) %{py_sitedir}/wx/tools/Editra/locale/zh_TW | |
9859b6af JB |
273 | %{py_sitedir}/wx/tools/Editra/pixmaps |
274 | %dir %{py_sitedir}/wx/tools/Editra/src | |
275 | %{py_sitedir}/wx/tools/Editra/src/*.py[co] | |
276 | %dir %{py_sitedir}/wx/tools/Editra/src/autocomp | |
277 | %{py_sitedir}/wx/tools/Editra/src/autocomp/*.py[co] | |
e34ba184 | 278 | %dir %{py_sitedir}/wx/tools/Editra/src/eclib |
279 | %{py_sitedir}/wx/tools/Editra/src/eclib/*.py[co] | |
9859b6af JB |
280 | %dir %{py_sitedir}/wx/tools/Editra/src/extern |
281 | %{py_sitedir}/wx/tools/Editra/src/extern/*.py[co] | |
4c71c800 AM |
282 | %dir %{py_sitedir}/wx/tools/Editra/src/extern/aui |
283 | %{py_sitedir}/wx/tools/Editra/src/extern/aui/*.py[co] | |
284 | %dir %{py_sitedir}/wx/tools/Editra/src/extern/dexml | |
285 | %{py_sitedir}/wx/tools/Editra/src/extern/dexml/*.py[co] | |
286 | %dir %{py_sitedir}/wx/tools/Editra/src/extern/pygments | |
287 | %{py_sitedir}/wx/tools/Editra/src/extern/pygments/*.py[co] | |
288 | %dir %{py_sitedir}/wx/tools/Editra/src/extern/pygments/filters | |
289 | %{py_sitedir}/wx/tools/Editra/src/extern/pygments/filters/*.py[co] | |
290 | %dir %{py_sitedir}/wx/tools/Editra/src/extern/pygments/formatters | |
291 | %{py_sitedir}/wx/tools/Editra/src/extern/pygments/formatters/*.py[co] | |
292 | %dir %{py_sitedir}/wx/tools/Editra/src/extern/pygments/lexers | |
293 | %{py_sitedir}/wx/tools/Editra/src/extern/pygments/lexers/*.py[co] | |
294 | %dir %{py_sitedir}/wx/tools/Editra/src/extern/pygments/styles | |
295 | %{py_sitedir}/wx/tools/Editra/src/extern/pygments/styles/*.py[co] | |
9859b6af JB |
296 | %dir %{py_sitedir}/wx/tools/Editra/src/syntax |
297 | %{py_sitedir}/wx/tools/Editra/src/syntax/*.py[co] | |
6fa71d78 RT |
298 | %dir %{py_sitedir}/wx/tools/Editra/src/ebmlib |
299 | %{py_sitedir}/wx/tools/Editra/src/ebmlib/*.py[co] | |
2c9c16b7 | 300 | %{py_sitedir}/wx/tools/Editra/styles |
7f7e4110 | 301 | |
9859b6af JB |
302 | %files xrced |
303 | %defattr(644,root,root,755) | |
304 | %doc wxPython/wx/tools/XRCed/{CHANGES.txt,ChangeLog,README.txt,TODO.txt,license.txt} | |
305 | %attr(755,root,root) %{_bindir}/xrced | |
306 | %dir %{py_sitedir}/wx/tools/XRCed | |
307 | %{py_sitedir}/wx/tools/XRCed/misc | |
308 | %dir %{py_sitedir}/wx/tools/XRCed/plugins | |
309 | %{py_sitedir}/wx/tools/XRCed/plugins/*.py[co] | |
310 | %{py_sitedir}/wx/tools/XRCed/plugins/bitmaps | |
311 | %{py_sitedir}/wx/tools/XRCed/plugins/gizmos.crx | |
312 | %{py_sitedir}/wx/tools/XRCed/xrced.htb | |
a5bf25b4 | 313 | |
2d9bbbc5 | 314 | %files examples |
16bda523 | 315 | %defattr(644,root,root,755) |
2d9bbbc5 | 316 | %{_examplesdir}/%{name}-%{version} |