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)
9 Summary: wxWidgets library
10 Summary(pl): Biblioteka wxWidgets
14 License: wxWidgets Licence (LGPL with exception)
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
32 BuildRequires: cppunit-devel
33 BuildRequires: esound-devel
34 BuildRequires: expat-devel
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
47 Obsoletes: wxGTK-devel
49 Obsoletes: wxGTK-gl-devel
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
63 Obsoletes: wxMotif-devel
65 Obsoletes: wxMotif-gl-devel
67 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69 %define _sysconfdir %{_datadir}
71 %define _noautoreqdep libGL.so.1 libGLU.so.1
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.
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.
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
88 Requires: %{name} = %{version}-%{release}
90 Obsoletes: wxWindows-afm
93 Font metrics (in AFM format) common for wxGTK, wxGTK2, wxMotif and
96 %description afm -l pl
97 Metryki fontów (w formacie AFM) wspólne dla bibliotek wxGTK, wxGTK2,
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
108 Header files and development documentation for the wxWidgets
111 %description devel -l pl
112 Pliki nag³ówkowe i dokumentacja do bibliotek wxWidgets.
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
121 %description examples
122 wxWidgets example programs.
124 %description examples -l pl
125 Przyk³adowe programy wxWidgets.
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
135 Help file generator for wxWidgets programs.
137 %description HelpGen -l pl
138 Generator plików pomocy dla programów wxWidgets.
141 Summary: wxBase library - non-GUI support classes of wxWidgets toolkit
142 Summary(pl): wxBase - biblioteka klas wxWidgets nie zwi±zanych z GUI
144 Requires: %{name} = %{version}-%{release}
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.
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.
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}
172 %description -n wxBase-devel
173 Header files for wxBase. You need them to develop programs using
176 %description -n wxBase-devel -l pl
177 Pliki nag³ówkowe do biblioteki wxBase.
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
183 Requires: %{name} = %{version}-%{release}
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.
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±
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}
212 %description -n wxBase-unicode-devel
213 Header files for wxBase. You need them to develop programs using
214 UNICODE-enabled wxBase.
216 %description -n wxBase-unicode-devel -l pl
217 Pliki nag³ówkowe do biblioteki wxBase z obs³ug± UNICODE.
220 Summary: wxGTK2 library
221 Summary(pl): Biblioteka wxGTK2
223 Requires: %{name} = %{version}-%{release}
224 Requires: %{name}-afm = %{version}-%{release}
225 Obsoletes: wxGTK2-univ
227 %description -n wxGTK2
228 wxWidgets library using GTK2 widgets.
230 %description -n wxGTK2 -l pl
231 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2.
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
241 %description -n wxGTK2-devel
242 Header files for wxWidgets library using GTK2 widgets.
244 %description -n wxGTK2-devel -l pl
245 Pliki nag³ówkowe dla biblioteki wxWidgets u¿ywaj±cej widgetów GTK2.
247 %package -n wxGTK2-gl
248 Summary: GL canvas library for wxGTK2
249 Summary(pl): Biblioteka GL dla wxGTK2
251 Requires: wxGTK2 = %{version}-%{release}
253 Obsoletes: wxGTK2-univ-gl
255 %description -n wxGTK2-gl
256 wxGTK2 GL canvas library.
258 %description -n wxGTK2-gl -l pl
259 Biblioteka GL dla wxGTK2.
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
270 %description -n wxGTK2-gl-devel
271 Development files for wxGTK2 GL canvas library.
273 %description -n wxGTK2-gl-devel -l pl
274 Pliki programistyczne biblioteki GL dla wxGTK2.
276 %package -n wxGTK2-unicode
277 Summary: wxGTK2 library with UNICODE support
278 Summary(pl): Biblioteka wxGTK2 z obs³ug± UNICODE
280 Requires: %{name} = %{version}-%{release}
281 Requires: %{name}-afm = %{version}-%{release}
282 Obsoletes: wxGTK2-univ-unicode
284 %description -n wxGTK2-unicode
285 wxWidgets library using GTK2 widgets with UNICODE support.
287 %description -n wxGTK2-unicode -l pl
288 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2 z obs³ug± UNICODE.
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
298 %description -n wxGTK2-unicode-devel
299 Header files for wxWidgets library using GTK2 widgets with UNICODE
302 %description -n wxGTK2-unicode-devel -l pl
303 Pliki nag³ówkowe biblioteki wxWidgets u¿ywaj±cej widgetów GTK2 z
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
310 Requires: wxGTK2-unicode = %{version}-%{release}
312 Obsoletes: wxGTK2-univ-unicode-gl
314 %description -n wxGTK2-unicode-gl
315 GL canvas library for wxGTK2 with UNICODE support.
317 %description -n wxGTK2-unicode-gl -l pl
318 Biblioteka GL dla wxGTK2 z obs³ug± UNICODE.
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
329 %description -n wxGTK2-unicode-gl-devel
330 Development files for GL canvas library for wxGTK2 with UNICODE
333 %description -n wxGTK2-unicode-gl-devel -l pl
334 Pliki programistyczne biblioteki GL dla wxGTK2 z obs³ug± UNICODE.
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
344 Misc utils from wxWidgets project: helpviewer, makegen, etc.
346 %description utils -l pl
347 Ró¿ne narzêdzia z projektu wxWidgets: helpviewer, makegen itp.
350 Summary: wxUniversal-based wxX11 library
351 Summary(pl): Oparta na wxUniversal biblioteka wxX11
353 Requires: %{name} = %{version}-%{release}
354 Requires: %{name}-afm = %{version}-%{release}
355 Obsoletes: wxX11-univ
357 %description -n wxX11
358 wxUniversal-based wxX11 library.
360 %description -n wxX11 -l pl
361 Oparta na wxUniversal biblioteka wxX11.
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
367 Requires: %{name}-devel = %{version}-%{release}
368 Requires: wxX11 = %{version}-%{release}
369 Obsoletes: wxX11-univ-devel
371 %description -n wxX11-devel
372 Header files for wxUniversal-based wxX11 library.
374 %description -n wxX11-devel -l pl
375 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11.
378 Summary: GL canvas library for wxUniversal-based wxX11
379 Summary(pl): Biblioteka GL dla opartej na wxUniversal wxX11
381 Requires: wxX11 = %{version}-%{release}
383 Obsoletes: wxX11-univ-gl
385 %description -n wxX11-gl
386 GL canvas library for wxUniversal-based wxX11.
388 %description -n wxX11-gl -l pl
389 Biblioteka GL dla opartej na wxUniversal wxX11.
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
400 %description -n wxX11-gl-devel
401 Development files for GL canvas library for wxUniversal-based wxX11.
403 %description -n wxX11-gl-devel -l pl
404 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11.
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
410 Requires: %{name} = %{version}-%{release}
411 Requires: %{name}-afm = %{version}-%{release}
412 Obsoletes: wxX11-univ-unicode
414 %description -n wxX11-unicode
415 wxUniversal-based wxX11 library with UNICODE support.
417 %description -n wxX11-unicode -l pl
418 Oparta na wxUniversal biblioteka wxX11 z obs³ug± UNICODE.
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
428 %description -n wxX11-unicode-devel
429 Header files for wxUniversal-based wxX11 library with UNICODE support.
431 %description -n wxX11-unicode-devel -l pl
432 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11 z obs³ug± UNICODE.
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
438 Requires: wxX11-unicode = %{version}-%{release}
440 Obsoletes: wxX11-univ-unicode-gl
442 %description -n wxX11-unicode-gl
443 GL canvas library for wxUniversal-based wxX11 with UNICODE support.
445 %description -n wxX11-unicode-gl -l pl
446 Biblioteka GL dla opartej na wxUniversal wxX11 z obs³ug± UNICODE.
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
457 %description -n wxX11-unicode-gl-devel
458 Development files for GL canvas library for wxUniversal-based wxX11
459 with UNICODE support.
461 %description -n wxX11-unicode-gl-devel -l pl
462 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11 z
471 echo 'AC_DEFUN([AM_PATH_GTK],[$3])' > fake-am_path_gtk.m4
474 cp -f /usr/share/automake/config.sub .
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} \
483 --enable-std_iostreams \
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'`
499 --disable-universal \
502 %{__make} -C contrib/src
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'`
519 %{__make} -C contrib/src
520 if echo $objdir| grep -q disable-unicode ; then
522 %{__make} -C utils/emulator
523 %{__make} -C utils/hhp2cached
524 %{__make} -C contrib/utils
534 rm -rf $RPM_BUILD_ROOT
535 install -d $RPM_BUILD_ROOT%{_bindir}
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'`
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}
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}
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'`
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/
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}
609 for i in $RPM_BUILD_ROOT%{_libdir}/wx/config/*
612 cp $i $RPM_BUILD_ROOT%{_bindir}/wx-`echo $b|sed -e 's/\(.*\)-release-.*/\1/'`-config
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
622 rm -rf $RPM_BUILD_ROOT
624 %post -n wxBase -p /sbin/ldconfig
625 %postun -n wxBase -p /sbin/ldconfig
627 %post -n wxBase-unicode -p /sbin/ldconfig
628 %postun -n wxBase-unicode -p /sbin/ldconfig
630 %post -n wxGTK2 -p /sbin/ldconfig
631 %postun -n wxGTK2 -p /sbin/ldconfig
633 %post -n wxGTK2-gl -p /sbin/ldconfig
634 %postun -n wxGTK2-gl -p /sbin/ldconfig
636 %post -n wxGTK2-unicode -p /sbin/ldconfig
637 %postun -n wxGTK2-unicode -p /sbin/ldconfig
639 %post -n wxGTK2-unicode-gl -p /sbin/ldconfig
640 %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig
642 %post -n wxX11 -p /sbin/ldconfig
643 %postun -n wxX11 -p /sbin/ldconfig
645 %post -n wxX11-unicode -p /sbin/ldconfig
646 %postun -n wxX11-unicode -p /sbin/ldconfig
649 %defattr(644,root,root,755)
650 %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt
652 %dir %{_datadir}/wx/2.5
654 %files -n wxWidgets-afm
655 %defattr(644,root,root,755)
656 %{_datadir}/wx/2.5/afm
657 %{_datadir}/wx/2.5/gs_afm
660 %defattr(644,root,root,755)
662 %doc docs/tech docs/univ
665 %dir %{_libdir}/wx/include
666 %dir %{_libdir}/wx/config
670 %defattr(644,root,root,755)
671 %{_examplesdir}/%{name}-%{version}
675 %defattr(644,root,root,755)
676 %attr(755,root,root) %{_bindir}/HelpGen
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
686 %files -n wxBase-devel
687 %defattr(644,root,root,755)
688 %{_libdir}/libwx_base-*.so
689 %{_libdir}/libwx_base_*.so
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
698 %files -n wxBase-unicode-devel
699 %defattr(644,root,root,755)
700 %{_libdir}/libwx_baseu-*.so
701 %{_libdir}/libwx_baseu_*.so
705 %defattr(644,root,root,755)
706 %attr(755,root,root) %{_libdir}/libwx_gtk2_*.so.*.*
707 %exclude %{_libdir}/libwx_gtk2_ogl-*.so.*.*
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
718 %defattr(644,root,root,755)
719 %attr(755,root,root) %{_libdir}/libwx_gtk2_ogl-*.so.*.*
721 %files -n wxGTK2-gl-devel
722 %defattr(644,root,root,755)
723 %{_libdir}/libwx_gtk2_ogl-*.so
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.*.*
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
739 %files -n wxGTK2-unicode-gl
740 %defattr(644,root,root,755)
741 %attr(755,root,root) %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
743 %files -n wxGTK2-unicode-gl-devel
744 %defattr(644,root,root,755)
745 %{_libdir}/libwx_gtk2u_ogl-*.so
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
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.*.*
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
772 %defattr(644,root,root,755)
773 %attr(755,root,root) %{_libdir}/libwx_x11univ_ogl-*.so.*.*
775 %files -n wxX11-gl-devel
776 %defattr(644,root,root,755)
777 %{_libdir}/libwx_x11univ_ogl-*.so
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.*.*
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
793 %files -n wxX11-unicode-gl
794 %defattr(644,root,root,755)
795 %attr(755,root,root) %{_libdir}/libwx_x11univu_ogl-*.so.*.*
797 %files -n wxX11-unicode-gl-devel
798 %defattr(644,root,root,755)
799 %{_libdir}/libwx_x11univu_ogl-*.so