]> git.pld-linux.org Git - packages/wxWidgets.git/blob - wxWidgets.spec
- fixed problem with AM_PATH_GTK. now it can build even if there is no gtk1 devel...
[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 %build
472
473 cat > fake-am_path_gtk.m4<<EOF
474 AC_DEFUN([AM_PATH_GTK],
475 true
476 )
477 EOF
478
479 cp /usr/share/automake/config.sub .
480 %{__aclocal} -I .
481 %{__autoconf}
482
483 CPPFLAGS="%{rpmcflags} -I`pwd`/include -I/usr/X11R6/include"; export CPPFLAGS
484 # avoid adding -s to LDFLAGS
485 LDFLAGS=" "; export LDFLAGS
486 args="%{?with_debug:--enable-debug}%{!?with_debug:--disable-debug} \
487         --enable-plugins \
488         --enable-std_iostreams \
489         --with-sdl \
490         --with-opengl \
491         --enable-calendar \
492         --enable-controls \
493         --enable-tabdialog"
494
495 gui='--with-gtk --enable-gtk2'
496 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
497         '--enable-unicode' ; do
498         objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
499         mkdir $objdir
500         cd $objdir
501         ../%configure \
502                 ${args} \
503                 ${gui} \
504                 --disable-universal \
505                 ${unicode}
506         %{__make}
507         %{__make} -C contrib/src
508         cd ..
509 done
510
511 %if %{with x11}
512 gui='--with-x11'
513 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
514         '--enable-unicode' ; do
515         objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
516         mkdir $objdir
517         cd $objdir
518         ../%configure \
519                 ${args} \
520                 ${gui} \
521                 --enable-universal \
522                 ${unicode}
523         %{__make}
524         %{__make} -C contrib/src
525         if echo $objdir| grep -q disable-unicode ; then
526                 %{__make} -C utils
527                 %{__make} -C utils/emulator
528                 %{__make} -C utils/hhp2cached
529                 %{__make} -C contrib/utils
530         fi
531         cd ..
532 done
533 %endif
534
535 cd locale
536 %{__make} allmo
537
538 %install
539 rm -rf $RPM_BUILD_ROOT
540 install -d $RPM_BUILD_ROOT%{_bindir}
541
542 gui='--with-gtk --enable-gtk2'
543 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
544         '--enable-unicode' ; do
545         objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
546         cd $objdir
547         %{__make} install \
548                 prefix=$RPM_BUILD_ROOT%{_prefix} \
549                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
550                 bindir=$RPM_BUILD_ROOT%{_bindir} \
551                 datadir=$RPM_BUILD_ROOT%{_datadir} \
552                 libdir=$RPM_BUILD_ROOT%{_libdir} \
553                 mandir=$RPM_BUILD_ROOT%{_mandir} \
554                 includedir=$RPM_BUILD_ROOT%{_includedir}
555
556         %{__make} -C contrib/src install \
557                 prefix=$RPM_BUILD_ROOT%{_prefix} \
558                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
559                 bindir=$RPM_BUILD_ROOT%{_bindir} \
560                 datadir=$RPM_BUILD_ROOT%{_datadir} \
561                 libdir=$RPM_BUILD_ROOT%{_libdir} \
562                 mandir=$RPM_BUILD_ROOT%{_mandir} \
563                 includedir=$RPM_BUILD_ROOT%{_includedir}
564         cd ..
565 done
566
567 %if %{with x11}
568 gui='--with-x11'
569 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
570         '--enable-unicode' ; do
571         objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
572         cd $objdir
573         %{__make} install \
574                 prefix=$RPM_BUILD_ROOT%{_prefix} \
575                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
576                 bindir=$RPM_BUILD_ROOT%{_bindir} \
577                 datadir=$RPM_BUILD_ROOT%{_datadir} \
578                 libdir=$RPM_BUILD_ROOT%{_libdir} \
579                 mandir=$RPM_BUILD_ROOT%{_mandir} \
580                 includedir=$RPM_BUILD_ROOT%{_includedir}
581         if echo $objdir| grep -q disable-unicode ; then
582 #               install utils/dialoged/src/DialogEd $RPM_BUILD_ROOT%{_bindir}
583                 # TODO: install default config files and default backgrouds
584                 install utils/HelpGen/src/HelpGen $RPM_BUILD_ROOT%{_bindir}
585                 install utils/emulator/src/wxemulator $RPM_BUILD_ROOT%{_bindir}
586                 install utils/tex2rtf/src/tex2rtf $RPM_BUILD_ROOT%{_bindir}
587                 install utils/hhp2cached/hhp2cached $RPM_BUILD_ROOT%{_bindir}
588 #               install utils/makegen/makegen $RPM_BUILD_ROOT%{_bindir}
589                 install utils/wxrc/wxrc $RPM_BUILD_ROOT%{_bindir}
590 #               install -d $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
591 #               install -m644 utils/makegen/templates/* \
592 #                       $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
593 #               install contrib/utils/wxrcedit/wxrcedit $RPM_BUILD_ROOT%{_bindir}
594 #               install -d $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit
595 #               install contrib/utils/wxrcedit/df/* \
596 #                       $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit/
597         fi
598
599         %{__make} -C contrib/src install \
600                 prefix=$RPM_BUILD_ROOT%{_prefix} \
601                 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
602                 bindir=$RPM_BUILD_ROOT%{_bindir} \
603                 datadir=$RPM_BUILD_ROOT%{_datadir} \
604                 libdir=$RPM_BUILD_ROOT%{_libdir} \
605                 mandir=$RPM_BUILD_ROOT%{_mandir} \
606                 includedir=$RPM_BUILD_ROOT%{_includedir}
607
608         cd ..
609 done
610 %endif
611
612 set -x
613
614 for i in $RPM_BUILD_ROOT%{_libdir}/wx/config/*
615 do
616         b=`basename $i`
617         cp $i $RPM_BUILD_ROOT%{_bindir}/wx-`echo $b|sed -e 's/\(.*\)-release-.*/\1/'`-config
618 done
619
620 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
621 cp -a demos samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
622 cp -f docs/x11/readme.txt docs/wxX11-readme.txt
623
624 %find_lang wxstd
625
626 %clean
627 rm -rf $RPM_BUILD_ROOT
628
629 %post   -n wxBase -p /sbin/ldconfig
630 %postun -n wxBase -p /sbin/ldconfig
631
632 %post   -n wxBase-unicode -p /sbin/ldconfig
633 %postun -n wxBase-unicode -p /sbin/ldconfig
634
635 %post   -n wxGTK2 -p /sbin/ldconfig
636 %postun -n wxGTK2 -p /sbin/ldconfig
637
638 %post   -n wxGTK2-gl -p /sbin/ldconfig
639 %postun -n wxGTK2-gl -p /sbin/ldconfig
640
641 %post   -n wxGTK2-unicode -p /sbin/ldconfig
642 %postun -n wxGTK2-unicode -p /sbin/ldconfig
643
644 %post   -n wxGTK2-unicode-gl -p /sbin/ldconfig
645 %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig
646
647 %post   -n wxX11 -p /sbin/ldconfig
648 %postun -n wxX11 -p /sbin/ldconfig
649
650 %post   -n wxX11-unicode -p /sbin/ldconfig
651 %postun -n wxX11-unicode -p /sbin/ldconfig
652
653 %files -f wxstd.lang
654 %defattr(644,root,root,755)
655 %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt
656 %dir %{_datadir}/wx
657 %dir %{_datadir}/wx/2.5
658
659 %files -n wxWidgets-afm
660 %defattr(644,root,root,755)
661 %{_datadir}/wx/2.5/afm
662 %{_datadir}/wx/2.5/gs_afm
663
664 %files devel
665 %defattr(644,root,root,755)
666 %doc docs/html
667 %doc docs/tech docs/univ
668 %{_includedir}/wx*
669 %dir %{_libdir}/wx
670 %dir %{_libdir}/wx/include
671 %dir %{_libdir}/wx/config
672 %{_aclocaldir}/*.m4
673
674 %files examples
675 %defattr(644,root,root,755)
676 %{_examplesdir}/%{name}-%{version}
677
678 %if %{with x11}
679 %files HelpGen
680 %defattr(644,root,root,755)
681 %attr(755,root,root) %{_bindir}/HelpGen
682 %endif
683
684 %if %{with ansi}
685 %files -n wxBase
686 %defattr(644,root,root,755)
687 %attr(755,root,root) %{_libdir}/libwx_base-*.so.*.*
688 %attr(755,root,root) %{_libdir}/libwx_base_*.so.*.*
689 %attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdl-*.so
690
691 %files -n wxBase-devel
692 %defattr(644,root,root,755)
693 %{_libdir}/libwx_base-*.so
694 %{_libdir}/libwx_base_*.so
695 %endif
696
697 %files -n wxBase-unicode
698 %defattr(644,root,root,755)
699 %attr(755,root,root) %{_libdir}/libwx_baseu-*.so.*.*
700 %attr(755,root,root) %{_libdir}/libwx_baseu_*.so.*.*
701 %attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdlu-*.so
702
703 %files -n wxBase-unicode-devel
704 %defattr(644,root,root,755)
705 %{_libdir}/libwx_baseu-*.so
706 %{_libdir}/libwx_baseu_*.so
707
708 %if %{with ansi}
709 %files -n wxGTK2
710 %defattr(644,root,root,755)
711 %attr(755,root,root) %{_libdir}/libwx_gtk2_*.so.*.*
712 %exclude %{_libdir}/libwx_gtk2_ogl-*.so.*.*
713
714 %files -n wxGTK2-devel
715 %defattr(644,root,root,755)
716 %{_libdir}/libwx_gtk2_*-*.so
717 %exclude %{_libdir}/libwx_gtk2_ogl-*.so
718 %{_libdir}/wx/config/gtk2-ansi-*
719 %{_libdir}/wx/include/gtk2-ansi-*
720 %attr(755,root,root) %{_bindir}/wx-gtk2-ansi-config
721
722 %files -n wxGTK2-gl
723 %defattr(644,root,root,755)
724 %attr(755,root,root) %{_libdir}/libwx_gtk2_ogl-*.so.*.*
725
726 %files -n wxGTK2-gl-devel
727 %defattr(644,root,root,755)
728 %{_libdir}/libwx_gtk2_ogl-*.so
729 %endif
730
731 %files -n wxGTK2-unicode
732 %defattr(644,root,root,755)
733 %attr(755,root,root) %{_libdir}/libwx_gtk2u_*-*.so.*.*
734 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
735
736 %files -n wxGTK2-unicode-devel
737 %defattr(644,root,root,755)
738 %{_libdir}/libwx_gtk2u_*-*.so
739 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so
740 %{_libdir}/wx/config/gtk2-unicode-*
741 %{_libdir}/wx/include/gtk2-unicode-*
742 %attr(755,root,root) %{_bindir}/wx-gtk2-unicode-config
743
744 %files -n wxGTK2-unicode-gl
745 %defattr(644,root,root,755)
746 %attr(755,root,root) %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
747
748 %files -n wxGTK2-unicode-gl-devel
749 %defattr(644,root,root,755)
750 %{_libdir}/libwx_gtk2u_ogl-*.so
751
752 %if %{with x11}
753 %if %{with ansi}
754 %files utils
755 %defattr(644,root,root,755)
756 %attr(755,root,root) %{_bindir}/*
757 %exclude %{_bindir}/HelpGen
758 %exclude %{_bindir}/wx*-config
759 #%{_datadir}/wx/makegen
760 #%{_datadir}/wx/wxrcedit
761
762 %files -n wxX11
763 %defattr(644,root,root,755)
764 %doc docs/wxX11-readme.txt
765 %attr(755,root,root) %{_libdir}/libwx_x11univ_*-*.so.*.*
766 %exclude %{_libdir}/libwx_x11univ_ogl-*.so.*.*
767
768 %files -n wxX11-devel
769 %defattr(644,root,root,755)
770 %{_libdir}/libwx_x11univ_*-*.so
771 %exclude %{_libdir}/libwx_x11univ_ogl-*.so
772 %{_libdir}/wx/config/x11univ-ansi-*
773 %{_libdir}/wx/include/x11univ-ansi-*
774 %attr(755,root,root) %{_bindir}/wx-x11univ-ansi-config
775
776 %files -n wxX11-gl
777 %defattr(644,root,root,755)
778 %attr(755,root,root) %{_libdir}/libwx_x11univ_ogl-*.so.*.*
779
780 %files -n wxX11-gl-devel
781 %defattr(644,root,root,755)
782 %{_libdir}/libwx_x11univ_ogl-*.so
783 %endif
784
785 %files -n wxX11-unicode
786 %defattr(644,root,root,755)
787 %attr(755,root,root) %{_libdir}/libwx_x11univu_*-*.so.*.*
788 %exclude %{_libdir}/libwx_x11univu_ogl-*.so.*.*
789
790 %files -n wxX11-unicode-devel
791 %defattr(644,root,root,755)
792 %{_libdir}/libwx_x11univu_*-*.so
793 %exclude %{_libdir}/libwx_x11univu_ogl-*.so
794 %{_libdir}/wx/config/x11univ-unicode-*
795 %{_libdir}/wx/include/x11univ-unicode-*
796 %attr(755,root,root) %{_bindir}/wx-x11univ-unicode-config
797
798 %files -n wxX11-unicode-gl
799 %defattr(644,root,root,755)
800 %attr(755,root,root) %{_libdir}/libwx_x11univu_ogl-*.so.*.*
801
802 %files -n wxX11-unicode-gl-devel
803 %defattr(644,root,root,755)
804 %{_libdir}/libwx_x11univu_ogl-*.so
805 %endif
This page took 0.111214 seconds and 4 git commands to generate.