]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without ansi # only unicode packages | |
4 | %bcond_without odbc # without ODBC support | |
5 | %bcond_without x11 # don't build wxX11 packages | |
6 | %bcond_with gnomeprint # GNOME print support | |
7 | %bcond_with debug # build with \--enable-debug | |
8 | # (binary incompatible with non-debug) | |
9 | # | |
10 | Summary: wxWidgets library | |
11 | Summary(pl.UTF-8): Biblioteka wxWidgets | |
12 | Name: wxWidgets | |
13 | Version: 2.8.11 | |
14 | Release: 3 | |
15 | License: wxWindows Library Licence 3.1 (LGPL v2+ with exception) | |
16 | Group: X11/Libraries | |
17 | Source0: http://ftp.wxwidgets.org/pub/%{version}/%{name}-%{version}.tar.bz2 | |
18 | # Source0-md5: 303a2d5aeb6c79460c8088193d799147 | |
19 | Patch0: %{name}-samples.patch | |
20 | Patch1: %{name}-ogl.patch | |
21 | Patch2: %{name}-ac.patch | |
22 | Patch3: %{name}-x11unicode.patch | |
23 | Patch4: %{name}-gcc4.patch | |
24 | URL: http://www.wxWidgets.org/ | |
25 | BuildRequires: OpenGL-GLU-devel | |
26 | #BuildRequires: SDL-devel | |
27 | BuildRequires: autoconf >= 2.59-9 | |
28 | BuildRequires: automake | |
29 | #BuildRequires: bakefile >= 0.2.1 | |
30 | BuildRequires: cppunit-devel | |
31 | BuildRequires: expat-devel | |
32 | BuildRequires: gettext-devel | |
33 | BuildRequires: gtk+2-devel >= 2.0.0 | |
34 | %{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.8.0} | |
35 | BuildRequires: libjpeg-devel | |
36 | BuildRequires: libmspack-devel | |
37 | BuildRequires: libpng-devel | |
38 | BuildRequires: libstdc++-devel | |
39 | BuildRequires: libtiff-devel | |
40 | BuildRequires: libtool | |
41 | BuildRequires: pkgconfig | |
42 | %{?with_x11:BuildRequires: xorg-lib-libXext-devel} | |
43 | %{?with_x11:BuildRequires: xorg-lib-libXt-devel} | |
44 | # these are not supported by wxWidgets | |
45 | Obsoletes: LDAPExplorerTool <= 0.6-1 | |
46 | Obsoletes: abridge <= 0.4.0-1 | |
47 | # and these are replaced | |
48 | Obsoletes: wxGTK | |
49 | Obsoletes: wxGTK-devel | |
50 | Obsoletes: wxGTK-gl | |
51 | Obsoletes: wxGTK-gl-devel | |
52 | Obsoletes: wxGTK-univ | |
53 | Obsoletes: wxGTK-univ-devel | |
54 | Obsoletes: wxGTK-univ-gl | |
55 | Obsoletes: wxGTK-univ-gl-devel | |
56 | Obsoletes: wxGTK2-univ | |
57 | Obsoletes: wxGTK2-univ-devel | |
58 | Obsoletes: wxGTK2-univ-gl | |
59 | Obsoletes: wxGTK2-univ-gl-devel | |
60 | Obsoletes: wxGTK2-univ-unicode | |
61 | Obsoletes: wxGTK2-univ-unicode-devel | |
62 | Obsoletes: wxGTK2-univ-unicode-gl | |
63 | Obsoletes: wxGTK2-univ-unicode-gl-devel | |
64 | Obsoletes: wxMotif | |
65 | Obsoletes: wxMotif-devel | |
66 | Obsoletes: wxMotif-gl | |
67 | Obsoletes: wxMotif-gl-devel | |
68 | Obsoletes: wxWidgets-afm | |
69 | Obsoletes: wxWindows | |
70 | Obsoletes: wxWindows-afm | |
71 | Obsoletes: wxwin-afm | |
72 | Obsoletes: wxwin-common | |
73 | Conflicts: wxGTK2 < 2.6.0 | |
74 | Conflicts: wxGTK2-unicode < 2.6.0 | |
75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
76 | ||
77 | %define _sysconfdir %{_datadir} | |
78 | ||
79 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
80 | ||
81 | %description | |
82 | wxWidgets is a free C++ library for cross-platform GUI development. | |
83 | With wxWidgets, you can create applications for different GUIs (GTK+, | |
84 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | wxWidgets to wolnodostępna biblioteka napisana w C++ umożliwiająca | |
88 | rozwijanie wieloplatformowych programów GUI. Przy użyciu wxWidgets | |
89 | można tworzyć aplikacje dla różnych GUI (GTK+, Motif/LessTif, MS | |
90 | Windows, Mac) z tego samego kodu źródłowego. | |
91 | ||
92 | %package devel | |
93 | Summary: wxWidgets header files and development documentation | |
94 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do wxWidgets | |
95 | Group: X11/Development/Libraries | |
96 | Requires: libstdc++-devel | |
97 | %{?with_odbc:Requires: unixODBC-devel} | |
98 | Obsoletes: wxWindows-devel | |
99 | ||
100 | %description devel | |
101 | Header files and development documentation for the wxWidgets | |
102 | libraries. | |
103 | ||
104 | %description devel -l pl.UTF-8 | |
105 | Pliki nagłówkowe i dokumentacja do bibliotek wxWidgets. | |
106 | ||
107 | %package -n bakefile-wxWidgets | |
108 | Summary: Files for Bakefile to generate wxWidgets project files | |
109 | Summary(pl.UTF-8): Pliki dla Bakefile generujące pliki projektów wxWidgets | |
110 | Group: Development/Tools | |
111 | Requires: bakefile | |
112 | ||
113 | %description -n bakefile-wxWidgets | |
114 | Additional files for Bakefile to generate wxWidgets project files. | |
115 | ||
116 | %description -n bakefile-wxWidgets -l pl.UTF-8 | |
117 | Dodatkowe pliki dla programu Bakefile umożliwiające wygenerowanie | |
118 | projektów opartych na bibliotece wxWidgets. | |
119 | ||
120 | %package examples | |
121 | Summary: wxWidgets example programs | |
122 | Summary(pl.UTF-8): Przykładowe programy wxWidgets | |
123 | Group: X11/Development/Libraries | |
124 | Requires: %{name}-devel = %{version}-%{release} | |
125 | Obsoletes: wxWindows-examples | |
126 | ||
127 | %description examples | |
128 | wxWidgets example programs. | |
129 | ||
130 | %description examples -l pl.UTF-8 | |
131 | Przykładowe programy wxWidgets. | |
132 | ||
133 | %package HelpGen | |
134 | Summary: Help file generator for wxWidgets programs | |
135 | Summary(pl.UTF-8): Generator plików pomocy dla programów wxWidgets | |
136 | Group: Development/Tools | |
137 | Requires: wxBase = %{version}-%{release} | |
138 | Obsoletes: wxWindows-HelpGen | |
139 | ||
140 | %description HelpGen | |
141 | Help file generator for wxWidgets programs. | |
142 | ||
143 | %description HelpGen -l pl.UTF-8 | |
144 | Generator plików pomocy dla programów wxWidgets. | |
145 | ||
146 | %package -n wxBase | |
147 | Summary: wxBase library - non-GUI support classes of wxWidgets toolkit | |
148 | Summary(pl.UTF-8): wxBase - biblioteka klas wxWidgets nie związanych z GUI | |
149 | Group: X11/Libraries | |
150 | Requires: %{name} = %{version}-%{release} | |
151 | ||
152 | %description -n wxBase | |
153 | wxBase is a collection of C++ classes providing basic data structures | |
154 | (strings, lists, arrays), powerful wxDateTime class for date | |
155 | manipulations, portable wrappers around many OS-specific functions | |
156 | allowing to build the same program under all supported folders, | |
157 | wxThread class for writing multithreaded programs using either Win32 | |
158 | or POSIX threads and much more. wxBase currently supports the | |
159 | following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, | |
160 | HP-UX, ...) and BeOS. | |
161 | ||
162 | %description -n wxBase -l pl.UTF-8 | |
163 | wxBase jest zestawem klas C++ obsługujących podstawowe struktury | |
164 | danych (stringi, listy, tablice), klasę wxDateTime do operacji na | |
165 | datach, przenośne wrappery do wielu funkcji zależnych od systemu | |
166 | operacyjnego pozwalające na zbudowanie tego samego programu w różnych | |
167 | środowiskach, klasę wxThread do pisania programów wielowątkowych | |
168 | używających wątków Win32 albo POSIX i inne. wxBase obsługuje | |
169 | platformy: Win32, Unix i BeOS. | |
170 | ||
171 | %package -n wxBase-devel | |
172 | Summary: wxBase headers needed for developping with wxBase | |
173 | Summary(pl.UTF-8): Pliki nagłówkowe do wxBase | |
174 | Group: X11/Development/Libraries | |
175 | Requires: %{name}-devel = %{version}-%{release} | |
176 | Requires: wxBase = %{version}-%{release} | |
177 | ||
178 | %description -n wxBase-devel | |
179 | Header files for wxBase. You need them to develop programs using | |
180 | wxBase. | |
181 | ||
182 | %description -n wxBase-devel -l pl.UTF-8 | |
183 | Pliki nagłówkowe do biblioteki wxBase. | |
184 | ||
185 | %package -n wxBase-unicode | |
186 | Summary: wxBase library - non-GUI support classes of wxWidgets toolkit with UNICODE support | |
187 | Summary(pl.UTF-8): wxBase - biblioteka klas wxWidgets nie związanych z GUI ze wsparciem dla UNICODE | |
188 | Group: X11/Libraries | |
189 | Requires: %{name} = %{version}-%{release} | |
190 | ||
191 | %description -n wxBase-unicode | |
192 | wxBase is a collection of C++ classes providing basic data structures | |
193 | (strings, lists, arrays), powerful wxDateTime class for date | |
194 | manipulations, portable wrappers around many OS-specific functions | |
195 | allowing to build the same program under all supported folders, | |
196 | wxThread class for writing multithreaded programs using either Win32 | |
197 | or POSIX threads and much more. wxBase currently supports the | |
198 | following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, | |
199 | HP-UX, ...) and BeOS. This version is build with UNICODE support. | |
200 | ||
201 | %description -n wxBase-unicode -l pl.UTF-8 | |
202 | wxBase jest zestawem klas C++ obsługujących podstawowe struktury | |
203 | danych (stringi, listy, tablice), klasę wxDateTime do operacji na | |
204 | datach, przenośne wrappery do wielu funkcji zależnych od systemu | |
205 | operacyjnego pozwalające na zbudowanie tego samego programu w różnych | |
206 | środowiskach, klasę wxThread do pisania programów wielowątkowych | |
207 | używających wątków Win32 albo POSIX i inne. wxBase obsługuje | |
208 | platformy: Win32, Unix i BeOS. Ta wersja jest zbudowana z obsługą | |
209 | UNICODE. | |
210 | ||
211 | %package -n wxBase-unicode-devel | |
212 | Summary: wxBase headers needed for developping with UNICODE-enabled wxBase | |
213 | Summary(pl.UTF-8): Pliki nagłówkowe do wxBase z obsługą UNICODE | |
214 | Group: X11/Development/Libraries | |
215 | Requires: %{name}-devel = %{version}-%{release} | |
216 | Requires: wxBase-unicode = %{version}-%{release} | |
217 | ||
218 | %description -n wxBase-unicode-devel | |
219 | Header files for wxBase. You need them to develop programs using | |
220 | UNICODE-enabled wxBase. | |
221 | ||
222 | %description -n wxBase-unicode-devel -l pl.UTF-8 | |
223 | Pliki nagłówkowe do biblioteki wxBase z obsługą UNICODE. | |
224 | ||
225 | %package -n wxGTK2 | |
226 | Summary: wxGTK2 library | |
227 | Summary(pl.UTF-8): Biblioteka wxGTK2 | |
228 | Group: X11/Libraries | |
229 | Requires: %{name} = %{version}-%{release} | |
230 | Obsoletes: wxGTK2-univ | |
231 | ||
232 | %description -n wxGTK2 | |
233 | wxWidgets library using GTK2 widgets. | |
234 | ||
235 | %description -n wxGTK2 -l pl.UTF-8 | |
236 | Biblioteka wxWidgets używająca widgetów GTK2. | |
237 | ||
238 | %package -n wxGTK2-devel | |
239 | Summary: Header files for wxGTK2 library | |
240 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki wxGTK2 | |
241 | Group: X11/Development/Libraries | |
242 | Requires: wxBase-devel = %{version}-%{release} | |
243 | Requires: wxGTK2 = %{version}-%{release} | |
244 | Obsoletes: wxGTK2-univ-devel | |
245 | ||
246 | %description -n wxGTK2-devel | |
247 | Header files for wxWidgets library using GTK2 widgets. | |
248 | ||
249 | %description -n wxGTK2-devel -l pl.UTF-8 | |
250 | Pliki nagłówkowe dla biblioteki wxWidgets używającej widgetów GTK2. | |
251 | ||
252 | %package -n wxGTK2-gl | |
253 | Summary: GL canvas library for wxGTK2 | |
254 | Summary(pl.UTF-8): Biblioteka GL dla wxGTK2 | |
255 | Group: X11/Libraries | |
256 | Requires: wxGTK2 = %{version}-%{release} | |
257 | Obsoletes: wxGTK2-univ-gl | |
258 | ||
259 | %description -n wxGTK2-gl | |
260 | wxGTK2 GL canvas library. | |
261 | ||
262 | %description -n wxGTK2-gl -l pl.UTF-8 | |
263 | Biblioteka GL dla wxGTK2. | |
264 | ||
265 | %package -n wxGTK2-gl-devel | |
266 | Summary: Development files for GL canvas library for wxGTK2 | |
267 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GL dla wxGTK2 | |
268 | Group: X11/Development/Libraries | |
269 | Requires: OpenGL-GLU-devel | |
270 | Requires: wxGTK2-devel = %{version}-%{release} | |
271 | Requires: wxGTK2-gl = %{version}-%{release} | |
272 | Obsoletes: wxGTK2-univ-gl-devel | |
273 | ||
274 | %description -n wxGTK2-gl-devel | |
275 | Development files for wxGTK2 GL canvas library. | |
276 | ||
277 | %description -n wxGTK2-gl-devel -l pl.UTF-8 | |
278 | Pliki programistyczne biblioteki GL dla wxGTK2. | |
279 | ||
280 | %package -n wxGTK2-unicode | |
281 | Summary: wxGTK2 library with UNICODE support | |
282 | Summary(pl.UTF-8): Biblioteka wxGTK2 z obsługą UNICODE | |
283 | Group: X11/Libraries | |
284 | Requires: %{name} = %{version}-%{release} | |
285 | Obsoletes: wxGTK2-univ-unicode | |
286 | ||
287 | %description -n wxGTK2-unicode | |
288 | wxWidgets library using GTK2 widgets with UNICODE support. | |
289 | ||
290 | %description -n wxGTK2-unicode -l pl.UTF-8 | |
291 | Biblioteka wxWidgets używająca widgetów GTK2 z obsługą UNICODE. | |
292 | ||
293 | %package -n wxGTK2-unicode-devel | |
294 | Summary: Header files for wxGTK2 library with UNICODE support | |
295 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki wxGTK2 z obsługą UNICODE | |
296 | Group: X11/Development/Libraries | |
297 | Requires: wxBase-unicode-devel = %{version}-%{release} | |
298 | Requires: wxGTK2-unicode = %{version}-%{release} | |
299 | Obsoletes: wxGTK2-univ-unicode-devel | |
300 | ||
301 | %description -n wxGTK2-unicode-devel | |
302 | Header files for wxWidgets library using GTK2 widgets with UNICODE | |
303 | support. | |
304 | ||
305 | %description -n wxGTK2-unicode-devel -l pl.UTF-8 | |
306 | Pliki nagłówkowe biblioteki wxWidgets używającej widgetów GTK2 z | |
307 | obsługą UNICODE. | |
308 | ||
309 | %package -n wxGTK2-unicode-gl | |
310 | Summary: GL canvas library for wxGTK2 with UNICODE support | |
311 | Summary(pl.UTF-8): Biblioteka GL dla wxGTK2 z obsługą UNICODE | |
312 | Group: X11/Libraries | |
313 | Requires: wxGTK2-unicode = %{version}-%{release} | |
314 | Obsoletes: wxGTK2-univ-unicode-gl | |
315 | ||
316 | %description -n wxGTK2-unicode-gl | |
317 | GL canvas library for wxGTK2 with UNICODE support. | |
318 | ||
319 | %description -n wxGTK2-unicode-gl -l pl.UTF-8 | |
320 | Biblioteka GL dla wxGTK2 z obsługą UNICODE. | |
321 | ||
322 | %package -n wxGTK2-unicode-gl-devel | |
323 | Summary: Development files for GL canvas library for wxGTK2 with UNICODE support | |
324 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GL dla wxGTK2 z obsługą UNICODE | |
325 | Group: X11/Development/Libraries | |
326 | Requires: OpenGL-GLU-devel | |
327 | Requires: wxGTK2-unicode-devel = %{version}-%{release} | |
328 | Requires: wxGTK2-unicode-gl = %{version}-%{release} | |
329 | Obsoletes: wxGTK2-univ-unicode-gl-devel | |
330 | ||
331 | %description -n wxGTK2-unicode-gl-devel | |
332 | Development files for GL canvas library for wxGTK2 with UNICODE | |
333 | support. | |
334 | ||
335 | %description -n wxGTK2-unicode-gl-devel -l pl.UTF-8 | |
336 | Pliki programistyczne biblioteki GL dla wxGTK2 z obsługą UNICODE. | |
337 | ||
338 | %package utils | |
339 | Summary: Misc utils from wxWidgets project | |
340 | Summary(pl.UTF-8): Różne narzędzia z projektu wxWidgets | |
341 | Group: X11/Development/Tools | |
342 | Requires: wxX11 = %{version}-%{release} | |
343 | Obsoletes: wxWindows-utils | |
344 | ||
345 | %description utils | |
346 | Misc utils from wxWidgets project: wxemulator, wxrc, etc. | |
347 | ||
348 | %description utils -l pl.UTF-8 | |
349 | Różne narzędzia z projektu wxWidgets: wxemulator, wxrc itp. | |
350 | ||
351 | %package -n wxX11 | |
352 | Summary: wxUniversal-based wxX11 library | |
353 | Summary(pl.UTF-8): Oparta na wxUniversal biblioteka wxX11 | |
354 | Group: X11/Libraries | |
355 | Requires: %{name} = %{version}-%{release} | |
356 | Obsoletes: wxX11-univ | |
357 | ||
358 | %description -n wxX11 | |
359 | wxUniversal-based wxX11 library. | |
360 | ||
361 | %description -n wxX11 -l pl.UTF-8 | |
362 | Oparta na wxUniversal biblioteka wxX11. | |
363 | ||
364 | %package -n wxX11-devel | |
365 | Summary: Header files for wxUniversal-based wxX11 library | |
366 | Summary(pl.UTF-8): Pliki nagłówkowe opartej na wxUniversal biblioteki wxX11 | |
367 | Group: X11/Libraries | |
368 | Requires: %{name}-devel = %{version}-%{release} | |
369 | Requires: wxX11 = %{version}-%{release} | |
370 | Obsoletes: wxX11-univ-devel | |
371 | ||
372 | %description -n wxX11-devel | |
373 | Header files for wxUniversal-based wxX11 library. | |
374 | ||
375 | %description -n wxX11-devel -l pl.UTF-8 | |
376 | Pliki nagłówkowe opartej na wxUniversal biblioteki wxX11. | |
377 | ||
378 | %package -n wxX11-gl | |
379 | Summary: GL canvas library for wxUniversal-based wxX11 | |
380 | Summary(pl.UTF-8): Biblioteka GL dla opartej na wxUniversal wxX11 | |
381 | Group: X11/Libraries | |
382 | Requires: wxX11 = %{version}-%{release} | |
383 | Obsoletes: wxX11-univ-gl | |
384 | ||
385 | %description -n wxX11-gl | |
386 | GL canvas library for wxUniversal-based wxX11. | |
387 | ||
388 | %description -n wxX11-gl -l pl.UTF-8 | |
389 | Biblioteka GL dla opartej na wxUniversal wxX11. | |
390 | ||
391 | %package -n wxX11-gl-devel | |
392 | Summary: Development files for GL canvas library for wxUniversal-based wxX11 | |
393 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11 | |
394 | Group: X11/Development/Libraries | |
395 | Requires: OpenGL-GLU-devel | |
396 | Requires: wxX11-devel = %{version}-%{release} | |
397 | Requires: wxX11-gl = %{version}-%{release} | |
398 | Obsoletes: wxX11-univ-gl-devel | |
399 | ||
400 | %description -n wxX11-gl-devel | |
401 | Development files for GL canvas library for wxUniversal-based wxX11. | |
402 | ||
403 | %description -n wxX11-gl-devel -l pl.UTF-8 | |
404 | Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11. | |
405 | ||
406 | %package -n wxX11-unicode | |
407 | Summary: wxUniversal-based wxX11 library with UNICODE support | |
408 | Summary(pl.UTF-8): Oparta na wxUniversal biblioteka wxX11 z obsługą UNICODE | |
409 | Group: X11/Libraries | |
410 | Requires: %{name} = %{version}-%{release} | |
411 | Obsoletes: wxX11-univ-unicode | |
412 | ||
413 | %description -n wxX11-unicode | |
414 | wxUniversal-based wxX11 library with UNICODE support. | |
415 | ||
416 | %description -n wxX11-unicode -l pl.UTF-8 | |
417 | Oparta na wxUniversal biblioteka wxX11 z obsługą UNICODE. | |
418 | ||
419 | %package -n wxX11-unicode-devel | |
420 | Summary: Header files for wxUniversal-based wxX11 library with UNICODE support | |
421 | Summary(pl.UTF-8): Pliki nagłówkowe opartej na wxUniversal biblioteki wxX11 z obsługą UNICODE | |
422 | Group: X11/Development/Libraries | |
423 | Requires: %{name}-devel = %{version}-%{release} | |
424 | Requires: wxX11-unicode = %{version}-%{release} | |
425 | Obsoletes: wxX11-univ-unicode-devel | |
426 | ||
427 | %description -n wxX11-unicode-devel | |
428 | Header files for wxUniversal-based wxX11 library with UNICODE support. | |
429 | ||
430 | %description -n wxX11-unicode-devel -l pl.UTF-8 | |
431 | Pliki nagłówkowe opartej na wxUniversal biblioteki wxX11 z obsługą | |
432 | UNICODE. | |
433 | ||
434 | %package -n wxX11-unicode-gl | |
435 | Summary: GL canvas library for wxUniversal-based wxX11 with UNICODE support | |
436 | Summary(pl.UTF-8): Biblioteka GL dla opartej na wxUniversal wxX11 z obsługą UNICODE | |
437 | Group: X11/Libraries | |
438 | Requires: wxX11-unicode = %{version}-%{release} | |
439 | Obsoletes: wxX11-univ-unicode-gl | |
440 | ||
441 | %description -n wxX11-unicode-gl | |
442 | GL canvas library for wxUniversal-based wxX11 with UNICODE support. | |
443 | ||
444 | %description -n wxX11-unicode-gl -l pl.UTF-8 | |
445 | Biblioteka GL dla opartej na wxUniversal wxX11 z obsługą UNICODE. | |
446 | ||
447 | %package -n wxX11-unicode-gl-devel | |
448 | Summary: Development files for GL canvas library for wxX11 with UNICODE support | |
449 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GL dla wxX11 z obsługą UNICODE | |
450 | Group: X11/Development/Libraries | |
451 | Requires: OpenGL-GLU-devel | |
452 | Requires: wxX11-unicode-devel = %{version}-%{release} | |
453 | Requires: wxX11-unicode-gl = %{version}-%{release} | |
454 | Obsoletes: wxX11-univ-unicode-gl-devel | |
455 | ||
456 | %description -n wxX11-unicode-gl-devel | |
457 | Development files for GL canvas library for wxUniversal-based wxX11 | |
458 | with UNICODE support. | |
459 | ||
460 | %description -n wxX11-unicode-gl-devel -l pl.UTF-8 | |
461 | Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11 z | |
462 | obsługą UNICODE. | |
463 | ||
464 | %prep | |
465 | %setup -q | |
466 | %patch0 -p1 | |
467 | # is this still needed? | |
468 | #%patch1 -p1 | |
469 | %patch2 -p1 | |
470 | %patch3 -p1 | |
471 | %patch4 -p1 | |
472 | ||
473 | %build | |
474 | # if bakefiles rebuild is needed: | |
475 | #%if "%(rpm -q bakefile --qf '%%{VERSION}')" != "0.2.1" | |
476 | #cd build/bakefiles | |
477 | #bakefile_gen -f autoconf | |
478 | #cd ../.. | |
479 | #%endif | |
480 | cp -f /usr/share/automake/config.sub . | |
481 | %{__aclocal} -I build/aclocal | |
482 | %{__autoconf} | |
483 | ||
484 | CPPFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -I`pwd`/include"; export CPPFLAGS | |
485 | # avoid adding -s to LDFLAGS | |
486 | LDFLAGS=" "; export LDFLAGS | |
487 | args="%{?with_debug:--enable-debug}%{!?with_debug:--disable-debug} \ | |
488 | --enable-plugins \ | |
489 | --enable-std_iostreams \ | |
490 | --without-sdl \ | |
491 | --with-opengl \ | |
492 | --enable-calendar \ | |
493 | --enable-controls \ | |
494 | --enable-tabdialog" | |
495 | ||
496 | gui='--with-gtk' | |
497 | for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \ | |
498 | '--enable-unicode' ; do | |
499 | objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'` | |
500 | mkdir $objdir | |
501 | cd $objdir | |
502 | ../%configure \ | |
503 | ${args} \ | |
504 | ${gui} \ | |
505 | --disable-universal \ | |
506 | ${unicode} \ | |
507 | %{!?with_gnomeprint:--without-gnomeprint} | |
508 | %{__make} | |
509 | %{__make} -C contrib/src | |
510 | cd .. | |
511 | done | |
512 | ||
513 | %if %{with x11} | |
514 | gui='--with-x11' | |
515 | for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \ | |
516 | '--enable-unicode' ; do | |
517 | objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'` | |
518 | mkdir $objdir | |
519 | cd $objdir | |
520 | ../%configure \ | |
521 | ${args} \ | |
522 | ${gui} \ | |
523 | --enable-universal \ | |
524 | ${unicode} | |
525 | %{__make} | |
526 | %{__make} -C contrib/src | |
527 | if echo $objdir| grep -q disable-unicode ; then | |
528 | %{__make} -C utils | |
529 | %{__make} -C utils/emulator | |
530 | %{__make} -C utils/hhp2cached | |
531 | # %{__make} -C contrib/utils | |
532 | fi | |
533 | cd .. | |
534 | done | |
535 | %endif | |
536 | ||
537 | cd locale | |
538 | %{__make} allmo | |
539 | ||
540 | %install | |
541 | rm -rf $RPM_BUILD_ROOT | |
542 | install -d $RPM_BUILD_ROOT%{_bindir} | |
543 | ||
544 | gui='--with-gtk' | |
545 | for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \ | |
546 | '--enable-unicode' ; do | |
547 | objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'` | |
548 | cd $objdir | |
549 | %{__make} install \ | |
550 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
551 | exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \ | |
552 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
553 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
554 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
555 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
556 | includedir=$RPM_BUILD_ROOT%{_includedir} \ | |
557 | LOCALE_MSW_LINGUAS= | |
558 | ||
559 | %{__make} -C contrib/src install \ | |
560 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
561 | exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \ | |
562 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
563 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
564 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
565 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
566 | includedir=$RPM_BUILD_ROOT%{_includedir} | |
567 | cd .. | |
568 | done | |
569 | ||
570 | %if %{with x11} | |
571 | gui='--with-x11' | |
572 | for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \ | |
573 | '--enable-unicode' ; do | |
574 | objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'` | |
575 | cd $objdir | |
576 | %{__make} install \ | |
577 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
578 | exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \ | |
579 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
580 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
581 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
582 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
583 | includedir=$RPM_BUILD_ROOT%{_includedir} \ | |
584 | LOCALE_MSW_LINGUAS= | |
585 | if echo $objdir| grep -q disable-unicode ; then | |
586 | # TODO: install default config files and default backgrouds | |
587 | install utils/HelpGen/src/HelpGen $RPM_BUILD_ROOT%{_bindir} | |
588 | install utils/emulator/src/wxemulator $RPM_BUILD_ROOT%{_bindir} | |
589 | install utils/tex2rtf/src/tex2rtf $RPM_BUILD_ROOT%{_bindir} | |
590 | install utils/hhp2cached/hhp2cached $RPM_BUILD_ROOT%{_bindir} | |
591 | install utils/wxrc/wxrc $RPM_BUILD_ROOT%{_bindir} | |
592 | fi | |
593 | ||
594 | %{__make} -C contrib/src install \ | |
595 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
596 | exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \ | |
597 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
598 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
599 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
600 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
601 | includedir=$RPM_BUILD_ROOT%{_includedir} | |
602 | ||
603 | cd .. | |
604 | done | |
605 | %endif | |
606 | ||
607 | for i in $RPM_BUILD_ROOT%{_libdir}/wx/config/* | |
608 | do | |
609 | b=`basename $i` | |
610 | cp $i $RPM_BUILD_ROOT%{_bindir}/wx-`echo $b|sed -e 's/\(.*\)-release-.*/\1/'`-config | |
611 | done | |
612 | ||
613 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
614 | cp -a demos samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
615 | cp -f docs/x11/readme.txt docs/wxX11-readme.txt | |
616 | ||
617 | %find_lang wxstd | |
618 | ||
619 | %clean | |
620 | rm -rf $RPM_BUILD_ROOT | |
621 | ||
622 | %post -n wxBase -p /sbin/ldconfig | |
623 | %postun -n wxBase -p /sbin/ldconfig | |
624 | ||
625 | %post -n wxBase-unicode -p /sbin/ldconfig | |
626 | %postun -n wxBase-unicode -p /sbin/ldconfig | |
627 | ||
628 | %post -n wxGTK2 -p /sbin/ldconfig | |
629 | %postun -n wxGTK2 -p /sbin/ldconfig | |
630 | ||
631 | %post -n wxGTK2-gl -p /sbin/ldconfig | |
632 | %postun -n wxGTK2-gl -p /sbin/ldconfig | |
633 | ||
634 | %post -n wxGTK2-unicode -p /sbin/ldconfig | |
635 | %postun -n wxGTK2-unicode -p /sbin/ldconfig | |
636 | ||
637 | %post -n wxGTK2-unicode-gl -p /sbin/ldconfig | |
638 | %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig | |
639 | ||
640 | %post -n wxX11 -p /sbin/ldconfig | |
641 | %postun -n wxX11 -p /sbin/ldconfig | |
642 | ||
643 | %post -n wxX11-unicode -p /sbin/ldconfig | |
644 | %postun -n wxX11-unicode -p /sbin/ldconfig | |
645 | ||
646 | %define _libf %{?with_debug:d} | |
647 | %define _configf %{?with_debug:-debug-2.8} | |
648 | ||
649 | %files -f wxstd.lang | |
650 | %defattr(644,root,root,755) | |
651 | %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt | |
652 | ||
653 | %files devel | |
654 | %defattr(644,root,root,755) | |
655 | %doc docs/html | |
656 | %doc docs/tech docs/univ | |
657 | %{_includedir}/wx* | |
658 | %dir %{_libdir}/wx | |
659 | %dir %{_libdir}/wx/include | |
660 | %dir %{_libdir}/wx/config | |
661 | %{_aclocaldir}/wxwin.m4 | |
662 | ||
663 | %files -n bakefile-wxWidgets | |
664 | %defattr(644,root,root,755) | |
665 | %{_datadir}/bakefile/presets/wx*.bkl | |
666 | ||
667 | %files examples | |
668 | %defattr(644,root,root,755) | |
669 | %{_examplesdir}/%{name}-%{version} | |
670 | ||
671 | %if %{with x11} | |
672 | %files HelpGen | |
673 | %defattr(644,root,root,755) | |
674 | %attr(755,root,root) %{_bindir}/HelpGen | |
675 | %endif | |
676 | ||
677 | %if %{with ansi} | |
678 | %files -n wxBase | |
679 | %defattr(644,root,root,755) | |
680 | %attr(755,root,root) %{_libdir}/libwx_base%{_libf}-*.so.*.* | |
681 | %attr(755,root,root) %{_libdir}/libwx_base%{_libf}_*.so.*.* | |
682 | #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdl-*.so | |
683 | %attr(755,root,root) %ghost %{_libdir}/libwx_base%{_libf}-*.so.0 | |
684 | %attr(755,root,root) %ghost %{_libdir}/libwx_base%{_libf}_*.so.0 | |
685 | ||
686 | %files -n wxBase-devel | |
687 | %defattr(644,root,root,755) | |
688 | %attr(755,root,root) %{_libdir}/libwx_base%{_libf}-*.so | |
689 | %attr(755,root,root) %{_libdir}/libwx_base%{_libf}_*.so | |
690 | %endif | |
691 | ||
692 | %files -n wxBase-unicode | |
693 | %defattr(644,root,root,755) | |
694 | %attr(755,root,root) %{_libdir}/libwx_baseu%{_libf}-*.so.*.* | |
695 | %attr(755,root,root) %{_libdir}/libwx_baseu%{_libf}_*.so.*.* | |
696 | #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdlu-*.so | |
697 | %attr(755,root,root) %ghost %{_libdir}/libwx_baseu%{_libf}-*.so.0 | |
698 | %attr(755,root,root) %ghost %{_libdir}/libwx_baseu%{_libf}_*.so.0 | |
699 | ||
700 | %files -n wxBase-unicode-devel | |
701 | %defattr(644,root,root,755) | |
702 | %attr(755,root,root) %{_libdir}/libwx_baseu%{_libf}-*.so | |
703 | %attr(755,root,root) %{_libdir}/libwx_baseu%{_libf}_*.so | |
704 | ||
705 | %if %{with ansi} | |
706 | %files -n wxGTK2 | |
707 | %defattr(644,root,root,755) | |
708 | %attr(755,root,root) %{_libdir}/libwx_gtk2%{_libf}_*.so.*.* | |
709 | %exclude %{_libdir}/libwx_gtk2%{_libf}_gl-*.so.*.* | |
710 | %attr(755,root,root) %ghost %{_libdir}/libwx_gtk2%{_libf}_*.so.0 | |
711 | %exclude %{_libdir}/libwx_gtk2%{_libf}_gl-*.so.0 | |
712 | ||
713 | %files -n wxGTK2-devel | |
714 | %defattr(644,root,root,755) | |
715 | %attr(755,root,root) %{_libdir}/libwx_gtk2%{_libf}_*-*.so | |
716 | %exclude %{_libdir}/libwx_gtk2%{_libf}_gl-*.so | |
717 | %attr(755,root,root) %{_libdir}/wx/config/gtk2-ansi-* | |
718 | %{_libdir}/wx/include/gtk2-ansi-* | |
719 | %attr(755,root,root) %{_bindir}/wx-gtk2-ansi%{_configf}-config | |
720 | ||
721 | %files -n wxGTK2-gl | |
722 | %defattr(644,root,root,755) | |
723 | %attr(755,root,root) %{_libdir}/libwx_gtk2%{_libf}_gl-*.so.*.* | |
724 | %attr(755,root,root) %ghost %{_libdir}/libwx_gtk2%{_libf}_gl-*.so.0 | |
725 | ||
726 | %files -n wxGTK2-gl-devel | |
727 | %defattr(644,root,root,755) | |
728 | %attr(755,root,root) %{_libdir}/libwx_gtk2%{_libf}_gl-*.so | |
729 | %endif | |
730 | ||
731 | %files -n wxGTK2-unicode | |
732 | %defattr(644,root,root,755) | |
733 | %attr(755,root,root) %{_libdir}/libwx_gtk2u%{_libf}_*-*.so.*.* | |
734 | %exclude %{_libdir}/libwx_gtk2u%{_libf}_gl-*.so.*.* | |
735 | %attr(755,root,root) %ghost %{_libdir}/libwx_gtk2u%{_libf}_*-*.so.0 | |
736 | %exclude %{_libdir}/libwx_gtk2u%{_libf}_gl-*.so.0 | |
737 | ||
738 | %files -n wxGTK2-unicode-devel | |
739 | %defattr(644,root,root,755) | |
740 | %attr(755,root,root) %{_libdir}/libwx_gtk2u%{_libf}_*-*.so | |
741 | %exclude %{_libdir}/libwx_gtk2u%{_libf}_gl-*.so | |
742 | %attr(755,root,root) %{_libdir}/wx/config/gtk2-unicode-* | |
743 | %{_libdir}/wx/include/gtk2-unicode-* | |
744 | %attr(755,root,root) %{_bindir}/wx-gtk2-unicode%{_configf}-config | |
745 | ||
746 | %files -n wxGTK2-unicode-gl | |
747 | %defattr(644,root,root,755) | |
748 | %attr(755,root,root) %{_libdir}/libwx_gtk2u%{_libf}_gl-*.so.*.* | |
749 | %attr(755,root,root) %ghost %{_libdir}/libwx_gtk2u%{_libf}_gl-*.so.0 | |
750 | ||
751 | %files -n wxGTK2-unicode-gl-devel | |
752 | %defattr(644,root,root,755) | |
753 | %attr(755,root,root) %{_libdir}/libwx_gtk2u%{_libf}_gl-*.so | |
754 | ||
755 | %if %{with x11} | |
756 | %if %{with ansi} | |
757 | %files utils | |
758 | %defattr(644,root,root,755) | |
759 | %attr(755,root,root) %{_bindir}/hhp2cached | |
760 | %attr(755,root,root) %{_bindir}/tex2rtf | |
761 | %attr(755,root,root) %{_bindir}/wxemulator | |
762 | %attr(755,root,root) %{_bindir}/wxrc | |
763 | %attr(755,root,root) %{_bindir}/wxrc-* | |
764 | ||
765 | %files -n wxX11 | |
766 | %defattr(644,root,root,755) | |
767 | %doc docs/wxX11-readme.txt | |
768 | %attr(755,root,root) %{_libdir}/libwx_x11univ%{_libf}_*-*.so.*.* | |
769 | %exclude %{_libdir}/libwx_x11univ%{_libf}_gl-*.so.*.* | |
770 | %attr(755,root,root) %ghost %{_libdir}/libwx_x11univ%{_libf}_*-*.so.0 | |
771 | %exclude %{_libdir}/libwx_x11univ%{_libf}_gl-*.so.0 | |
772 | ||
773 | %files -n wxX11-devel | |
774 | %defattr(644,root,root,755) | |
775 | %attr(755,root,root) %{_libdir}/libwx_x11univ%{_libf}_*-*.so | |
776 | %exclude %{_libdir}/libwx_x11univ%{_libf}_gl-*.so | |
777 | %attr(755,root,root) %{_libdir}/wx/config/x11univ-ansi-* | |
778 | %{_libdir}/wx/include/x11univ-ansi-* | |
779 | %attr(755,root,root) %{_bindir}/wx-x11univ-ansi%{_configf}-config | |
780 | ||
781 | %files -n wxX11-gl | |
782 | %defattr(644,root,root,755) | |
783 | %attr(755,root,root) %{_libdir}/libwx_x11univ%{_libf}_gl-*.so.*.* | |
784 | %attr(755,root,root) %ghost %{_libdir}/libwx_x11univ%{_libf}_gl-*.so.0 | |
785 | ||
786 | %files -n wxX11-gl-devel | |
787 | %defattr(644,root,root,755) | |
788 | %attr(755,root,root) %{_libdir}/libwx_x11univ%{_libf}_gl-*.so | |
789 | %endif | |
790 | ||
791 | %files -n wxX11-unicode | |
792 | %defattr(644,root,root,755) | |
793 | %attr(755,root,root) %{_libdir}/libwx_x11univu%{_libf}_*-*.so.*.* | |
794 | %exclude %{_libdir}/libwx_x11univu%{_libf}_gl-*.so.*.* | |
795 | %attr(755,root,root) %ghost %{_libdir}/libwx_x11univu%{_libf}_*-*.so.0 | |
796 | %exclude %{_libdir}/libwx_x11univu%{_libf}_gl-*.so.0 | |
797 | ||
798 | %files -n wxX11-unicode-devel | |
799 | %defattr(644,root,root,755) | |
800 | %attr(755,root,root) %{_libdir}/libwx_x11univu%{_libf}_*-*.so | |
801 | %exclude %{_libdir}/libwx_x11univu%{_libf}_gl-*.so | |
802 | %attr(755,root,root) %{_libdir}/wx/config/x11univ-unicode-* | |
803 | %{_libdir}/wx/include/x11univ-unicode-* | |
804 | %attr(755,root,root) %{_bindir}/wx-x11univ-unicode%{_configf}-config | |
805 | ||
806 | %files -n wxX11-unicode-gl | |
807 | %defattr(644,root,root,755) | |
808 | %attr(755,root,root) %{_libdir}/libwx_x11univu%{_libf}_gl-*.so.*.* | |
809 | %attr(755,root,root) %ghost %{_libdir}/libwx_x11univu%{_libf}_gl-*.so.0 | |
810 | ||
811 | %files -n wxX11-unicode-gl-devel | |
812 | %defattr(644,root,root,755) | |
813 | %attr(755,root,root) %{_libdir}/libwx_x11univu%{_libf}_gl-*.so | |
814 | %endif |