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.bz2
17 # Source0-md5: 045f0edad0988620a4aa36096bb16e28
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 # bakefile.m4 from 0.1.8
458 tail -n +1518 aclocal.m4 | head -n 1397 > bakefile.m4
459 # AC_BAKEFILE_PROG_* macros
460 tail -n +721 aclocal.m4 | head -n 142 >> bakefile.m4
463 # if bakefiles rebuild is needed:
464 #%if "%(rpm -q bakefile --qf '%%{VERSION}')" != "0.1.8"
466 #bakefile_gen -f autoconf
469 cp -f /usr/share/automake/config.sub .
473 CPPFLAGS="%{rpmcflags} -I`pwd`/include -I/usr/X11R6/include"; export CPPFLAGS
474 # avoid adding -s to LDFLAGS
475 LDFLAGS=" "; export LDFLAGS
476 args="%{?with_debug:--enable-debug}%{!?with_debug:--disable-debug} \
478 --enable-std_iostreams \
486 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
487 '--enable-unicode' ; do
488 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
494 --disable-universal \
497 %{__make} -C contrib/src
503 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
504 '--enable-unicode' ; do
505 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
514 %{__make} -C contrib/src
515 if echo $objdir| grep -q disable-unicode ; then
517 %{__make} -C utils/emulator
518 %{__make} -C utils/hhp2cached
519 %{__make} -C contrib/utils
529 rm -rf $RPM_BUILD_ROOT
530 install -d $RPM_BUILD_ROOT%{_bindir}
533 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
534 '--enable-unicode' ; do
535 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
538 prefix=$RPM_BUILD_ROOT%{_prefix} \
539 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
540 bindir=$RPM_BUILD_ROOT%{_bindir} \
541 datadir=$RPM_BUILD_ROOT%{_datadir} \
542 libdir=$RPM_BUILD_ROOT%{_libdir} \
543 mandir=$RPM_BUILD_ROOT%{_mandir} \
544 includedir=$RPM_BUILD_ROOT%{_includedir}
546 %{__make} -C contrib/src install \
547 prefix=$RPM_BUILD_ROOT%{_prefix} \
548 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
549 bindir=$RPM_BUILD_ROOT%{_bindir} \
550 datadir=$RPM_BUILD_ROOT%{_datadir} \
551 libdir=$RPM_BUILD_ROOT%{_libdir} \
552 mandir=$RPM_BUILD_ROOT%{_mandir} \
553 includedir=$RPM_BUILD_ROOT%{_includedir}
559 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
560 '--enable-unicode' ; do
561 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
564 prefix=$RPM_BUILD_ROOT%{_prefix} \
565 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
566 bindir=$RPM_BUILD_ROOT%{_bindir} \
567 datadir=$RPM_BUILD_ROOT%{_datadir} \
568 libdir=$RPM_BUILD_ROOT%{_libdir} \
569 mandir=$RPM_BUILD_ROOT%{_mandir} \
570 includedir=$RPM_BUILD_ROOT%{_includedir}
571 if echo $objdir| grep -q disable-unicode ; then
572 # install utils/dialoged/src/DialogEd $RPM_BUILD_ROOT%{_bindir}
573 # TODO: install default config files and default backgrouds
574 install utils/HelpGen/src/HelpGen $RPM_BUILD_ROOT%{_bindir}
575 install utils/emulator/src/wxemulator $RPM_BUILD_ROOT%{_bindir}
576 install utils/tex2rtf/src/tex2rtf $RPM_BUILD_ROOT%{_bindir}
577 install utils/hhp2cached/hhp2cached $RPM_BUILD_ROOT%{_bindir}
578 # install utils/makegen/makegen $RPM_BUILD_ROOT%{_bindir}
579 install utils/wxrc/wxrc $RPM_BUILD_ROOT%{_bindir}
580 # install -d $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
581 # install -m644 utils/makegen/templates/* \
582 # $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
583 # install contrib/utils/wxrcedit/wxrcedit $RPM_BUILD_ROOT%{_bindir}
584 # install -d $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit
585 # install contrib/utils/wxrcedit/df/* \
586 # $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit/
589 %{__make} -C contrib/src install \
590 prefix=$RPM_BUILD_ROOT%{_prefix} \
591 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
592 bindir=$RPM_BUILD_ROOT%{_bindir} \
593 datadir=$RPM_BUILD_ROOT%{_datadir} \
594 libdir=$RPM_BUILD_ROOT%{_libdir} \
595 mandir=$RPM_BUILD_ROOT%{_mandir} \
596 includedir=$RPM_BUILD_ROOT%{_includedir}
604 for i in $RPM_BUILD_ROOT%{_libdir}/wx/config/*
607 cp $i $RPM_BUILD_ROOT%{_bindir}/wx-`echo $b|sed -e 's/\(.*\)-release-.*/\1/'`-config
610 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
611 cp -a demos samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
612 cp -f docs/x11/readme.txt docs/wxX11-readme.txt
617 rm -rf $RPM_BUILD_ROOT
619 %post -n wxBase -p /sbin/ldconfig
620 %postun -n wxBase -p /sbin/ldconfig
622 %post -n wxBase-unicode -p /sbin/ldconfig
623 %postun -n wxBase-unicode -p /sbin/ldconfig
625 %post -n wxGTK2 -p /sbin/ldconfig
626 %postun -n wxGTK2 -p /sbin/ldconfig
628 %post -n wxGTK2-gl -p /sbin/ldconfig
629 %postun -n wxGTK2-gl -p /sbin/ldconfig
631 %post -n wxGTK2-unicode -p /sbin/ldconfig
632 %postun -n wxGTK2-unicode -p /sbin/ldconfig
634 %post -n wxGTK2-unicode-gl -p /sbin/ldconfig
635 %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig
637 %post -n wxX11 -p /sbin/ldconfig
638 %postun -n wxX11 -p /sbin/ldconfig
640 %post -n wxX11-unicode -p /sbin/ldconfig
641 %postun -n wxX11-unicode -p /sbin/ldconfig
644 %defattr(644,root,root,755)
645 %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt
648 %defattr(644,root,root,755)
650 %doc docs/tech docs/univ
653 %dir %{_libdir}/wx/include
654 %dir %{_libdir}/wx/config
658 %defattr(644,root,root,755)
659 %{_examplesdir}/%{name}-%{version}
663 %defattr(644,root,root,755)
664 %attr(755,root,root) %{_bindir}/HelpGen
669 %defattr(644,root,root,755)
670 %attr(755,root,root) %{_libdir}/libwx_base-*.so.*.*
671 %attr(755,root,root) %{_libdir}/libwx_base_*.so.*.*
672 #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdl-*.so
674 %files -n wxBase-devel
675 %defattr(644,root,root,755)
676 %{_libdir}/libwx_base-*.so
677 %{_libdir}/libwx_base_*.so
680 %files -n wxBase-unicode
681 %defattr(644,root,root,755)
682 %attr(755,root,root) %{_libdir}/libwx_baseu-*.so.*.*
683 %attr(755,root,root) %{_libdir}/libwx_baseu_*.so.*.*
684 #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdlu-*.so
686 %files -n wxBase-unicode-devel
687 %defattr(644,root,root,755)
688 %{_libdir}/libwx_baseu-*.so
689 %{_libdir}/libwx_baseu_*.so
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_libdir}/libwx_gtk2_*.so.*.*
695 %exclude %{_libdir}/libwx_gtk2_ogl-*.so.*.*
697 %files -n wxGTK2-devel
698 %defattr(644,root,root,755)
699 %{_libdir}/libwx_gtk2_*-*.so
700 %exclude %{_libdir}/libwx_gtk2_ogl-*.so
701 %{_libdir}/wx/config/gtk2-ansi-*
702 %{_libdir}/wx/include/gtk2-ansi-*
703 %attr(755,root,root) %{_bindir}/wx-gtk2-ansi-config
706 %defattr(644,root,root,755)
707 %attr(755,root,root) %{_libdir}/libwx_gtk2_ogl-*.so.*.*
709 %files -n wxGTK2-gl-devel
710 %defattr(644,root,root,755)
711 %{_libdir}/libwx_gtk2_ogl-*.so
714 %files -n wxGTK2-unicode
715 %defattr(644,root,root,755)
716 %attr(755,root,root) %{_libdir}/libwx_gtk2u_*-*.so.*.*
717 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
719 %files -n wxGTK2-unicode-devel
720 %defattr(644,root,root,755)
721 %{_libdir}/libwx_gtk2u_*-*.so
722 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so
723 %{_libdir}/wx/config/gtk2-unicode-*
724 %{_libdir}/wx/include/gtk2-unicode-*
725 %attr(755,root,root) %{_bindir}/wx-gtk2-unicode-config
727 %files -n wxGTK2-unicode-gl
728 %defattr(644,root,root,755)
729 %attr(755,root,root) %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
731 %files -n wxGTK2-unicode-gl-devel
732 %defattr(644,root,root,755)
733 %{_libdir}/libwx_gtk2u_ogl-*.so
738 %defattr(644,root,root,755)
739 %attr(755,root,root) %{_bindir}/*
740 %exclude %{_bindir}/HelpGen
741 %exclude %{_bindir}/wx*-config
744 %defattr(644,root,root,755)
745 %doc docs/wxX11-readme.txt
746 %attr(755,root,root) %{_libdir}/libwx_x11univ_*-*.so.*.*
747 %exclude %{_libdir}/libwx_x11univ_ogl-*.so.*.*
749 %files -n wxX11-devel
750 %defattr(644,root,root,755)
751 %{_libdir}/libwx_x11univ_*-*.so
752 %exclude %{_libdir}/libwx_x11univ_ogl-*.so
753 %{_libdir}/wx/config/x11univ-ansi-*
754 %{_libdir}/wx/include/x11univ-ansi-*
755 %attr(755,root,root) %{_bindir}/wx-x11univ-ansi-config
758 %defattr(644,root,root,755)
759 %attr(755,root,root) %{_libdir}/libwx_x11univ_ogl-*.so.*.*
761 %files -n wxX11-gl-devel
762 %defattr(644,root,root,755)
763 %{_libdir}/libwx_x11univ_ogl-*.so
766 %files -n wxX11-unicode
767 %defattr(644,root,root,755)
768 %attr(755,root,root) %{_libdir}/libwx_x11univu_*-*.so.*.*
769 %exclude %{_libdir}/libwx_x11univu_ogl-*.so.*.*
771 %files -n wxX11-unicode-devel
772 %defattr(644,root,root,755)
773 %{_libdir}/libwx_x11univu_*-*.so
774 %exclude %{_libdir}/libwx_x11univu_ogl-*.so
775 %{_libdir}/wx/config/x11univ-unicode-*
776 %{_libdir}/wx/include/x11univ-unicode-*
777 %attr(755,root,root) %{_bindir}/wx-x11univ-unicode-config
779 %files -n wxX11-unicode-gl
780 %defattr(644,root,root,755)
781 %attr(755,root,root) %{_libdir}/libwx_x11univu_ogl-*.so.*.*
783 %files -n wxX11-unicode-gl-devel
784 %defattr(644,root,root,755)
785 %{_libdir}/libwx_x11univu_ogl-*.so