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