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 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/%{name}-%{version}.tar.gz
17 # Source0-md5: a9d87fec714c0dc79ba1f5b8f1ded50c
18 Patch0: %{name}-samples.patch
19 Patch1: %{name}-ogl.patch
20 Patch2: %{name}-ac.patch
21 Patch3: %{name}-gif0delay.patch
22 URL: http://www.wxWidgets.org/
23 BuildRequires: OpenGL-devel
24 BuildRequires: SDL-devel
25 BuildRequires: autoconf >= 2.58
26 BuildRequires: automake
27 BuildRequires: bakefile >= 0.1.8
28 BuildRequires: cppunit-devel
29 BuildRequires: esound-devel
30 BuildRequires: expat-devel
32 BuildRequires: gettext-devel
33 BuildRequires: gtk+2-devel
34 BuildRequires: libjpeg-devel
35 BuildRequires: libmng-devel
36 BuildRequires: libpng-devel
37 BuildRequires: libstdc++-devel
38 BuildRequires: libtiff-devel
39 BuildRequires: libtool
40 BuildRequires: pkgconfig
41 # these are not supported by wxWidgets
42 Obsoletes: LDAPExplorerTool <= 0.6-1
43 Obsoletes: abridge <= 0.4.0-1
44 # and these are replaced
46 Obsoletes: wxGTK-devel
48 Obsoletes: wxGTK-gl-devel
50 Obsoletes: wxGTK-univ-devel
51 Obsoletes: wxGTK-univ-gl
52 Obsoletes: wxGTK-univ-gl-devel
53 Obsoletes: wxGTK2-univ
54 Obsoletes: wxGTK2-univ-devel
55 Obsoletes: wxGTK2-univ-gl
56 Obsoletes: wxGTK2-univ-gl-devel
57 Obsoletes: wxGTK2-univ-unicode
58 Obsoletes: wxGTK2-univ-unicode-devel
59 Obsoletes: wxGTK2-univ-unicode-gl
60 Obsoletes: wxGTK2-univ-unicode-gl-devel
62 Obsoletes: wxMotif-devel
64 Obsoletes: wxMotif-gl-devel
65 Obsoletes: wxWidgets-afm
67 Obsoletes: wxWindows-afm
69 Obsoletes: wxwin-common
70 Conflicts: wxGTK2 < 2.6.0
71 Conflicts: wxGTK2-unicode < 2.6.0
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 %define _sysconfdir %{_datadir}
76 %define _noautoreqdep libGL.so.1 libGLU.so.1
79 wxWidgets is a free C++ library for cross-platform GUI development.
80 With wxWidgets, you can create applications for different GUIs (GTK+,
81 Motif/LessTif, MS Windows, Mac) from the same source code.
84 wxWidgets to wolnodostêpna biblioteka napisana w C++ umo¿liwiaj±ca
85 rozwijanie wieloplatformowych programów GUI. Przy u¿yciu wxWidgets
86 mo¿na tworzyæ aplikacje dla ró¿nych GUI (GTK+, Motif/LessTif, MS
87 Windows, Mac) z tego samego kodu ¼ród³owego.
90 Summary: wxWidgets header files and development documentation
91 Summary(pl): Pliki nag³ówkowe i dokumentacja do wxWidgets
92 Group: X11/Development/Libraries
93 Requires: libstdc++-devel
94 Obsoletes: wxWindows-devel
97 Header files and development documentation for the wxWidgets
100 %description devel -l pl
101 Pliki nag³ówkowe i dokumentacja do bibliotek wxWidgets.
104 Summary: wxWidgets example programs
105 Summary(pl): Przyk³adowe programy wxWidgets
106 Group: X11/Development/Libraries
107 Requires: %{name}-devel = %{version}-%{release}
108 Obsoletes: wxWindows-examples
110 %description examples
111 wxWidgets example programs.
113 %description examples -l pl
114 Przyk³adowe programy wxWidgets.
117 Summary: Help file generator for wxWidgets programs
118 Summary(pl): Generator plików pomocy dla programów wxWidgets
119 Group: Development/Tools
120 Requires: wxBase = %{version}-%{release}
121 Obsoletes: wxWindows-HelpGen
124 Help file generator for wxWidgets programs.
126 %description HelpGen -l pl
127 Generator plików pomocy dla programów wxWidgets.
130 Summary: wxBase library - non-GUI support classes of wxWidgets toolkit
131 Summary(pl): wxBase - biblioteka klas wxWidgets nie zwi±zanych z GUI
133 Requires: %{name} = %{version}-%{release}
135 %description -n wxBase
136 wxBase is a collection of C++ classes providing basic data structures
137 (strings, lists, arrays), powerful wxDateTime class for date
138 manipulations, portable wrappers around many OS-specific functions
139 allowing to build the same program under all supported folders,
140 wxThread class for writing multithreaded programs using either Win32
141 or POSIX threads and much more. wxBase currently supports the
142 following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris,
143 HP-UX, ...) and BeOS.
145 %description -n wxBase -l pl
146 wxBase jest zestawem klas C++ obs³uguj±cych podstawowe struktury
147 danych (stringi, listy, tablice), klasê wxDateTime do operacji na
148 datach, przeno¶ne wrappery do wielu funkcji zale¿nych od systemu
149 operacyjnego pozwalaj±ce na zbudowanie tego samego programu w ró¿nych
150 ¶rodowiskach, klasê wxThread do pisania programów wielow±tkowych
151 u¿ywaj±cych w±tków Win32 albo POSIX i inne. wxBase obs³uguje
152 platformy: Win32, Unix i BeOS.
154 %package -n wxBase-devel
155 Summary: wxBase headers needed for developping with wxBase
156 Summary(pl): Pliki nag³ówkowe do wxBase
157 Group: X11/Development/Libraries
158 Requires: %{name}-devel = %{version}-%{release}
159 Requires: wxBase = %{version}-%{release}
161 %description -n wxBase-devel
162 Header files for wxBase. You need them to develop programs using
165 %description -n wxBase-devel -l pl
166 Pliki nag³ówkowe do biblioteki wxBase.
168 %package -n wxBase-unicode
169 Summary: wxBase library - non-GUI support classes of wxWidgets toolkit with UNICODE support
170 Summary(pl): wxBase - biblioteka klas wxWidgets nie zwi±zanych z GUI ze wsparciem dla UNICODE
172 Requires: %{name} = %{version}-%{release}
174 %description -n wxBase-unicode
175 wxBase is a collection of C++ classes providing basic data structures
176 (strings, lists, arrays), powerful wxDateTime class for date
177 manipulations, portable wrappers around many OS-specific functions
178 allowing to build the same program under all supported folders,
179 wxThread class for writing multithreaded programs using either Win32
180 or POSIX threads and much more. wxBase currently supports the
181 following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris,
182 HP-UX, ...) and BeOS. This version is build with UNICODE support.
184 %description -n wxBase-unicode -l pl
185 wxBase jest zestawem klas C++ obs³uguj±cych podstawowe struktury
186 danych (stringi, listy, tablice), klasê wxDateTime do operacji na
187 datach, przeno¶ne wrappery do wielu funkcji zale¿nych od systemu
188 operacyjnego pozwalaj±ce na zbudowanie tego samego programu w ró¿nych
189 ¶rodowiskach, klasê wxThread do pisania programów wielow±tkowych
190 u¿ywaj±cych w±tków Win32 albo POSIX i inne. wxBase obs³uguje
191 platformy: Win32, Unix i BeOS. Ta wersja jest zbudowana z obs³ug±
194 %package -n wxBase-unicode-devel
195 Summary: wxBase headers needed for developping with UNICODE-enabled wxBase
196 Summary(pl): Pliki nag³ówkowe do wxBase z obs³ug± UNICODE
197 Group: X11/Development/Libraries
198 Requires: %{name}-devel = %{version}-%{release}
199 Requires: wxBase-unicode = %{version}-%{release}
201 %description -n wxBase-unicode-devel
202 Header files for wxBase. You need them to develop programs using
203 UNICODE-enabled wxBase.
205 %description -n wxBase-unicode-devel -l pl
206 Pliki nag³ówkowe do biblioteki wxBase z obs³ug± UNICODE.
209 Summary: wxGTK2 library
210 Summary(pl): Biblioteka wxGTK2
212 Requires: %{name} = %{version}-%{release}
213 Obsoletes: wxGTK2-univ
215 %description -n wxGTK2
216 wxWidgets library using GTK2 widgets.
218 %description -n wxGTK2 -l pl
219 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2.
221 %package -n wxGTK2-devel
222 Summary: Header files for wxGTK2 library
223 Summary(pl): Pliki nag³ówkowe biblioteki wxGTK2
224 Group: X11/Development/Libraries
225 Requires: wxBase-devel = %{version}-%{release}
226 Requires: wxGTK2 = %{version}-%{release}
227 Obsoletes: wxGTK2-univ-devel
229 %description -n wxGTK2-devel
230 Header files for wxWidgets library using GTK2 widgets.
232 %description -n wxGTK2-devel -l pl
233 Pliki nag³ówkowe dla biblioteki wxWidgets u¿ywaj±cej widgetów GTK2.
235 %package -n wxGTK2-gl
236 Summary: GL canvas library for wxGTK2
237 Summary(pl): Biblioteka GL dla wxGTK2
239 Requires: wxGTK2 = %{version}-%{release}
241 Obsoletes: wxGTK2-univ-gl
243 %description -n wxGTK2-gl
244 wxGTK2 GL canvas library.
246 %description -n wxGTK2-gl -l pl
247 Biblioteka GL dla wxGTK2.
249 %package -n wxGTK2-gl-devel
250 Summary: Development files for GL canvas library for wxGTK2
251 Summary(pl): Pliki programistyczne biblioteki GL dla wxGTK2
252 Group: X11/Development/Libraries
253 Requires: wxGTK2-devel = %{version}-%{release}
254 Requires: wxGTK2-gl = %{version}-%{release}
255 Requires: OpenGL-devel
256 Obsoletes: wxGTK2-univ-gl-devel
258 %description -n wxGTK2-gl-devel
259 Development files for wxGTK2 GL canvas library.
261 %description -n wxGTK2-gl-devel -l pl
262 Pliki programistyczne biblioteki GL dla wxGTK2.
264 %package -n wxGTK2-unicode
265 Summary: wxGTK2 library with UNICODE support
266 Summary(pl): Biblioteka wxGTK2 z obs³ug± UNICODE
268 Requires: %{name} = %{version}-%{release}
269 Obsoletes: wxGTK2-univ-unicode
271 %description -n wxGTK2-unicode
272 wxWidgets library using GTK2 widgets with UNICODE support.
274 %description -n wxGTK2-unicode -l pl
275 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2 z obs³ug± UNICODE.
277 %package -n wxGTK2-unicode-devel
278 Summary: Header files for wxGTK2 library with UNICODE support
279 Summary(pl): Pliki nag³ówkowe biblioteki wxGTK2 z obs³ug± UNICODE
280 Group: X11/Development/Libraries
281 Requires: wxBase-unicode-devel = %{version}-%{release}
282 Requires: wxGTK2-unicode = %{version}-%{release}
283 Obsoletes: wxGTK2-univ-unicode-devel
285 %description -n wxGTK2-unicode-devel
286 Header files for wxWidgets library using GTK2 widgets with UNICODE
289 %description -n wxGTK2-unicode-devel -l pl
290 Pliki nag³ówkowe biblioteki wxWidgets u¿ywaj±cej widgetów GTK2 z
293 %package -n wxGTK2-unicode-gl
294 Summary: GL canvas library for wxGTK2 with UNICODE support
295 Summary(pl): Biblioteka GL dla wxGTK2 z obs³ug± UNICODE
297 Requires: wxGTK2-unicode = %{version}-%{release}
299 Obsoletes: wxGTK2-univ-unicode-gl
301 %description -n wxGTK2-unicode-gl
302 GL canvas library for wxGTK2 with UNICODE support.
304 %description -n wxGTK2-unicode-gl -l pl
305 Biblioteka GL dla wxGTK2 z obs³ug± UNICODE.
307 %package -n wxGTK2-unicode-gl-devel
308 Summary: Development files for GL canvas library for wxGTK2 with UNICODE support
309 Summary(pl): Pliki programistyczne biblioteki GL dla wxGTK2 z obs³ug± UNICODE
310 Group: X11/Development/Libraries
311 Requires: wxGTK2-unicode-devel = %{version}-%{release}
312 Requires: wxGTK2-unicode-gl = %{version}-%{release}
313 Requires: OpenGL-devel
314 Obsoletes: wxGTK2-univ-unicode-gl-devel
316 %description -n wxGTK2-unicode-gl-devel
317 Development files for GL canvas library for wxGTK2 with UNICODE
320 %description -n wxGTK2-unicode-gl-devel -l pl
321 Pliki programistyczne biblioteki GL dla wxGTK2 z obs³ug± UNICODE.
324 Summary: Misc utils from wxWidgets project
325 Summary(pl): Ró¿ne narzêdzia z projektu wxWidgets
326 Group: X11/Development/Tools
327 Requires: wxX11 = %{version}-%{release}
328 Obsoletes: wxWindows-utils
331 Misc utils from wxWidgets project: helpviewer, makegen, etc.
333 %description utils -l pl
334 Ró¿ne narzêdzia z projektu wxWidgets: helpviewer, makegen itp.
337 Summary: wxUniversal-based wxX11 library
338 Summary(pl): Oparta na wxUniversal biblioteka wxX11
340 Requires: %{name} = %{version}-%{release}
341 Obsoletes: wxX11-univ
343 %description -n wxX11
344 wxUniversal-based wxX11 library.
346 %description -n wxX11 -l pl
347 Oparta na wxUniversal biblioteka wxX11.
349 %package -n wxX11-devel
350 Summary: Header files for wxUniversal-based wxX11 library
351 Summary(pl): Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11
353 Requires: %{name}-devel = %{version}-%{release}
354 Requires: wxX11 = %{version}-%{release}
355 Obsoletes: wxX11-univ-devel
357 %description -n wxX11-devel
358 Header files for wxUniversal-based wxX11 library.
360 %description -n wxX11-devel -l pl
361 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11.
364 Summary: GL canvas library for wxUniversal-based wxX11
365 Summary(pl): Biblioteka GL dla opartej na wxUniversal wxX11
367 Requires: wxX11 = %{version}-%{release}
369 Obsoletes: wxX11-univ-gl
371 %description -n wxX11-gl
372 GL canvas library for wxUniversal-based wxX11.
374 %description -n wxX11-gl -l pl
375 Biblioteka GL dla opartej na wxUniversal wxX11.
377 %package -n wxX11-gl-devel
378 Summary: Development files for GL canvas library for wxUniversal-based wxX11
379 Summary(pl): Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11
380 Group: X11/Development/Libraries
381 Requires: wxX11-gl = %{version}-%{release}
382 Requires: wxX11-devel = %{version}-%{release}
383 Requires: OpenGL-devel
384 Obsoletes: wxX11-univ-gl-devel
386 %description -n wxX11-gl-devel
387 Development files for GL canvas library for wxUniversal-based wxX11.
389 %description -n wxX11-gl-devel -l pl
390 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11.
392 %package -n wxX11-unicode
393 Summary: wxUniversal-based wxX11 library with UNICODE support
394 Summary(pl): Oparta na wxUniversal biblioteka wxX11 z obs³ug± UNICODE
396 Requires: %{name} = %{version}-%{release}
397 Obsoletes: wxX11-univ-unicode
399 %description -n wxX11-unicode
400 wxUniversal-based wxX11 library with UNICODE support.
402 %description -n wxX11-unicode -l pl
403 Oparta na wxUniversal biblioteka wxX11 z obs³ug± UNICODE.
405 %package -n wxX11-unicode-devel
406 Summary: Header files for wxUniversal-based wxX11 library with UNICODE support
407 Summary(pl): Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11 z obs³ug± UNICODE
408 Group: X11/Development/Libraries
409 Requires: %{name}-devel = %{version}-%{release}
410 Requires: wxX11-unicode = %{version}-%{release}
411 Obsoletes: wxX11-univ-unicode-devel
413 %description -n wxX11-unicode-devel
414 Header files for wxUniversal-based wxX11 library with UNICODE support.
416 %description -n wxX11-unicode-devel -l pl
417 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11 z obs³ug± UNICODE.
419 %package -n wxX11-unicode-gl
420 Summary: GL canvas library for wxUniversal-based wxX11 with UNICODE support
421 Summary(pl): Biblioteka GL dla opartej na wxUniversal wxX11 z obs³ug± UNICODE
423 Requires: wxX11-unicode = %{version}-%{release}
425 Obsoletes: wxX11-univ-unicode-gl
427 %description -n wxX11-unicode-gl
428 GL canvas library for wxUniversal-based wxX11 with UNICODE support.
430 %description -n wxX11-unicode-gl -l pl
431 Biblioteka GL dla opartej na wxUniversal wxX11 z obs³ug± UNICODE.
433 %package -n wxX11-unicode-gl-devel
434 Summary: Development files for GL canvas library for wxX11 with UNICODE support
435 Summary(pl): Pliki programistyczne biblioteki GL dla wxX11 z obs³ug± UNICODE
436 Group: X11/Development/Libraries
437 Requires: wxX11-unicode-gl = %{version}-%{release}
438 Requires: wxX11-unicode-devel = %{version}-%{release}
439 Requires: OpenGL-devel
440 Obsoletes: wxX11-univ-unicode-gl-devel
442 %description -n wxX11-unicode-gl-devel
443 Development files for GL canvas library for wxUniversal-based wxX11
444 with UNICODE support.
446 %description -n wxX11-unicode-gl-devel -l pl
447 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11 z
457 echo 'AC_DEFUN([AM_PATH_GTK],[:])' > fake-am_path_gtk.m4
459 # bakefile.m4 from 0.1.8
460 tail -n +1481 aclocal.m4 | head -n 1396 > bakefile.m4
461 # AC_BAKEFILE_PROG_* macros
462 tail -n +684 aclocal.m4 | head -n 142 >> bakefile.m4
465 # if bakefiles rebuild is needed:
466 #%if "%(rpm -q bakefile --qf '%%{VERSION}')" != "0.1.8"
468 #bakefile_gen -f autoconf
471 cp -f /usr/share/automake/config.sub .
475 CPPFLAGS="%{rpmcflags} -I`pwd`/include -I/usr/X11R6/include"; export CPPFLAGS
476 # avoid adding -s to LDFLAGS
477 LDFLAGS=" "; export LDFLAGS
478 args="%{?with_debug:--enable-debug}%{!?with_debug:--disable-debug} \
480 --enable-std_iostreams \
488 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
489 '--enable-unicode' ; do
490 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
496 --disable-universal \
499 %{__make} -C contrib/src
505 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
506 '--enable-unicode' ; do
507 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
516 %{__make} -C contrib/src
517 if echo $objdir| grep -q disable-unicode ; then
519 %{__make} -C utils/emulator
520 %{__make} -C utils/hhp2cached
521 %{__make} -C contrib/utils
531 rm -rf $RPM_BUILD_ROOT
532 install -d $RPM_BUILD_ROOT%{_bindir}
535 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
536 '--enable-unicode' ; do
537 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
540 prefix=$RPM_BUILD_ROOT%{_prefix} \
541 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
542 bindir=$RPM_BUILD_ROOT%{_bindir} \
543 datadir=$RPM_BUILD_ROOT%{_datadir} \
544 libdir=$RPM_BUILD_ROOT%{_libdir} \
545 mandir=$RPM_BUILD_ROOT%{_mandir} \
546 includedir=$RPM_BUILD_ROOT%{_includedir}
548 %{__make} -C contrib/src install \
549 prefix=$RPM_BUILD_ROOT%{_prefix} \
550 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
551 bindir=$RPM_BUILD_ROOT%{_bindir} \
552 datadir=$RPM_BUILD_ROOT%{_datadir} \
553 libdir=$RPM_BUILD_ROOT%{_libdir} \
554 mandir=$RPM_BUILD_ROOT%{_mandir} \
555 includedir=$RPM_BUILD_ROOT%{_includedir}
561 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
562 '--enable-unicode' ; do
563 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
566 prefix=$RPM_BUILD_ROOT%{_prefix} \
567 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
568 bindir=$RPM_BUILD_ROOT%{_bindir} \
569 datadir=$RPM_BUILD_ROOT%{_datadir} \
570 libdir=$RPM_BUILD_ROOT%{_libdir} \
571 mandir=$RPM_BUILD_ROOT%{_mandir} \
572 includedir=$RPM_BUILD_ROOT%{_includedir}
573 if echo $objdir| grep -q disable-unicode ; then
574 # install utils/dialoged/src/DialogEd $RPM_BUILD_ROOT%{_bindir}
575 # TODO: install default config files and default backgrouds
576 install utils/HelpGen/src/HelpGen $RPM_BUILD_ROOT%{_bindir}
577 install utils/emulator/src/wxemulator $RPM_BUILD_ROOT%{_bindir}
578 install utils/tex2rtf/src/tex2rtf $RPM_BUILD_ROOT%{_bindir}
579 install utils/hhp2cached/hhp2cached $RPM_BUILD_ROOT%{_bindir}
580 # install utils/makegen/makegen $RPM_BUILD_ROOT%{_bindir}
581 install utils/wxrc/wxrc $RPM_BUILD_ROOT%{_bindir}
582 # install -d $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
583 # install -m644 utils/makegen/templates/* \
584 # $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
585 # install contrib/utils/wxrcedit/wxrcedit $RPM_BUILD_ROOT%{_bindir}
586 # install -d $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit
587 # install contrib/utils/wxrcedit/df/* \
588 # $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit/
591 %{__make} -C contrib/src install \
592 prefix=$RPM_BUILD_ROOT%{_prefix} \
593 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
594 bindir=$RPM_BUILD_ROOT%{_bindir} \
595 datadir=$RPM_BUILD_ROOT%{_datadir} \
596 libdir=$RPM_BUILD_ROOT%{_libdir} \
597 mandir=$RPM_BUILD_ROOT%{_mandir} \
598 includedir=$RPM_BUILD_ROOT%{_includedir}
606 for i in $RPM_BUILD_ROOT%{_libdir}/wx/config/*
609 cp $i $RPM_BUILD_ROOT%{_bindir}/wx-`echo $b|sed -e 's/\(.*\)-release-.*/\1/'`-config
612 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
613 cp -a demos samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
614 cp -f docs/x11/readme.txt docs/wxX11-readme.txt
619 rm -rf $RPM_BUILD_ROOT
621 %post -n wxBase -p /sbin/ldconfig
622 %postun -n wxBase -p /sbin/ldconfig
624 %post -n wxBase-unicode -p /sbin/ldconfig
625 %postun -n wxBase-unicode -p /sbin/ldconfig
627 %post -n wxGTK2 -p /sbin/ldconfig
628 %postun -n wxGTK2 -p /sbin/ldconfig
630 %post -n wxGTK2-gl -p /sbin/ldconfig
631 %postun -n wxGTK2-gl -p /sbin/ldconfig
633 %post -n wxGTK2-unicode -p /sbin/ldconfig
634 %postun -n wxGTK2-unicode -p /sbin/ldconfig
636 %post -n wxGTK2-unicode-gl -p /sbin/ldconfig
637 %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig
639 %post -n wxX11 -p /sbin/ldconfig
640 %postun -n wxX11 -p /sbin/ldconfig
642 %post -n wxX11-unicode -p /sbin/ldconfig
643 %postun -n wxX11-unicode -p /sbin/ldconfig
646 %defattr(644,root,root,755)
647 %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt
650 %defattr(644,root,root,755)
652 %doc docs/tech docs/univ
655 %dir %{_libdir}/wx/include
656 %dir %{_libdir}/wx/config
660 %defattr(644,root,root,755)
661 %{_examplesdir}/%{name}-%{version}
665 %defattr(644,root,root,755)
666 %attr(755,root,root) %{_bindir}/HelpGen
671 %defattr(644,root,root,755)
672 %attr(755,root,root) %{_libdir}/libwx_base-*.so.*.*
673 %attr(755,root,root) %{_libdir}/libwx_base_*.so.*.*
674 #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdl-*.so
676 %files -n wxBase-devel
677 %defattr(644,root,root,755)
678 %{_libdir}/libwx_base-*.so
679 %{_libdir}/libwx_base_*.so
682 %files -n wxBase-unicode
683 %defattr(644,root,root,755)
684 %attr(755,root,root) %{_libdir}/libwx_baseu-*.so.*.*
685 %attr(755,root,root) %{_libdir}/libwx_baseu_*.so.*.*
686 #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdlu-*.so
688 %files -n wxBase-unicode-devel
689 %defattr(644,root,root,755)
690 %{_libdir}/libwx_baseu-*.so
691 %{_libdir}/libwx_baseu_*.so
695 %defattr(644,root,root,755)
696 %attr(755,root,root) %{_libdir}/libwx_gtk2_*.so.*.*
697 %exclude %{_libdir}/libwx_gtk2_ogl-*.so.*.*
699 %files -n wxGTK2-devel
700 %defattr(644,root,root,755)
701 %{_libdir}/libwx_gtk2_*-*.so
702 %exclude %{_libdir}/libwx_gtk2_ogl-*.so
703 %{_libdir}/wx/config/gtk2-ansi-*
704 %{_libdir}/wx/include/gtk2-ansi-*
705 %attr(755,root,root) %{_bindir}/wx-gtk2-ansi-config
708 %defattr(644,root,root,755)
709 %attr(755,root,root) %{_libdir}/libwx_gtk2_ogl-*.so.*.*
711 %files -n wxGTK2-gl-devel
712 %defattr(644,root,root,755)
713 %{_libdir}/libwx_gtk2_ogl-*.so
716 %files -n wxGTK2-unicode
717 %defattr(644,root,root,755)
718 %attr(755,root,root) %{_libdir}/libwx_gtk2u_*-*.so.*.*
719 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
721 %files -n wxGTK2-unicode-devel
722 %defattr(644,root,root,755)
723 %{_libdir}/libwx_gtk2u_*-*.so
724 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so
725 %{_libdir}/wx/config/gtk2-unicode-*
726 %{_libdir}/wx/include/gtk2-unicode-*
727 %attr(755,root,root) %{_bindir}/wx-gtk2-unicode-config
729 %files -n wxGTK2-unicode-gl
730 %defattr(644,root,root,755)
731 %attr(755,root,root) %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
733 %files -n wxGTK2-unicode-gl-devel
734 %defattr(644,root,root,755)
735 %{_libdir}/libwx_gtk2u_ogl-*.so
740 %defattr(644,root,root,755)
741 %attr(755,root,root) %{_bindir}/*
742 %exclude %{_bindir}/HelpGen
743 %exclude %{_bindir}/wx*-config
746 %defattr(644,root,root,755)
747 %doc docs/wxX11-readme.txt
748 %attr(755,root,root) %{_libdir}/libwx_x11univ_*-*.so.*.*
749 %exclude %{_libdir}/libwx_x11univ_ogl-*.so.*.*
751 %files -n wxX11-devel
752 %defattr(644,root,root,755)
753 %{_libdir}/libwx_x11univ_*-*.so
754 %exclude %{_libdir}/libwx_x11univ_ogl-*.so
755 %{_libdir}/wx/config/x11univ-ansi-*
756 %{_libdir}/wx/include/x11univ-ansi-*
757 %attr(755,root,root) %{_bindir}/wx-x11univ-ansi-config
760 %defattr(644,root,root,755)
761 %attr(755,root,root) %{_libdir}/libwx_x11univ_ogl-*.so.*.*
763 %files -n wxX11-gl-devel
764 %defattr(644,root,root,755)
765 %{_libdir}/libwx_x11univ_ogl-*.so
768 %files -n wxX11-unicode
769 %defattr(644,root,root,755)
770 %attr(755,root,root) %{_libdir}/libwx_x11univu_*-*.so.*.*
771 %exclude %{_libdir}/libwx_x11univu_ogl-*.so.*.*
773 %files -n wxX11-unicode-devel
774 %defattr(644,root,root,755)
775 %{_libdir}/libwx_x11univu_*-*.so
776 %exclude %{_libdir}/libwx_x11univu_ogl-*.so
777 %{_libdir}/wx/config/x11univ-unicode-*
778 %{_libdir}/wx/include/x11univ-unicode-*
779 %attr(755,root,root) %{_bindir}/wx-x11univ-unicode-config
781 %files -n wxX11-unicode-gl
782 %defattr(644,root,root,755)
783 %attr(755,root,root) %{_libdir}/libwx_x11univu_ogl-*.so.*.*
785 %files -n wxX11-unicode-gl-devel
786 %defattr(644,root,root,755)
787 %{_libdir}/libwx_x11univu_ogl-*.so