]>
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} |
1cfedc00 AM |
6 | Version: 3.0.2.0 |
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 |
1cfedc00 | 11 | # Source0-md5: 922b02ff2c0202a7bf1607c98bbbbc04 |
80e800ed | 12 | Source1: %{name}-wxversion-null.py |
efd75bb2 | 13 | Patch0: %{name}-CFLAGS.patch |
9be9ae6e | 14 | Patch1: %{name}-format.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 |
e382d546 | 22 | BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.11 |
c7e90457 | 23 | # optional: libgnomeprint >= 2.8 (if wx uses it), gstreamer 0.8 |
e5d4b337 | 24 | Requires: 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} |
e5d4b337 ER |
96 | %if "%{_rpmversion}" >= "5" |
97 | BuildArch: noarch | |
98 | %endif | |
2d9bbbc5 | 99 | |
100 | %description examples | |
89ed416b | 101 | wxPython example programs. |
2d9bbbc5 | 102 | |
11382b1e JR |
103 | %description examples -l pl.UTF-8 |
104 | Przykładowe programy w wxPythonie. | |
2d9bbbc5 | 105 | |
106 | %prep | |
e9736c06 | 107 | %setup -q -n %{module}-src-%{version} |
efd75bb2 | 108 | %patch0 -p1 |
9be9ae6e | 109 | %patch1 -p1 |
4c99c19b | 110 | |
2d9bbbc5 | 111 | %build |
d53fabac | 112 | cd wxPython |
7496232a JB |
113 | CFLAGS="%{rpmcflags}" \ |
114 | %{__python} setup.py build \ | |
e9736c06 KK |
115 | WX_CONFIG=%{_bindir}/wx-gtk2-unicode-config \ |
116 | UNICODE=1 | |
2d9bbbc5 | 117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
787efee9 | 120 | cd wxPython |
2d9bbbc5 | 121 | |
7496232a | 122 | %{__python} setup.py install \ |
e9736c06 KK |
123 | WX_CONFIG=%{_bindir}/wx-gtk2-unicode-config \ |
124 | INSTALL_MULTIVERSION=0 \ | |
125 | UNICODE=1 \ | |
126 | --optimize 2 \ | |
7e78df0d | 127 | --root=$RPM_BUILD_ROOT |
2d9bbbc5 | 128 | |
e5d4b337 | 129 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{py_sitedir}/wxversion.py |
80e800ed | 130 | |
2d9bbbc5 | 131 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
132 | cp -a demo samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
5a3cc61d | 133 | rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded |
134 | rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded.o | |
135 | ||
9859b6af JB |
136 | mv $RPM_BUILD_ROOT%{py_sitedir}/wx/lib/editor/README.txt README.editor.txt |
137 | 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} | |
138 | ||
80e800ed AM |
139 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
140 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
141 | %py_postclean | |
2d9bbbc5 | 142 | |
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %files | |
147 | %defattr(644,root,root,755) | |
9859b6af | 148 | %doc wxPython/docs/{CHANGES.txt,MigrationGuide.txt,README.txt} wxPython/README.editor.txt |
7496232a | 149 | #don't remove these files, because this is licensing information |
d53fabac | 150 | %doc docs/{licence.txt,licendoc.txt,preamble.txt} |
9859b6af JB |
151 | %attr(755,root,root) %{_bindir}/helpviewer |
152 | %attr(755,root,root) %{_bindir}/img2png | |
153 | %attr(755,root,root) %{_bindir}/img2py | |
154 | %attr(755,root,root) %{_bindir}/img2xpm | |
155 | %attr(755,root,root) %{_bindir}/pyalacarte | |
156 | %attr(755,root,root) %{_bindir}/pyalamode | |
157 | %attr(755,root,root) %{_bindir}/pycrust | |
158 | %attr(755,root,root) %{_bindir}/pyshell | |
159 | %attr(755,root,root) %{_bindir}/pywrap | |
160 | %attr(755,root,root) %{_bindir}/pywxrc | |
80e800ed AM |
161 | |
162 | %{py_sitedir}/wxversion.py[co] | |
163 | ||
1ab6ba2b | 164 | %dir %{py_sitedir}/wx |
e9736c06 | 165 | %attr(755,root,root) %{py_sitedir}/wx/*.so |
1ab6ba2b | 166 | %{py_sitedir}/wx/*.py[co] |
89ed416b MC |
167 | %dir %{py_sitedir}/wx/build |
168 | %{py_sitedir}/wx/build/*.py[co] | |
1ab6ba2b AF |
169 | %dir %{py_sitedir}/wx/lib |
170 | %{py_sitedir}/wx/lib/*.py[co] | |
a5bf25b4 JB |
171 | %dir %{py_sitedir}/wx/lib/analogclock |
172 | %{py_sitedir}/wx/lib/analogclock/*.py[co] | |
173 | %dir %{py_sitedir}/wx/lib/analogclock/lib_setup | |
174 | %{py_sitedir}/wx/lib/analogclock/lib_setup/*.py[co] | |
7f7e4110 AM |
175 | %dir %{py_sitedir}/wx/lib/art |
176 | %{py_sitedir}/wx/lib/art/*.py[co] | |
1ab6ba2b AF |
177 | %dir %{py_sitedir}/wx/lib/colourchooser |
178 | %{py_sitedir}/wx/lib/colourchooser/*.py[co] | |
179 | %dir %{py_sitedir}/wx/lib/editor | |
180 | %{py_sitedir}/wx/lib/editor/*.py[co] | |
e9736c06 KK |
181 | %dir %{py_sitedir}/wx/lib/floatcanvas |
182 | %{py_sitedir}/wx/lib/floatcanvas/*.py[co] | |
9859b6af JB |
183 | %dir %{py_sitedir}/wx/lib/floatcanvas/Utilities |
184 | %{py_sitedir}/wx/lib/floatcanvas/Utilities/*.py[co] | |
e9736c06 KK |
185 | %dir %{py_sitedir}/wx/lib/masked |
186 | %{py_sitedir}/wx/lib/masked/*.py[co] | |
1ab6ba2b AF |
187 | %dir %{py_sitedir}/wx/lib/mixins |
188 | %{py_sitedir}/wx/lib/mixins/*.py[co] | |
e9736c06 KK |
189 | %dir %{py_sitedir}/wx/lib/ogl |
190 | %{py_sitedir}/wx/lib/ogl/*.py[co] | |
6fa71d78 RT |
191 | %dir %{py_sitedir}/wx/lib/agw |
192 | %{py_sitedir}/wx/lib/agw/*.py[co] | |
edfcd83e | 193 | %{py_sitedir}/wx/lib/agw/data |
6fa71d78 RT |
194 | %dir %{py_sitedir}/wx/lib/agw/aui |
195 | %{py_sitedir}/wx/lib/agw/aui/*.py[co] | |
4c71c800 AM |
196 | %dir %{py_sitedir}/wx/lib/agw/persist |
197 | %{py_sitedir}/wx/lib/agw/persist/*.py[co] | |
6fa71d78 RT |
198 | %dir %{py_sitedir}/wx/lib/agw/ribbon |
199 | %{py_sitedir}/wx/lib/agw/ribbon/*.py[co] | |
edfcd83e AM |
200 | %dir %{py_sitedir}/wx/lib/pdfviewer |
201 | %{py_sitedir}/wx/lib/pdfviewer/*.py[co] | |
6fa71d78 RT |
202 | %dir %{py_sitedir}/wx/lib/pubsub |
203 | %{py_sitedir}/wx/lib/pubsub/*.py[co] | |
204 | %dir %{py_sitedir}/wx/lib/pubsub/core | |
205 | %{py_sitedir}/wx/lib/pubsub/core/*.py[co] | |
206 | %dir %{py_sitedir}/wx/lib/pubsub/core/arg1 | |
207 | %{py_sitedir}/wx/lib/pubsub/core/arg1/*.py[co] | |
208 | %dir %{py_sitedir}/wx/lib/pubsub/core/kwargs | |
209 | %{py_sitedir}/wx/lib/pubsub/core/kwargs/*.py[co] | |
6fa71d78 RT |
210 | %dir %{py_sitedir}/wx/lib/pubsub/utils |
211 | %{py_sitedir}/wx/lib/pubsub/utils/*.py[co] | |
1ab6ba2b | 212 | %dir %{py_sitedir}/wx/py |
e9736c06 | 213 | %{py_sitedir}/wx/py/*.ico |
1ab6ba2b | 214 | %{py_sitedir}/wx/py/*.py[co] |
e9736c06 | 215 | %doc %{py_sitedir}/wx/py/*.txt |
1ab6ba2b AF |
216 | %dir %{py_sitedir}/wx/tools |
217 | %{py_sitedir}/wx/tools/*.py[co] | |
218 | %dir %{py_sitedir}/wx/tools/XRCed | |
219 | %{py_sitedir}/wx/tools/XRCed/*.py[co] | |
e9736c06 KK |
220 | %doc %{py_sitedir}/wx/tools/XRCed/*.txt |
221 | %{py_sitedir}/wx/tools/XRCed/*.xrc | |
2d9bbbc5 | 222 | |
9859b6af | 223 | %{py_sitedir}/wxPython-*.egg-info |
9859b6af JB |
224 | |
225 | %files devel | |
226 | %defattr(644,root,root,755) | |
edfcd83e | 227 | %{_includedir}/wx-3.0/wx/wxPython |
9859b6af JB |
228 | |
229 | %files editra | |
230 | %defattr(644,root,root,755) | |
231 | %doc wxPython/wx/tools/Editra/{AUTHORS,CHANGELOG,COPYING,FAQ,NEWS,README,THANKS,TODO,docs/*.txt} | |
232 | %attr(755,root,root) %{_bindir}/editra | |
233 | %dir %{py_sitedir}/wx/tools/Editra | |
9859b6af | 234 | %{py_sitedir}/wx/tools/Editra/__init__.py[co] |
e34ba184 | 235 | %{py_sitedir}/wx/tools/Editra/launcher.py[co] |
2c9c16b7 | 236 | %{py_sitedir}/wx/tools/Editra/Editra.pyw |
9859b6af | 237 | %dir %{py_sitedir}/wx/tools/Editra/locale |
7496232a JB |
238 | %lang(ca) %{py_sitedir}/wx/tools/Editra/locale/ca_ES@valencia |
239 | %lang(cs) %{py_sitedir}/wx/tools/Editra/locale/cs_CZ | |
240 | %lang(da) %{py_sitedir}/wx/tools/Editra/locale/da_DK | |
241 | %lang(de) %{py_sitedir}/wx/tools/Editra/locale/de_DE | |
9859b6af JB |
242 | %lang(en) %{py_sitedir}/wx/tools/Editra/locale/en_US |
243 | %lang(es) %{py_sitedir}/wx/tools/Editra/locale/es_ES | |
7496232a JB |
244 | %lang(fr) %{py_sitedir}/wx/tools/Editra/locale/fr_FR |
245 | %lang(gl) %{py_sitedir}/wx/tools/Editra/locale/gl_ES | |
246 | %lang(hr) %{py_sitedir}/wx/tools/Editra/locale/hr_HR | |
247 | %lang(hu) %{py_sitedir}/wx/tools/Editra/locale/hu_HU | |
248 | %lang(it) %{py_sitedir}/wx/tools/Editra/locale/it_IT | |
9859b6af | 249 | %lang(ja) %{py_sitedir}/wx/tools/Editra/locale/ja_JP |
7496232a JB |
250 | %lang(lv) %{py_sitedir}/wx/tools/Editra/locale/lv_LV |
251 | %lang(nl) %{py_sitedir}/wx/tools/Editra/locale/nl_NL | |
252 | %lang(nn) %{py_sitedir}/wx/tools/Editra/locale/nn_NO | |
253 | %lang(pl) %{py_sitedir}/wx/tools/Editra/locale/pl_PL | |
254 | %lang(pt_BR) %{py_sitedir}/wx/tools/Editra/locale/pt_BR | |
edfcd83e | 255 | %lang(ro) %{py_sitedir}/wx/tools/Editra/locale/ro_RO |
9859b6af | 256 | %lang(ru) %{py_sitedir}/wx/tools/Editra/locale/ru_RU |
7496232a JB |
257 | %lang(sk) %{py_sitedir}/wx/tools/Editra/locale/sk_SK |
258 | %lang(sl) %{py_sitedir}/wx/tools/Editra/locale/sl_SI | |
259 | %lang(sr) %{py_sitedir}/wx/tools/Editra/locale/sr_RS | |
260 | %lang(sv) %{py_sitedir}/wx/tools/Editra/locale/sv_SE | |
261 | %lang(tr) %{py_sitedir}/wx/tools/Editra/locale/tr_TR | |
262 | %lang(uk) %{py_sitedir}/wx/tools/Editra/locale/uk_UA | |
263 | %lang(zh_CN) %{py_sitedir}/wx/tools/Editra/locale/zh_CN | |
264 | %lang(zh_TW) %{py_sitedir}/wx/tools/Editra/locale/zh_TW | |
9859b6af JB |
265 | %{py_sitedir}/wx/tools/Editra/pixmaps |
266 | %dir %{py_sitedir}/wx/tools/Editra/src | |
267 | %{py_sitedir}/wx/tools/Editra/src/*.py[co] | |
268 | %dir %{py_sitedir}/wx/tools/Editra/src/autocomp | |
269 | %{py_sitedir}/wx/tools/Editra/src/autocomp/*.py[co] | |
e34ba184 | 270 | %dir %{py_sitedir}/wx/tools/Editra/src/eclib |
271 | %{py_sitedir}/wx/tools/Editra/src/eclib/*.py[co] | |
9859b6af JB |
272 | %dir %{py_sitedir}/wx/tools/Editra/src/extern |
273 | %{py_sitedir}/wx/tools/Editra/src/extern/*.py[co] | |
274 | %dir %{py_sitedir}/wx/tools/Editra/src/syntax | |
275 | %{py_sitedir}/wx/tools/Editra/src/syntax/*.py[co] | |
6fa71d78 RT |
276 | %dir %{py_sitedir}/wx/tools/Editra/src/ebmlib |
277 | %{py_sitedir}/wx/tools/Editra/src/ebmlib/*.py[co] | |
2c9c16b7 | 278 | %{py_sitedir}/wx/tools/Editra/styles |
7f7e4110 | 279 | |
9859b6af JB |
280 | %files xrced |
281 | %defattr(644,root,root,755) | |
282 | %doc wxPython/wx/tools/XRCed/{CHANGES.txt,ChangeLog,README.txt,TODO.txt,license.txt} | |
283 | %attr(755,root,root) %{_bindir}/xrced | |
284 | %dir %{py_sitedir}/wx/tools/XRCed | |
285 | %{py_sitedir}/wx/tools/XRCed/misc | |
286 | %dir %{py_sitedir}/wx/tools/XRCed/plugins | |
287 | %{py_sitedir}/wx/tools/XRCed/plugins/*.py[co] | |
288 | %{py_sitedir}/wx/tools/XRCed/plugins/bitmaps | |
289 | %{py_sitedir}/wx/tools/XRCed/plugins/gizmos.crx | |
290 | %{py_sitedir}/wx/tools/XRCed/xrced.htb | |
a5bf25b4 | 291 | |
2d9bbbc5 | 292 | %files examples |
16bda523 | 293 | %defattr(644,root,root,755) |
2d9bbbc5 | 294 | %{_examplesdir}/%{name}-%{version} |