]> git.pld-linux.org Git - packages/wxWidgets.git/blob - wxWidgets.spec
- added -utils-patch [-1 TODO: utils/configtool does not build
[packages/wxWidgets.git] / wxWidgets.spec
1 #
2 # Conditional build:
3 %bcond_without  odbc                    # without ODBC support
4 %bcond_without  gtk                     # without wxGTK packages
5 %bcond_without  gtk2                    # without wxGTK2 packages
6 %bcond_without  x11                     # without wxX11 packages
7 %bcond_without  gl                      # without *-gl* packages
8 %bcond_without  unicode                 # without *-unicode* packages
9 %bcond_without  nounicode               # only unicode packages
10 %bcond_without  univ                    # without *-univ* packages
11 %bcond_without  nouniv                  # only univ packages
12 %bcond_with     debug                   # build with \--enable-debug
13                                         # (binary incompatible with non-debug)
14 %bcond_with     motif                   # without wxMotif packages
15                                         
16 #
17 # TODO:
18 # - review all bconds
19 # - use external stc for contrib/src/stc
20 # - use system iODBC or unixODBC (--with-odbc=sys but this prefer iODBC and if not found uses unixODBC)
21 # - check ODBC in unicode build
22 # - separate contrib extensions
23 # - review all Summary and %%description
24 # - fix %%_with_debug build (filenames with 'd')
25 # - mspack BR
26 # - build demos for X11,unicode,univ (smallest deps)
27 # misc notes:
28 # contrib/utils/wxrc build fine with gtk2-nounicode
29 # contrib/utils/wxrcedit segvfaults on gtk2-nounicode (wxPen::operator==)
30 # utils/HelpGen build fine on gtk2-nounicode (depend only on base lib)
31 # utils/emulator build and work fine on gtk2-nounicode
32 # utils/helpview build and work fine on gtk2-nounicode
33 # utils/hhp2cached build fine on gtk2-nounicode
34 # utils/tex2rtf build fine on gtk2-nounicode (depend only on base lib)
35 #   but not in gtk2-unicode 
36 #   ../../../.././utils/tex2rtf/src/tex2any.cpp:2716:1: converting to execution character set: Invalid or incomplete multibyte or wide character
37 #   this line contains £ aka POUNDS, probably changing it to octal value fix this issue
38 Summary:        wxWidgets library
39 Summary(pl):    Biblioteka wxWidgets
40 Name:           wxWidgets
41 Version:        2.5.3
42 Release:        0.2
43 License:        wxWidgets Licence
44 Group:          X11/Libraries
45 Source0:        http://dl.sourceforge.net/wxwindows/wxAll-%{version}.tar.gz
46 # Source0-md5:  33994e85efc06307977d2ddb9cbd91a1
47 #Source1:       ftp://biolpc22.york.ac.uk/pub/2.5.2/wxWidgets-2.5.2-Patch01.tar.gz
48 ## Source1-md5: 22f8177c509c058685146b295d9de866
49 Patch0:         %{name}-samples.patch
50 Patch1:         %{name}-eggtrayicon.patch
51 Patch2:         %{name}-utils.patch
52 URL:            http://www.wxWidgets.org/
53 %{?with_gl:BuildRequires:       OpenGL-devel}
54 # FIXME: only for sdl.m4
55 BuildRequires:  SDL-devel
56 BuildRequires:  autoconf
57 BuildRequires:  automake
58 BuildRequires:  bakefile >= 0.1.4
59 BuildRequires:  bison
60 BuildRequires:  cppunit-devel
61 BuildRequires:  esound-devel
62 BuildRequires:  expat-devel
63 BuildRequires:  flex
64 BuildRequires:  gettext-devel
65 BuildRequires:  gtk+-devel >= 1.2.7
66 BuildRequires:  libjpeg-devel
67 BuildRequires:  libmng-devel
68 BuildRequires:  libpng-devel
69 BuildRequires:  libstdc++-devel
70 BuildRequires:  libtiff-devel
71 BuildRequires:  libtool
72 %{?with_gtk2:BuildRequires:     gtk+2-devel}
73 %{?with_motif:BuildRequires:    motif-devel}
74 %{?with_unicode:BuildRequires:  pango-devel}
75 Obsoletes:      wxwin-common
76 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77
78 %define         _sysconfdir     %{_datadir}
79
80 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
81
82 # detect bcond conflicts (don't move this)
83 %{!?with_unicode:%{!?with_nounicode:%{error: --without unicode + --without nounicode = NULL} exit 1}}
84 %{!?with_univ:%{!?with_nouniv:%{error: --without univ + --without nouniv = NULL} exit 1}}
85 %{!?with_motif:%{!?with_x11:%{!?with_gtk:%{!?with_gtk2:%{error:bconds conflit detected} exit 1}}}}
86
87 %description
88 wxWidgets is a free C++ library for cross-platform GUI development.
89 With wxWidgets, you can create applications for different GUIs (GTK+,
90 Motif/LessTif, MS Windows, Mac) from the same source code.
91
92 %description -l pl
93 wxWidgets to wolnodostêpna biblioteka napisana w C++ umo¿liwiaj±ca
94 rozwijanie wieloplatformowych programów GUI. Przy u¿yciu wxWidgets
95 mo¿na tworzyæ aplikacje dla ró¿nych GUI (GTK+, Motif/LessTif, MS
96 Windows, Mac) z tego samego kodu ¼ród³owego.
97
98 %package afm
99 Summary:        Font metrics common for wxGTK, wxGTK2, wxMotif i wxX11
100 Summary(pl):    Metryki fontów wspólne dla wxGTK, wxGTK2, wxMotif i wxX11
101 Group:          X11/Libraries
102 Requires:       %{name} = %{version}-%{release}
103 Obsoletes:      wxwin-afm
104
105 %description afm
106 Font metrics (in AFM format) common for wxGTK, wxGTK2, wxMotif and
107 wxX11 libraries.
108
109 %description afm -l pl
110 Metryki fontów (w formacie AFM) wspólne dla bibliotek wxGTK, wxGTK2,
111 wxMotif i wxX11.
112
113 %package devel
114 Summary:        wxWidgets header files and development documentation
115 Summary(pl):    Pliki nag³ówkowe i dokumentacja do wxWidgets
116 Group:          X11/Development/Libraries
117 Requires:       libstdc++-devel
118
119 %description devel
120 Header files and development documentation for the wxWidgets
121 libraries.
122
123 %description devel -l pl
124 Pliki nag³ówkowe i dokumentacja do bibliotek wxWidgets.
125
126 %package examples
127 Summary:        wxWidgets example programs
128 Summary(pl):    Przyk³adowe programy wxWidgets
129 Group:          X11/Development/Libraries
130 Requires:       %{name}-devel = %{version}-%{release}
131
132 %description examples
133 wxWidgets example programs.
134
135 %description examples -l pl
136 Przyk³adowe programy wxWidgets.
137
138 %package HelpGen
139 Summary:        Help file generator for wxWidgets programs
140 Summary(pl):    Generator plików pomocy dla programów wxWidgets
141 Group:          Development/Tools
142 Requires:       wxBase = %{version}-%{release}
143
144 %description HelpGen
145 Help file generator for wxWidgets programs.
146
147 %description HelpGen -l pl
148 Generator plików pomocy dla programów wxWidgets.
149
150 %package -n wxBase
151 Summary:        wxBase library - non-GUI support classes of wxWidgets toolkit
152 Summary(pl):    wxBase - biblioteka klas wxWidgets nie zwi±zanych z GUI
153 Group:          X11/Libraries
154 Requires:       %{name} = %{version}-%{release}
155
156 %description -n wxBase
157 wxBase is a collection of C++ classes providing basic data structures
158 (strings, lists, arrays), powerful wxDateTime class for date
159 manipulations, portable wrappers around many OS-specific functions
160 allowing to build the same program under all supported folders,
161 wxThread class for writing multithreaded programs using either Win32
162 or POSIX threads and much more. wxBase currently supports the
163 following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris,
164 HP-UX, ...) and BeOS.
165
166 %description -n wxBase -l pl
167 wxBase jest zestawem klas C++ obs³uguj±cych podstawowe struktury
168 danych (stringi, listy, tablice), klasê wxDateTime do operacji na
169 datach, przeno¶ne wrappery do wielu funkcji zale¿nych od systemu
170 operacyjnego pozwalaj±ce na zbudowanie tego samego programu w ró¿nych
171 ¶rodowiskach, klasê wxThread do pisania programów wielow±tkowych
172 u¿ywaj±cych w±tków Win32 albo POSIX i inne. wxBase obs³uguje
173 platformy: Win32, Unix i BeOS.
174
175 %package -n wxBase-devel
176 Summary:        wxBase headers needed for developping with wxBase
177 Summary(pl):    Pliki nag³ówkowe do wxBase
178 Group:          X11/Development/Libraries
179 Requires:       %{name}-devel = %{version}-%{release}
180 Requires:       wxBase = %{version}-%{release}
181
182 %description -n wxBase-devel
183 Header files for wxBase. You need them to develop programs using
184 wxBase.
185
186 %description -n wxBase-devel -l pl
187 Pliki nag³ówkowe do biblioteki wxBase.
188
189 %package -n wxBase-unicode
190 Summary:        wxBase library - non-GUI support classes of wxWidgets toolkit with UNICODE support
191 Summary(pl):    wxBase - biblioteka klas wxWidgets nie zwi±zanych z GUI ze wsparciem dla UNICODE
192 Group:          X11/Libraries
193 Requires:       %{name} = %{version}-%{release}
194
195 %description -n wxBase-unicode
196 wxBase is a collection of C++ classes providing basic data structures
197 (strings, lists, arrays), powerful wxDateTime class for date
198 manipulations, portable wrappers around many OS-specific functions
199 allowing to build the same program under all supported folders,
200 wxThread class for writing multithreaded programs using either Win32
201 or POSIX threads and much more. wxBase currently supports the
202 following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris,
203 HP-UX, ...) and BeOS. This version is build with UNICODE support.
204
205 %description -n wxBase-unicode -l pl
206 wxBase jest zestawem klas C++ obs³uguj±cych podstawowe struktury
207 danych (stringi, listy, tablice), klasê wxDateTime do operacji na
208 datach, przeno¶ne wrappery do wielu funkcji zale¿nych od systemu
209 operacyjnego pozwalaj±ce na zbudowanie tego samego programu w ró¿nych
210 ¶rodowiskach, klasê wxThread do pisania programów wielow±tkowych
211 u¿ywaj±cych w±tków Win32 albo POSIX i inne. wxBase obs³uguje
212 platformy: Win32, Unix i BeOS. Ta wersja jest zbudowana z obs³ug±
213 UNICODE.
214
215 %package -n wxBase-unicode-devel
216 Summary:        wxBase headers needed for developping with UNICODE-enabled wxBase
217 Summary(pl):    Pliki nag³ówkowe do wxBase z obs³ug± UNICODE
218 Group:          X11/Development/Libraries
219 Requires:       %{name}-devel = %{version}-%{release}
220 Requires:       wxBase-unicode = %{version}-%{release}
221
222 %description -n wxBase-unicode-devel
223 Header files for wxBase. You need them to develop programs using
224 UNICODE-enabled wxBase.
225
226 %description -n wxBase-unicode-devel -l pl
227 Pliki nag³ówkowe do biblioteki wxBase z obs³ug± UNICODE.
228
229 %package -n wxGTK
230 Summary:        wxGTK library
231 Summary(pl):    Biblioteka wxGTK
232 Group:          X11/Libraries
233 Requires:       %{name} = %{version}-%{release}
234 Requires:       %{name}-afm = %{version}-%{release}
235
236 %description -n wxGTK
237 wxWidgets library using GTK+ widgets.
238
239 %description -n wxGTK -l pl
240 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK+.
241
242 %package -n wxGTK-devel
243 Summary:        Header files for wxGTK library
244 Summary(pl):    Pliki nag³ówkowe biblioteki wxGTK
245 Group:          X11/Development/Libraries
246 Requires:       wxGTK = %{version}-%{release}
247 Requires:       %{name}-devel = %{version}-%{release}
248
249 %description -n wxGTK-devel
250 Header files for wxWidgets library using GTK+ widgets.
251
252 %description -n wxGTK-devel -l pl
253 Pliki nag³ówkowe dla biblioteki wxWidgets u¿ywaj±cej widgetów GTK+.
254
255 %package -n wxGTK-gl
256 Summary:        GL canvas library for wxGTK
257 Summary(pl):    Biblioteka GL dla wxGTK
258 Group:          X11/Libraries
259 Requires:       wxGTK = %{version}-%{release}
260 Requires:       OpenGL
261
262 %description -n wxGTK-gl
263 GL canvas library for wxGTK.
264
265 %description -n wxGTK-gl -l pl
266 Biblioteka GL dla wxGTK.
267
268 %package -n wxGTK-gl-devel
269 Summary:        Development files for GL canvas library for wxGTK
270 Summary(pl):    Pliki programistyczne biblioteki GL dla wxGTK
271 Group:          X11/Development/Libraries
272 Requires:       wxGTK-devel = %{version}-%{release}
273 Requires:       wxGTK-gl = %{version}-%{release}
274 Requires:       OpenGL-devel
275
276 %description -n wxGTK-gl-devel
277 Development files for GL canvas library for wxGTK.
278
279 %description -n wxGTK-gl-devel -l pl
280 Pliki programistyczne biblioteki GL dla wxGTK.
281
282 %package -n wxGTK-univ
283 Summary:        wxUniversal-based wxGTK library
284 Summary(pl):    Oparta na wxUniversal biblioteka wxGTK
285 Group:          X11/Libraries
286 Requires:       %{name} = %{version}-%{release}
287 Requires:       %{name}-afm = %{version}-%{release}
288
289 %description -n wxGTK-univ
290 wxUniversal-based wxWidgets library using GTK+ widgets.
291
292 %description -n wxGTK-univ -l pl
293 Oparta na wxUniversal biblioteka wxWidgets u¿ywaj±ca widgetów GTK.
294
295 %package -n wxGTK-univ-devel
296 Summary:        Header files for wxUniversal-based wxGTK library
297 Summary(pl):    Pliki nag³ówkowe opartej na wxUniversal biblioteki wxGTK
298 Group:          X11/Development/Libraries
299 Requires:       wxGTK-univ = %{version}-%{release}
300 Requires:       %{name}-devel = %{version}-%{release}
301
302 %description -n wxGTK-univ-devel
303 Header files for wxUniversal-based wxWidgets library using GTK
304 widgets.
305
306 %description -n wxGTK-univ-devel -l pl
307 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxWidgets
308 u¿ywaj±cej widgetów GTK.
309
310 %package -n wxGTK-univ-gl
311 Summary:        GL canvas library for wxUniversal-based wxGTK
312 Summary(pl):    Biblioteka GL dla opartej na wxUniversal wxGTK
313 Group:          X11/Libraries
314 Requires:       wxGTK-univ = %{version}-%{release}
315 Requires:       OpenGL
316
317 %description -n wxGTK-univ-gl
318 GL canvas library for wxUniversal-based wxGTK.
319
320 %description -n wxGTK-univ-gl -l pl
321 Biblioteka GL dla opartej na wxUniversal wxGTK.
322
323 %package -n wxGTK-univ-gl-devel
324 Summary:        Development files for GL canvas library for wxUniversal-based wxGTK2
325 Summary(pl):    Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxGTK2
326 Group:          X11/Development/Libraries
327 Requires:       wxGTK-univ-devel = %{version}-%{release}
328 Requires:       wxGTK-univ-gl = %{version}-%{release}
329 Requires:       OpenGL-devel
330
331 %description -n wxGTK-univ-gl-devel
332 Development files for GL canvas library for wxUniversal-based wxGTK2.
333
334 %description -n wxGTK-univ-gl-devel -l pl
335 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxGTK2.
336
337 %package -n wxGTK2
338 Summary:        wxGTK2 library
339 Summary(pl):    Biblioteka wxGTK2
340 Group:          X11/Libraries
341 Requires:       %{name} = %{version}-%{release}
342 Requires:       %{name}-afm = %{version}-%{release}
343
344 %description -n wxGTK2
345 wxWidgets library using GTK2 widgets.
346
347 %description -n wxGTK2 -l pl
348 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2.
349
350 %package -n wxGTK2-devel
351 Summary:        Header files for wxGTK2 library
352 Summary(pl):    Pliki nag³ówkowe biblioteki wxGTK2
353 Group:          X11/Development/Libraries
354 Requires:       wxGTK2 = %{version}-%{release}
355 Requires:       %{name}-devel = %{version}-%{release}
356
357 %description -n wxGTK2-devel
358 Header files for wxWidgets library using GTK2 widgets.
359
360 %description -n wxGTK2-devel -l pl
361 Pliki nag³ówkowe dla biblioteki wxWidgets u¿ywaj±cej widgetów GTK2.
362
363 %package -n wxGTK2-gl
364 Summary:        GL canvas library for wxGTK2
365 Summary(pl):    Biblioteka GL dla wxGTK2
366 Group:          X11/Libraries
367 Requires:       wxGTK2 = %{version}-%{release}
368 Requires:       OpenGL
369
370 %description -n wxGTK2-gl
371 wxGTK2 GL canvas library.
372
373 %description -n wxGTK2-gl -l pl
374 Biblioteka GL dla wxGTK2.
375
376 %package -n wxGTK2-gl-devel
377 Summary:        Development files for GL canvas library for wxGTK2
378 Summary(pl):    Pliki programistyczne biblioteki GL dla wxGTK2
379 Group:          X11/Development/Libraries
380 Requires:       wxGTK2-devel = %{version}-%{release}
381 Requires:       wxGTK2-gl = %{version}-%{release}
382 Requires:       OpenGL-devel
383
384 %description -n wxGTK2-gl-devel
385 Development files for wxGTK2 GL canvas library.
386
387 %description -n wxGTK2-gl-devel -l pl
388 Pliki programistyczne biblioteki GL dla wxGTK2.
389
390 %package -n wxGTK2-unicode
391 Summary:        wxGTK2 library with UNICODE support
392 Summary(pl):    Biblioteka wxGTK2 z obs³ug± UNICODE
393 Group:          X11/Libraries
394 Requires:       %{name} = %{version}-%{release}
395 Requires:       %{name}-afm = %{version}-%{release}
396
397 %description -n wxGTK2-unicode
398 wxWidgets library using GTK2 widgets with UNICODE support.
399
400 %description -n wxGTK2-unicode -l pl
401 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2 z obs³ug± UNICODE.
402
403 %package -n wxGTK2-unicode-devel
404 Summary:        Header files for wxGTK2 library with UNICODE support
405 Summary(pl):    Pliki nag³ówkowe biblioteki wxGTK2 z obs³ug± UNICODE
406 Group:          X11/Development/Libraries
407 Requires:       wxGTK2-unicode = %{version}-%{release}
408 Requires:       %{name}-devel = %{version}-%{release}
409
410 %description -n wxGTK2-unicode-devel
411 Header files for wxWidgets library using GTK2 widgets with UNICODE
412 support.
413
414 %description -n wxGTK2-unicode-devel -l pl
415 Pliki nag³ówkowe biblioteki wxWidgets u¿ywaj±cej widgetów GTK2 z
416 obs³ug± UNICODE.
417
418 %package -n wxGTK2-unicode-gl
419 Summary:        GL canvas library for wxGTK2 with UNICODE support
420 Summary(pl):    Biblioteka GL dla wxGTK2 z obs³ug± UNICODE
421 Group:          X11/Libraries
422 Requires:       wxGTK2-unicode = %{version}-%{release}
423 Requires:       OpenGL
424
425 %description -n wxGTK2-unicode-gl
426 GL canvas library for wxGTK2 with UNICODE support.
427
428 %description -n wxGTK2-unicode-gl -l pl
429 Biblioteka GL dla wxGTK2 z obs³ug± UNICODE.
430
431 %package -n wxGTK2-unicode-gl-devel
432 Summary:        Development files for GL canvas library for wxGTK2 with UNICODE support
433 Summary(pl):    Pliki programistyczne biblioteki GL dla wxGTK2 z obs³ug± UNICODE
434 Group:          X11/Development/Libraries
435 Requires:       wxGTK2-unicode-devel = %{version}-%{release}
436 Requires:       wxGTK2-unicode-gl = %{version}-%{release}
437 Requires:       OpenGL-devel
438
439 %description -n wxGTK2-unicode-gl-devel
440 Development files for GL canvas library for wxGTK2 with UNICODE
441 support.
442
443 %description -n wxGTK2-unicode-gl-devel -l pl
444 Pliki programistyczne biblioteki GL dla wxGTK2 z obs³ug± UNICODE.
445
446 %package -n wxGTK2-univ
447 Summary:        wxUniversal-based wxGTK2 library
448 Summary(pl):    Oparta na wxUniversal biblioteka wxGTK2
449 Group:          X11/Libraries
450 Requires:       %{name} = %{version}-%{release}
451 Requires:       %{name}-afm = %{version}-%{release}
452
453 %description -n wxGTK2-univ
454 wxUniversal-based wxWidgets library using GTK2 widgets.
455
456 %description -n wxGTK2-univ -l pl
457 Oparta na wxUniversal biblioteka wxWidgets u¿ywaj±ca widgetów GTK2.
458
459 %package -n wxGTK2-univ-devel
460 Summary:        Header files for wxUniversal-based wxGTK2 library
461 Summary(pl):    Pliki nag³ówkowe opartej na wxUniversal biblioteki wxGTK2
462 Group:          X11/Development/Libraries
463 Requires:       wxGTK2-univ = %{version}-%{release}
464 Requires:       %{name}-devel = %{version}-%{release}
465
466 %description -n wxGTK2-univ-devel
467 Header files for wxUniversal-based wxWidgets library using GTK2
468 widgets.
469
470 %description -n wxGTK2-univ-devel -l pl
471 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxWidgets
472 u¿ywaj±cej widgetów GTK2.
473
474 %package -n wxGTK2-univ-gl
475 Summary:        GL canvas library for wxUniversal-based wxGTK2
476 Summary(pl):    Biblioteka GL dla opartej na wxUniversal wxGTK2
477 Group:          X11/Libraries
478 Requires:       wxGTK2-univ = %{version}-%{release}
479 Requires:       OpenGL
480
481 %description -n wxGTK2-univ-gl
482 GL canvas library for wxUniversal-based wxGTK2.
483
484 %description -n wxGTK2-univ-gl -l pl
485 Biblioteka GL dla opartej na wxUniversal wxGTK2.
486
487 %package -n wxGTK2-univ-gl-devel
488 Summary:        Development files for GL canvas library for wxUniversal-based wxGTK2
489 Summary(pl):    Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxGTK2
490 Summary:        wxGTK
491 Group:          X11/Development/Libraries
492 Requires:       wxGTK2-univ-devel = %{version}-%{release}
493 Requires:       wxGTK2-univ-gl = %{version}-%{release}
494 Requires:       OpenGL-devel
495
496 %description -n wxGTK2-univ-gl-devel
497 Development files for GL canvas library for wxUniversal-based wxGTK2.
498
499 %description -n wxGTK2-univ-gl-devel -l pl
500 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxGTK2.
501
502 %package -n wxGTK2-univ-unicode
503 Summary:        wxUniversal-based wxGTK2 library with UNICODE support
504 Summary(pl):    Oparta na wxUniversal biblioteka wxGTK2 z obs³ug± UNICODE
505 Group:          X11/Libraries
506 Requires:       %{name} = %{version}-%{release}
507 Requires:       %{name}-afm = %{version}-%{release}
508
509 %description -n wxGTK2-univ-unicode
510 wxUniversal-based wxWidgets library using GTK2 widgets with UNICODE
511 support.
512
513 %description -n wxGTK2-univ-unicode -l pl
514 Oparta na wxUniversal biblioteka wxWidgets u¿ywaj±ca widgetów GTK2 z
515 obs³ug± UNICODE.
516
517 %package -n wxGTK2-univ-unicode-devel
518 Summary:        Header files for wxUniversal-based wxGTK2 library with UNICODE support
519 Summary(pl):    Pliki nag³ówkowe opartej na wxUniversal biblioteki wxGTK2 z obs³ug± UNICODE
520 Group:          X11/Development/Libraries
521 Requires:       wxGTK2-univ-unicode = %{version}-%{release}
522 Requires:       %{name}-devel = %{version}-%{release}
523
524 %description -n wxGTK2-univ-unicode-devel
525 Header files for wxUniversal-based wxWidgets library using GTK2
526 widgets with UNICODE support.
527
528 %description -n wxGTK2-univ-unicode-devel -l pl
529 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxWidgets
530 u¿ywaj±cej widgetów GTK2 z obs³ug± UNICODE.
531
532 %package -n wxGTK2-univ-unicode-gl
533 Summary:        GL canvas library for wxUniversal-based wxGTK2 with UNICODE support
534 Summary(pl):    Biblioteka GL dla opartej na wxUniversal wxGTK2 z obs³ug± UNICODE
535 Group:          X11/Libraries
536 Requires:       wxGTK2-univ-unicode = %{version}-%{release}
537 Requires:       OpenGL
538
539 %description -n wxGTK2-univ-unicode-gl
540 GL canvas library for wxUniversal-based wxGTK2 with UNICODE support.
541
542 %description -n wxGTK2-univ-unicode-gl -l pl
543 Biblioteka GL dla opartej na wxUniversal wxGTK2 z obs³ug± UNICODE.
544
545 %package -n wxGTK2-univ-unicode-gl-devel
546 Summary:        Development files for GL canvas library for wxGTK2-univ with UNICODE support
547 Summary(pl):    Pliki programistyczne biblioteki GL dla wxGTK2-univ z obs³ug± UNICODE
548 Summary:        wxGTK
549 Group:          X11/Development/Libraries
550 Requires:       wxGTK2-univ-unicode-devel = %{version}-%{release}
551 Requires:       wxGTK2-univ-unicode-gl = %{version}-%{release}
552 Requires:       OpenGL-devel
553
554 %description -n wxGTK2-univ-unicode-gl-devel
555 Development files for GL canvas library for wxUnicode-based wxGTK2
556 with UNICODE support.
557
558 %description -n wxGTK2-univ-unicode-gl-devel -l pl
559 Pliki programistyczne biblioteki GL dla opartej na wxUnicode wxGTK2 z
560 obs³ug± UNICODE.
561
562 %package -n wxMotif
563 Summary:        wxWidgets library - Motif port
564 Summary(pl):    biblioteka wxWidgets - port Motif
565 Group:          X11/Libraries
566 Requires:       %{name} = %{version}-%{release}
567 Requires:       %{name}-afm = %{version}-%{release}
568
569 %description -n wxMotif
570 wxWidgets is a free C++ library for cross-platform GUI development.
571 With wxWidgets, you can create applications for different GUIs (GTK+,
572 Motif/LessTif, MS Windows, Mac) from the same source code. This
573 package contains wxWidgets library using Motif widgets.
574
575 %description -n wxMotif -l pl
576 wxWidgets to darmowa biblioteka napisana w C++ umi¿liwiaj±ca
577 rozwijanie wielo-platformowych programów GUI. Z wxWidgets mo¿esz
578 tworzyæ aplikacje dla ró¿nych GUI (GTK+, Motif/LessTif, MS Windows,
579 Mac) z tego samego kodu ¼ród³owego. Ten pakiet zawiera bibliotekê
580 wxWidgets u¿ywaj±c± widgetów Motif.
581
582 %package -n wxMotif-devel
583 Summary:        wxMotif header files and development documentation
584 Summary(pl):    Pliki nag³ówkowe i dokumentacja do wxMotif
585 Group:          X11/Development/Libraries
586 Requires:       %{name}-devel = %{version}-%{release}
587 Requires:       wxMotif = %{version}-%{release}
588
589 %description -n wxMotif-devel
590 Header files and development documentation for the wxMotif library.
591
592 %description -n wxMotif-devel -l pl
593 Pliki nag³ówkowe i dokumentacja do biblioteki wxMotif.
594
595 %package -n wxMotif-gl
596 Summary:        GL canvas library for wxMotif
597 Summary(pl):    Biblioteka GL dla wxMotif
598 Group:          X11/Libraries
599 Requires:       wxMotif = %{version}-%{release}
600 Requires:       OpenGL
601
602 %description -n wxMotif-gl
603 GL canvas library for wxMotif.
604
605 %description -n wxMotif-gl -l pl
606 Biblioteka GL dla wxMotif.
607
608 %package -n wxMotif-gl-devel
609 Summary:        Development files for GL canvas library for wxMotif
610 Summary(pl):    Pliki programistyczne biblioteki GL dla wxMotif
611 Group:          X11/Libraries
612 Requires:       wxMotif-devel = %{version}-%{release}
613 Requires:       wxMotif-gl = %{version}-%{release}
614 Requires:       OpenGL-devel
615
616 %description -n wxMotif-gl-devel
617 Development files for GL canvas library for wxMotif.
618
619 %description -n wxMotif-gl-devel -l pl
620 Pliki programistyczne biblioteki GL dla wxMotif.
621
622 %package utils
623 Summary:        Misc utils from wxWidgets project
624 Summary(pl):    Ró¿ne narzêdzia z projektu wxWidgets
625 Group:          X11/Development/Tools
626 Requires:       wxX11-univ = %{version}-%{release}
627
628 %description utils
629 Misc utils from wxWidgets project: helpviewer, makegen, etc.
630
631 %description utils -l pl
632 Ró¿ne narzêdzia z projektu wxWidgets: helpviewer, makegen itp.
633
634 %package -n wxX11-univ
635 Summary:        wxUniversal-based wxX11 library
636 Summary(pl):    Oparta na wxUniversal biblioteka wxX11
637 Group:          X11/Libraries
638 Requires:       %{name} = %{version}-%{release}
639 Requires:       %{name}-afm = %{version}-%{release}
640
641 %description -n wxX11-univ
642 wxUniversal-based wxX11 library.
643
644 %description -n wxX11-univ -l pl
645 Oparta na wxUniversal biblioteka wxX11.
646
647 %package -n wxX11-univ-devel
648 Summary:        Header files for wxUniversal-based wxX11 library
649 Summary(pl):    Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11
650 Group:          X11/Libraries
651 Requires:       %{name}-devel = %{version}-%{release}
652 Requires:       wxX11-univ = %{version}-%{release}
653
654 %description -n wxX11-univ-devel
655 Header files for wxUniversal-based wxX11 library.
656
657 %description -n wxX11-univ-devel -l pl
658 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11.
659
660 %package -n wxX11-univ-gl
661 Summary:        GL canvas library for wxUniversal-based wxX11
662 Summary(pl):    Biblioteka GL dla opartej na wxUniversal wxX11
663 Group:          X11/Libraries
664 Requires:       wxX11-univ = %{version}-%{release}
665 Requires:       OpenGL
666
667 %description -n wxX11-univ-gl
668 GL canvas library for wxUniversal-based wxX11.
669
670 %description -n wxX11-univ-gl -l pl
671 Biblioteka GL dla opartej na wxUniversal wxX11.
672
673 %package -n wxX11-univ-gl-devel
674 Summary:        Development files for GL canvas library for wxUniversal-based wxX11
675 Summary(pl):    Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11
676 Group:          X11/Development/Libraries
677 Requires:       wxX11-univ-gl = %{version}-%{release}
678 Requires:       wxX11-univ-devel = %{version}-%{release}
679 Requires:       OpenGL-devel
680
681 %description -n wxX11-univ-gl-devel
682 Development files for GL canvas library for wxUniversal-based wxX11.
683
684 %description -n wxX11-univ-gl-devel -l pl
685 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11.
686
687 %package -n wxX11-univ-unicode
688 Summary:        wxUniversal-based wxX11 library with UNICODE support
689 Summary(pl):    Oparta na wxUniversal biblioteka wxX11 z obs³ug± UNICODE
690 Group:          X11/Libraries
691 Requires:       %{name} = %{version}-%{release}
692 Requires:       %{name}-afm = %{version}-%{release}
693
694 %description -n wxX11-univ-unicode
695 wxUniversal-based wxX11 library with UNICODE support.
696
697 %description -n wxX11-univ-unicode -l pl
698 Oparta na wxUniversal biblioteka wxX11 z obs³ug± UNICODE.
699
700 %package -n wxX11-univ-unicode-devel
701 Summary:        Header files for wxUniversal-based wxX11 library with UNICODE support
702 Summary(pl):    Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11 z obs³ug± UNICODE
703 Group:          X11/Development/Libraries
704 Requires:       %{name}-devel = %{version}-%{release}
705 Requires:       wxX11-univ-unicode = %{version}-%{release}
706
707 %description -n wxX11-univ-unicode-devel
708 Header files for wxUniversal-based wxX11 library with UNICODE support.
709
710 %description -n wxX11-univ-unicode-devel -l pl
711 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11 z obs³ug± UNICODE.
712
713 %package -n wxX11-univ-unicode-gl
714 Summary:        GL canvas library for wxUniversal-based wxX11 with UNICODE support
715 Summary(pl):    Biblioteka GL dla opartej na wxUniversal wxX11 z obs³ug± UNICODE
716 Group:          X11/Libraries
717 Requires:       wxX11-univ-unicode = %{version}-%{release}
718 Requires:       OpenGL
719
720 %description -n wxX11-univ-unicode-gl
721 GL canvas library for wxUniversal-based wxX11 with UNICODE support.
722
723 %description -n wxX11-univ-unicode-gl -l pl
724 Biblioteka GL dla opartej na wxUniversal wxX11 z obs³ug± UNICODE.
725
726 %package -n wxX11-univ-unicode-gl-devel
727 Summary:        Development files for GL canvas library for wxX11-univ with UNICODE support
728 Summary(pl):    Pliki programistyczne biblioteki GL dla wxX11-univ z obs³ug± UNICODE
729 Group:          X11/Development/Libraries
730 Requires:       wxX11-univ-unicode-gl = %{version}-%{release}
731 Requires:       wxX11-univ-unicode-devel = %{version}-%{release}
732 Requires:       OpenGL-devel
733
734 %description -n wxX11-univ-unicode-gl-devel
735 Development files for GL canvas library for wxUniversal-based wxX11
736 with UNICODE support.
737
738 %description -n wxX11-univ-unicode-gl-devel -l pl
739 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11 z
740 obs³ug± UNICODE.
741
742 %prep
743 %setup -q
744 %patch0 -p1
745 %patch1 -p1
746 %patch2 -p1
747 #%patch3 -p1
748 #%patch4 -p1
749 #%patch5 -p1
750 #%patch6 -p1
751 #%patch7 -p1
752 #%patch8 -p1
753 #%patch9 -p1
754 #%patch10 -p1
755 #%patch11 -p1
756 #%patch12 -p1
757 #%patch13 -p1
758 #%patch14 -p1
759 #%patch15 -p1
760 #%ifarch amd64
761 #%patch16 -p1
762 #%endif
763 #%patch17 -p1
764 #%patch18 -p1
765
766
767 %build
768 cp /usr/share/automake/config.sub .
769 %{__aclocal} -I .
770 %{__autoconf}
771 #cd contrib
772 #%{__aclocal} -I ..
773 #%{__autoconf}
774 #cd ../demos
775 #%{__aclocal} -I ..
776 #%{__autoconf}
777 #cd ../samples
778 #%{__aclocal} -I ..
779 #%{__autoconf}
780 #cd ../utils
781 #%{__aclocal} -I ..
782 #%{__autoconf}
783 #cd ..
784
785 CPPFLAGS="-I`pwd`/include -I/usr/X11R6/include"; export CPPFLAGS
786 # avoid adding -s to LDFLAGS
787 LDFLAGS=" "; export LDFLAGS
788 common_args="%{?with_debug:--enable-debug}%{!?with_debug:--disable-debug} \
789         --disable-monolithic \
790         --enable-plugins \
791         --with-zlib=sys \
792         --with-regex=sys \
793         --disable-compat20 \
794         --enable-compat22 \
795         --enable-permissive \
796         --enable-shared \
797         --enable-soname \
798         --enable-std_iostreams \
799         --enable-timedate \
800         --enable-wave"
801
802 gui_args="--with-libjpeg=sys \
803         --with-libpng=sys \
804         --with-libtiff=sys \
805         %{?with_gl:--with-opengl} \
806         --with-x \
807         --enable-calendar \
808         --enable-commondlg \
809         --enable-controls \
810         --enable-fraction \
811         --enable-iff \
812         --enable-tabdialog"
813
814 %if %{with gtk2}
815 gui='--with-gtk --enable-gtk2'
816 for unicode in %{?with_nounicode:'--disable-unicode %{?with_odbc:--with-odbc}'} \
817         %{?with_unicode:'--enable-unicode'} ; do
818         for univ in %{?with_univ:'--enable-universal'} %{?with_nouniv:'--disable-universal'}; do
819                 objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
820                 mkdir $objdir
821                 cd $objdir
822                 ../%configure \
823                         ${common_args} \
824                         ${gui_args} \
825                         ${gui} \
826                         ${univ} \
827                         ${unicode}
828                 %{__make}
829                 %{__make} -C contrib/src
830                 cd ..
831         done
832 done
833 %endif
834
835 %if %{with x11} && %{with univ}
836 univ='--enable-universal'
837 gui='--with-x11'
838 for unicode in %{?with_nounicode:'--disable-unicode %{?with_odbc:--with-odbc}'} \
839         %{?with_unicode:'--enable-unicode'} ; do
840         objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
841         mkdir $objdir
842         cd $objdir
843         ../%configure \
844                 ${common_args} \
845                 ${gui_args} \
846                 ${gui} \
847                 ${univ} \
848                 ${unicode}
849         %{__make}
850         %{__make} -C contrib/src
851         if echo $objdir| grep -q disable-unicode ; then
852                 %{__make} -C utils
853                 %{__make} -C utils/emulator
854                 %{__make} -C contrib/utils
855         fi
856         cd ..
857 done
858 %endif
859
860 %if %{with gtk} && %{with nounicode}
861 unicode='--disable-unicode %{?with_odbc:--with-odbc}'
862 gui="--with-gtk"
863 for univ in %{?with_univ:'--enable-universal'} %{?with_nouniv:'--disable-universal'}; do
864         # think about wine and nanox
865         objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
866         mkdir $objdir
867         cd $objdir
868         ../%configure \
869                 ${common_args} \
870                 ${gui_args} \
871                 ${gui} \
872                 ${univ} \
873                 ${unicode}
874         %{__make}
875         %{__make} -C contrib/src
876         cd ..
877 done
878 %endif
879
880 %if %{with motif} && %{with nounicode} && %{with nouniv}
881 unicode='--disable-unicode %{?with_odbc:--with-odbc}'
882 gui='--with-motif'
883 univ='--disable-universal'
884 objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
885 mkdir $objdir
886 cd $objdir
887 ../%configure \
888         ${common_args} \
889         ${gui_args} \
890         ${gui} \
891         ${univ} \
892         ${unicode}
893 %{__make}
894 %{__make} -C contrib/src
895 cd ..
896 %endif
897
898 cd locale
899 %{__make} allmo
900 cd ..
901
902 %install
903 rm -rf $RPM_BUILD_ROOT
904 install -d $RPM_BUILD_ROOT%{_bindir}
905
906 %if %{with gtk2}
907 gui='--with-gtk --enable-gtk2'
908 for unicode in %{?with_nounicode:'--disable-unicode %{?with_odbc:--with-odbc}'} \
909         %{?with_unicode:'--enable-unicode'} ; do
910         for univ in %{?with_univ:'--enable-universal'} %{?with_nouniv:'--disable-universal'}; do
911                 objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
912                 cd $objdir
913                 %{__make} install \
914                         prefix=$RPM_BUILD_ROOT%{_prefix} \
915                         exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
916                         bindir=$RPM_BUILD_ROOT%{_bindir} \
917                         datadir=$RPM_BUILD_ROOT%{_datadir} \
918                         libdir=$RPM_BUILD_ROOT%{_libdir} \
919                         mandir=$RPM_BUILD_ROOT%{_mandir} \
920                         includedir=$RPM_BUILD_ROOT%{_includedir}
921
922                 %{__make} -C contrib/src install \
923                         prefix=$RPM_BUILD_ROOT%{_prefix} \
924                         exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
925                         bindir=$RPM_BUILD_ROOT%{_bindir} \
926                         datadir=$RPM_BUILD_ROOT%{_datadir} \
927                         libdir=$RPM_BUILD_ROOT%{_libdir} \
928                         mandir=$RPM_BUILD_ROOT%{_mandir} \
929                         includedir=$RPM_BUILD_ROOT%{_includedir}
930
931                 cd ..
932         done
933 done
934 %endif
935
936 %if %{with x11} && %{with univ}
937 univ='--enable-universal'
938 gui='--with-x11'
939 for unicode in %{?with_nounicode:'--disable-unicode %{?with_odbc:--with-odbc}'} \
940         %{?with_unicode:'--enable-unicode'} ; do
941         objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
942         cd $objdir
943         %{__make} install \
944                 prefix=$RPM_BUILD_ROOT%{_prefix} \
945                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
946                 bindir=$RPM_BUILD_ROOT%{_bindir} \
947                 datadir=$RPM_BUILD_ROOT%{_datadir} \
948                 libdir=$RPM_BUILD_ROOT%{_libdir} \
949                 mandir=$RPM_BUILD_ROOT%{_mandir} \
950                 includedir=$RPM_BUILD_ROOT%{_includedir}
951         if echo $objdir| grep -q disable-unicode ; then
952                 install utils/dialoged/src/DialogEd $RPM_BUILD_ROOT%{_bindir}
953                 # TODO: install default config files and default backgrouds
954                 install utils/emulator/src/emulator $RPM_BUILD_ROOT%{_bindir}
955                 install utils/tex2rtf/src/tex2rtf $RPM_BUILD_ROOT%{_bindir}
956                 install utils/hhp2cached/hhp2cached $RPM_BUILD_ROOT%{_bindir}
957                 install utils/makegen/makegen $RPM_BUILD_ROOT%{_bindir}
958                 install -d $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
959                 install -m644 utils/makegen/templates/* \
960                         $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
961                 install contrib/utils/wxrc/wxrc $RPM_BUILD_ROOT%{_bindir}
962                 install contrib/utils/wxrcedit/wxrcedit $RPM_BUILD_ROOT%{_bindir}
963                 install -d $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit
964                 install contrib/utils/wxrcedit/df/* \
965                         $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit/
966         fi
967
968         %{__make} -C contrib/src install \
969                 prefix=$RPM_BUILD_ROOT%{_prefix} \
970                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
971                 bindir=$RPM_BUILD_ROOT%{_bindir} \
972                 datadir=$RPM_BUILD_ROOT%{_datadir} \
973                 libdir=$RPM_BUILD_ROOT%{_libdir} \
974                 mandir=$RPM_BUILD_ROOT%{_mandir} \
975                 includedir=$RPM_BUILD_ROOT%{_includedir}
976
977         cd ..
978 done
979 %endif
980
981 %if %{with gtk} && %{with nounicode}
982 unicode='--disable-unicode %{?with_odbc:--with-odbc}'
983 gui="--with-gtk"
984 for univ in %{?with_univ:'--enable-universal'} %{?with_nouniv:'--disable-universal'}; do
985         # think about wine and nanox
986         objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
987         cd $objdir
988         %{__make} install \
989                 prefix=$RPM_BUILD_ROOT%{_prefix} \
990                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
991                 bindir=$RPM_BUILD_ROOT%{_bindir} \
992                 datadir=$RPM_BUILD_ROOT%{_datadir} \
993                 libdir=$RPM_BUILD_ROOT%{_libdir} \
994                 mandir=$RPM_BUILD_ROOT%{_mandir} \
995                 includedir=$RPM_BUILD_ROOT%{_includedir}
996
997         %{__make} -C contrib/src install \
998                 prefix=$RPM_BUILD_ROOT%{_prefix} \
999                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
1000                 bindir=$RPM_BUILD_ROOT%{_bindir} \
1001                 datadir=$RPM_BUILD_ROOT%{_datadir} \
1002                 libdir=$RPM_BUILD_ROOT%{_libdir} \
1003                 mandir=$RPM_BUILD_ROOT%{_mandir} \
1004                 includedir=$RPM_BUILD_ROOT%{_includedir}
1005
1006         cd ..
1007 done
1008 %endif
1009
1010 %if %{with motif} && %{with nounicode} && %{with nouniv}
1011 unicode='--disable-unicode %{?with_odbc:--with-odbc}'
1012 gui='--with-motif'
1013 univ='--disable-universal'
1014 objdir=`echo obj${gui}${unicode}${univ}|sed 's/ /_/g'`
1015 cd $objdir
1016 %{__make} install \
1017         prefix=$RPM_BUILD_ROOT%{_prefix} \
1018         exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
1019         bindir=$RPM_BUILD_ROOT%{_bindir} \
1020         datadir=$RPM_BUILD_ROOT%{_datadir} \
1021         libdir=$RPM_BUILD_ROOT%{_libdir} \
1022         mandir=$RPM_BUILD_ROOT%{_mandir} \
1023         includedir=$RPM_BUILD_ROOT%{_includedir}
1024
1025 %{__make} -C contrib/src install \
1026         prefix=$RPM_BUILD_ROOT%{_prefix} \
1027         exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
1028         bindir=$RPM_BUILD_ROOT%{_bindir} \
1029         datadir=$RPM_BUILD_ROOT%{_datadir} \
1030         libdir=$RPM_BUILD_ROOT%{_libdir} \
1031         mandir=$RPM_BUILD_ROOT%{_mandir} \
1032         includedir=$RPM_BUILD_ROOT%{_includedir}
1033 cd ..
1034 %endif
1035
1036 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1037 cp -a demos samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1038 for file in todo.txt readme.txt changes.txt ; do
1039         cp -f docs/gtk/$file docs/wxGTK-$file
1040 done
1041 for file in issues.txt readme.txt todo.txt ; do
1042         cp -f docs/motif/$file docs/wxMotif-$file
1043 done
1044 cp -f docs/x11/readme.txt docs/wxX11-readme.txt
1045
1046 %find_lang wxstd
1047
1048 %clean
1049 rm -rf $RPM_BUILD_ROOT
1050
1051 %post   -n wxBase -p /sbin/ldconfig
1052 %postun -n wxBase -p /sbin/ldconfig
1053
1054 %post   -n wxBase-unicode -p /sbin/ldconfig
1055 %postun -n wxBase-unicode -p /sbin/ldconfig
1056
1057 %post   -n wxGTK -p /sbin/ldconfig
1058 %postun -n wxGTK -p /sbin/ldconfig
1059
1060 %post   -n wxGTK-gl -p /sbin/ldconfig
1061 %postun -n wxGTK-gl -p /sbin/ldconfig
1062
1063 %post   -n wxGTK-univ -p /sbin/ldconfig
1064 %postun -n wxGTK-univ -p /sbin/ldconfig
1065
1066 %post   -n wxGTK-univ-gl -p /sbin/ldconfig
1067 %postun -n wxGTK-univ-gl -p /sbin/ldconfig
1068
1069 %post   -n wxGTK2 -p /sbin/ldconfig
1070 %postun -n wxGTK2 -p /sbin/ldconfig
1071
1072 %post   -n wxGTK2-gl -p /sbin/ldconfig
1073 %postun -n wxGTK2-gl -p /sbin/ldconfig
1074
1075 %post   -n wxGTK2-univ -p /sbin/ldconfig
1076 %postun -n wxGTK2-univ -p /sbin/ldconfig
1077
1078 %post   -n wxGTK2-univ-gl -p /sbin/ldconfig
1079 %postun -n wxGTK2-univ-gl -p /sbin/ldconfig
1080
1081 %post   -n wxGTK2-unicode -p /sbin/ldconfig
1082 %postun -n wxGTK2-unicode -p /sbin/ldconfig
1083
1084 %post   -n wxGTK2-unicode-gl -p /sbin/ldconfig
1085 %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig
1086
1087 %post   -n wxGTK2-univ-unicode -p /sbin/ldconfig
1088 %postun -n wxGTK2-univ-unicode -p /sbin/ldconfig
1089
1090 %post   -n wxGTK2-univ-unicode-gl -p /sbin/ldconfig
1091 %postun -n wxGTK2-univ-unicode-gl -p /sbin/ldconfig
1092
1093 %post   -n wxMotif -p /sbin/ldconfig
1094 %postun -n wxMotif -p /sbin/ldconfig
1095
1096 %post   -n wxMotif-gl -p /sbin/ldconfig
1097 %postun -n wxMotif-gl -p /sbin/ldconfig
1098
1099 %post   -n wxX11-univ -p /sbin/ldconfig
1100 %postun -n wxX11-univ -p /sbin/ldconfig
1101
1102 %post   -n wxX11-univ-unicode -p /sbin/ldconfig
1103 %postun -n wxX11-univ-unicode -p /sbin/ldconfig
1104
1105 %files -f wxstd.lang
1106 %defattr(644,root,root,755)
1107 %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt
1108 %doc docs/wxGTK-{todo,readme,changes}.txt
1109 %doc docs/wxMotif-{issues,readme,todo}.txt
1110 %doc docs/wxX11-readme.txt
1111 %dir %{_datadir}/wx
1112 %dir %{_datadir}/wx/2.4
1113
1114 %if %{with x11} || %{with gtk} || %{with gtk2} || %{with motif}
1115 %files -n wxWidgets-afm
1116 %defattr(644,root,root,755)
1117 %{_datadir}/wx/2.4/afm
1118 %{_datadir}/wx/2.4/gs_afm
1119 %endif
1120
1121 %files devel
1122 %defattr(644,root,root,755)
1123 %doc docs/html
1124 %doc docs/pdf/dialoged.pdf docs/tech docs/univ
1125 %{_includedir}/wx
1126 %dir %{_libdir}/wx
1127 %dir %{_libdir}/wx/include
1128 %{_aclocaldir}/*.m4
1129
1130 %files examples
1131 %defattr(644,root,root,755)
1132 %{_examplesdir}/%{name}-%{version}
1133
1134 %if %{with nounicode}
1135 %files HelpGen
1136 %defattr(644,root,root,755)
1137 %attr(755,root,root) %{_bindir}/HelpGen
1138
1139 %files -n wxBase
1140 %defattr(644,root,root,755)
1141 %attr(755,root,root) %{_libdir}/libwx_base-*.so.*.*
1142
1143 %files -n wxBase-devel
1144 %defattr(644,root,root,755)
1145 %{_libdir}/libwx_base-*.so
1146 %{_libdir}/wx/include/base-*
1147 %attr(755,root,root) %{_bindir}/wxbase-*-config
1148 %endif
1149
1150 %if %{with unicode}
1151 %files -n wxBase-unicode
1152 %defattr(644,root,root,755)
1153 %attr(755,root,root) %{_libdir}/libwx_baseu-*.so.*.*
1154
1155 %files -n wxBase-unicode-devel
1156 %defattr(644,root,root,755)
1157 %{_libdir}/libwx_baseu-*.so
1158 %{_libdir}/wx/include/baseu-*
1159 %attr(755,root,root) %{_bindir}/wxbaseu-*-config
1160 %endif
1161
1162 %if %{with gtk} && %{with nouniv} && %{with nounicode}
1163 %files -n wxGTK
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{_libdir}/libwx_gtk-*.so.*.*
1166 %attr(755,root,root) %{_libdir}/libwx_gtk_*-*.so.*.*
1167 %{?with_gl:%exclude %{_libdir}/libwx_gtk_gl-*.so.*.*}
1168
1169 %files -n wxGTK-devel
1170 %defattr(644,root,root,755)
1171 %{_libdir}/libwx_gtk-*.so
1172 %{_libdir}/libwx_gtk_*-*.so
1173 %{?with_gl:%exclude %{_libdir}/libwx_gtk_gl-*.so}
1174 %{_libdir}/wx/include/gtk-*
1175 %attr(755,root,root) %{_bindir}/wxgtk-*-config
1176 %endif
1177
1178 %if %{with gtk} && %{with nouniv} && %{with nounicode} && %{with gl}
1179 %files -n wxGTK-gl
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{_libdir}/libwx_gtk_gl-*.so.*.*
1182
1183 %files -n wxGTK-gl-devel
1184 %defattr(644,root,root,755)
1185 %{_libdir}/libwx_gtk_gl-*.so
1186 %endif
1187
1188 %if %{with gtk} && %{with univ} && %{with nounicode}
1189 %files -n wxGTK-univ
1190 %defattr(644,root,root,755)
1191 %attr(755,root,root) %{_libdir}/libwx_gtkuniv-*.so.*.*
1192 %attr(755,root,root) %{_libdir}/libwx_gtkuniv_*-*.so.*.*
1193 %{?with_gl:%exclude %{_libdir}/libwx_gtkuniv_gl-*.so.*.*}
1194
1195 %files -n wxGTK-univ-devel
1196 %defattr(644,root,root,755)
1197 %{_libdir}/libwx_gtkuniv-*.so
1198 %{_libdir}/libwx_gtkuniv_*-*.so
1199 %{?with_gl:%exclude %{_libdir}/libwx_gtkuniv_gl-*.so}
1200 %{_libdir}/wx/include/gtkuniv-*
1201 %attr(755,root,root) %{_bindir}/wxgtkuniv-*-config
1202 %endif
1203
1204 %if %{with gtk} && %{with univ} && %{with nounicode} && %{with gl}
1205 %files -n wxGTK-univ-gl
1206 %defattr(644,root,root,755)
1207 %attr(755,root,root) %{_libdir}/libwx_gtkuniv_gl-*.so.*.*
1208
1209 %files -n wxGTK-univ-gl-devel
1210 %defattr(644,root,root,755)
1211 %{_libdir}/libwx_gtkuniv_gl-*.so
1212 %endif
1213
1214 %if %{with gtk2} && %{with nouniv} && %{with nounicode}
1215 %files -n wxGTK2
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) %{_libdir}/libwx_gtk2-*.so.*.*
1218 %attr(755,root,root) %{_libdir}/libwx_gtk2_*.so.*.*
1219 %{?with_gl:%exclude %{_libdir}/libwx_gtk2_gl-*.so.*.*}
1220
1221 %files -n wxGTK2-devel
1222 %defattr(644,root,root,755)
1223 %{_libdir}/libwx_gtk2-*.so
1224 %{_libdir}/libwx_gtk2_*-*.so
1225 %{?with_gl:%exclude %{_libdir}/libwx_gtk2_gl-*.so}
1226 %{_libdir}/wx/include/gtk2-*
1227 %attr(755,root,root) %{_bindir}/wxgtk2-*-config
1228 %endif
1229
1230 %if %{with gtk2} && %{with nouniv} && %{with nounicode} && %{with gl}
1231 %files -n wxGTK2-gl
1232 %defattr(644,root,root,755)
1233 %attr(755,root,root) %{_libdir}/libwx_gtk2_gl-*.so.*.*
1234
1235 %files -n wxGTK2-gl-devel
1236 %defattr(644,root,root,755)
1237 %{_libdir}/libwx_gtk2_gl-*.so
1238 %endif
1239
1240 %if %{with gtk2} && %{with nouniv} && %{with unicode}
1241 %files -n wxGTK2-unicode
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{_libdir}/libwx_gtk2u-*.so.*.*
1244 %attr(755,root,root) %{_libdir}/libwx_gtk2u_*-*.so.*.*
1245 %{?with_gl:%exclude %{_libdir}/libwx_gtk2u_gl-*.so.*.*}
1246
1247 %files -n wxGTK2-unicode-devel
1248 %defattr(644,root,root,755)
1249 %{_libdir}/libwx_gtk2u-*.so
1250 %{_libdir}/libwx_gtk2u_*-*.so
1251 %{?with_gl:%exclude %{_libdir}/libwx_gtk2u_gl-*.so}
1252 %{_libdir}/wx/include/gtk2u-*
1253 %attr(755,root,root) %{_bindir}/wxgtk2u-*-config
1254 %endif
1255
1256 %if %{with gtk2} && %{with nouniv} && %{with unicode} && %{with gl}
1257 %files -n wxGTK2-unicode-gl
1258 %defattr(644,root,root,755)
1259 %attr(755,root,root) %{_libdir}/libwx_gtk2u_gl-*.so.*.*
1260
1261 %files -n wxGTK2-unicode-gl-devel
1262 %defattr(644,root,root,755)
1263 %{_libdir}/libwx_gtk2u_gl-*.so
1264 %endif
1265
1266 %if %{with gtk2} && %{with univ} && %{with nounicode}
1267 %files -n wxGTK2-univ
1268 %defattr(644,root,root,755)
1269 %attr(755,root,root) %{_libdir}/libwx_gtk2univ-*.so.*.*
1270 %attr(755,root,root) %{_libdir}/libwx_gtk2univ_*-*.so.*.*
1271 %{?with_gl:%exclude %{_libdir}/libwx_gtk2univ_gl-*.so.*.*}
1272
1273 %files -n wxGTK2-univ-devel
1274 %defattr(644,root,root,755)
1275 %{_libdir}/libwx_gtk2univ-*.so
1276 %{_libdir}/libwx_gtk2univ_*-*.so
1277 %{?with_gl:%exclude %{_libdir}/libwx_gtk2univ_gl-*.so}
1278 %{_libdir}/wx/include/gtk2univ-*
1279 %attr(755,root,root) %{_bindir}/wxgtk2univ-*-config
1280 %endif
1281
1282 %if %{with gtk2} && %{with univ} && %{with nounicode} && %{with gl}
1283 %files -n wxGTK2-univ-gl
1284 %defattr(644,root,root,755)
1285 %attr(755,root,root) %{_libdir}/libwx_gtk2univ_gl-*.so.*.*
1286
1287 %files -n wxGTK2-univ-gl-devel
1288 %defattr(644,root,root,755)
1289 %{_libdir}/libwx_gtk2univ_gl-*.so
1290 %endif
1291
1292 %if %{with gtk2} && %{with univ} && %{with unicode}
1293 %files -n wxGTK2-univ-unicode
1294 %defattr(644,root,root,755)
1295 %attr(755,root,root) %{_libdir}/libwx_gtk2univu-*.so.*.*
1296 %attr(755,root,root) %{_libdir}/libwx_gtk2univu_*-*.so.*.*
1297 %{?with_gl:%exclude %{_libdir}/libwx_gtk2univu_gl-*.so.*.*}
1298
1299 %files -n wxGTK2-univ-unicode-devel
1300 %defattr(644,root,root,755)
1301 %{_libdir}/libwx_gtk2univu-*.so
1302 %{_libdir}/libwx_gtk2univu_*-*.so
1303 %{?with_gl:%exclude %{_libdir}/libwx_gtk2univu_gl-*.so}
1304 %{_libdir}/wx/include/gtk2univu-*
1305 %attr(755,root,root) %{_bindir}/wxgtk2univu-*-config
1306 %endif
1307
1308 %if %{with gtk2} && %{with univ} && %{with unicode} && %{with gl}
1309 %files -n wxGTK2-univ-unicode-gl
1310 %defattr(644,root,root,755)
1311 %attr(755,root,root) %{_libdir}/libwx_gtk2univu_gl-*.so.*.*
1312
1313 %files -n wxGTK2-univ-unicode-gl-devel
1314 %defattr(644,root,root,755)
1315 %{_libdir}/libwx_gtk2univu_gl-*.so
1316 %endif
1317
1318 %if %{with motif} && %{with nouniv} && %{with nounicode}
1319 %files -n wxMotif
1320 %defattr(644,root,root,755)
1321 %attr(755,root,root) %{_libdir}/libwx_motif-*.so.*.*
1322 %attr(755,root,root) %{_libdir}/libwx_motif_*-*.so.*.*
1323 %{?with_gl:%exclude %{_libdir}/libwx_motif_gl-*.so.*.*}
1324
1325 %files -n wxMotif-devel
1326 %defattr(644,root,root,755)
1327 %{_libdir}/libwx_motif-*.so
1328 %{_libdir}/libwx_motif_*-*.so
1329 %{?with_gl:%exclude %{_libdir}/libwx_motif_gl-*.so}
1330 %{_libdir}/wx/include/motif-*
1331 %attr(755,root,root) %{_bindir}/wxmotif-*-config
1332 %endif
1333
1334 %if %{with motif} && %{with nouniv} && %{with nounicode} && %{with gl}
1335 %files -n wxMotif-gl
1336 %defattr(644,root,root,755)
1337 %attr(755,root,root) %{_libdir}/libwx_motif_gl-*.so.*.*
1338
1339 %files -n wxMotif-gl-devel
1340 %defattr(644,root,root,755)
1341 %{_libdir}/libwx_motif_gl-*.so
1342 %endif
1343
1344 %if %{with x11} && %{with univ} && %{with nounicode}
1345 %files utils
1346 %defattr(644,root,root,755)
1347 %attr(755,root,root) %{_bindir}/*
1348 %exclude %{_bindir}/HelpGen
1349 %exclude %{_bindir}/wx*-config
1350 %{_datadir}/wx/makegen
1351 %{_datadir}/wx/wxrcedit
1352
1353 %files -n wxX11-univ
1354 %defattr(644,root,root,755)
1355 %attr(755,root,root) %{_libdir}/libwx_x11univ-*.so.*.*
1356 %attr(755,root,root) %{_libdir}/libwx_x11univ_*-*.so.*.*
1357 %{?with_gl:%exclude %{_libdir}/libwx_x11univ_gl-*.so.*.*}
1358
1359 %files -n wxX11-univ-devel
1360 %defattr(644,root,root,755)
1361 %{_libdir}/libwx_x11univ-*.so
1362 %{_libdir}/libwx_x11univ_*-*.so
1363 %{?with_gl:%exclude %{_libdir}/libwx_x11univ_gl-*.so}
1364 %{_libdir}/wx/include/x11univ-*
1365 %attr(755,root,root) %{_bindir}/wxx11univ-*-config
1366 %endif
1367
1368 %if %{with x11} && %{with univ} && %{with nounicode} && %{with gl}
1369 %files -n wxX11-univ-gl
1370 %defattr(644,root,root,755)
1371 %attr(755,root,root) %{_libdir}/libwx_x11univ_gl-*.so.*.*
1372
1373 %files -n wxX11-univ-gl-devel
1374 %defattr(644,root,root,755)
1375 %{_libdir}/libwx_x11univ_gl-*.so
1376 %endif
1377
1378 %if %{with x11} && %{with univ} && %{with unicode}
1379 %files -n wxX11-univ-unicode
1380 %defattr(644,root,root,755)
1381 %attr(755,root,root) %{_libdir}/libwx_x11univu-*.so.*.*
1382 %attr(755,root,root) %{_libdir}/libwx_x11univu_*-*.so.*.*
1383 %{?with_gl:%exclude %{_libdir}/libwx_x11univu_gl-*.so.*.*}
1384
1385 %files -n wxX11-univ-unicode-devel
1386 %defattr(644,root,root,755)
1387 %{_libdir}/libwx_x11univu-*.so
1388 %{_libdir}/libwx_x11univu_*-*.so
1389 %{?with_gl:%exclude %{_libdir}/libwx_x11univu_gl-*.so}
1390 %{_libdir}/wx/include/x11univu-*
1391 %attr(755,root,root) %{_bindir}/wxx11univu-*-config
1392 %endif
1393
1394 %if %{with x11} && %{with univ} && %{with unicode} && %{with gl}
1395 %files -n wxX11-univ-unicode-gl
1396 %defattr(644,root,root,755)
1397 %attr(755,root,root) %{_libdir}/libwx_x11univu_gl-*.so.*.*
1398
1399 %files -n wxX11-univ-unicode-gl-devel
1400 %defattr(644,root,root,755)
1401 %{_libdir}/libwx_x11univu_gl-*.so
1402 %endif
This page took 0.154733 seconds and 3 git commands to generate.