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
473 cat > fake-am_path_gtk.m4<<EOF
474 AC_DEFUN([AM_PATH_GTK],
479 cp /usr/share/automake/config.sub .
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} \
488 --enable-std_iostreams \
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'`
504 --disable-universal \
507 %{__make} -C contrib/src
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'`
524 %{__make} -C contrib/src
525 if echo $objdir| grep -q disable-unicode ; then
527 %{__make} -C utils/emulator
528 %{__make} -C utils/hhp2cached
529 %{__make} -C contrib/utils
539 rm -rf $RPM_BUILD_ROOT
540 install -d $RPM_BUILD_ROOT%{_bindir}
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'`
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}
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}
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'`
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/
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}
614 for i in $RPM_BUILD_ROOT%{_libdir}/wx/config/*
617 cp $i $RPM_BUILD_ROOT%{_bindir}/wx-`echo $b|sed -e 's/\(.*\)-release-.*/\1/'`-config
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
627 rm -rf $RPM_BUILD_ROOT
629 %post -n wxBase -p /sbin/ldconfig
630 %postun -n wxBase -p /sbin/ldconfig
632 %post -n wxBase-unicode -p /sbin/ldconfig
633 %postun -n wxBase-unicode -p /sbin/ldconfig
635 %post -n wxGTK2 -p /sbin/ldconfig
636 %postun -n wxGTK2 -p /sbin/ldconfig
638 %post -n wxGTK2-gl -p /sbin/ldconfig
639 %postun -n wxGTK2-gl -p /sbin/ldconfig
641 %post -n wxGTK2-unicode -p /sbin/ldconfig
642 %postun -n wxGTK2-unicode -p /sbin/ldconfig
644 %post -n wxGTK2-unicode-gl -p /sbin/ldconfig
645 %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig
647 %post -n wxX11 -p /sbin/ldconfig
648 %postun -n wxX11 -p /sbin/ldconfig
650 %post -n wxX11-unicode -p /sbin/ldconfig
651 %postun -n wxX11-unicode -p /sbin/ldconfig
654 %defattr(644,root,root,755)
655 %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt
657 %dir %{_datadir}/wx/2.5
659 %files -n wxWidgets-afm
660 %defattr(644,root,root,755)
661 %{_datadir}/wx/2.5/afm
662 %{_datadir}/wx/2.5/gs_afm
665 %defattr(644,root,root,755)
667 %doc docs/tech docs/univ
670 %dir %{_libdir}/wx/include
671 %dir %{_libdir}/wx/config
675 %defattr(644,root,root,755)
676 %{_examplesdir}/%{name}-%{version}
680 %defattr(644,root,root,755)
681 %attr(755,root,root) %{_bindir}/HelpGen
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
691 %files -n wxBase-devel
692 %defattr(644,root,root,755)
693 %{_libdir}/libwx_base-*.so
694 %{_libdir}/libwx_base_*.so
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
703 %files -n wxBase-unicode-devel
704 %defattr(644,root,root,755)
705 %{_libdir}/libwx_baseu-*.so
706 %{_libdir}/libwx_baseu_*.so
710 %defattr(644,root,root,755)
711 %attr(755,root,root) %{_libdir}/libwx_gtk2_*.so.*.*
712 %exclude %{_libdir}/libwx_gtk2_ogl-*.so.*.*
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
723 %defattr(644,root,root,755)
724 %attr(755,root,root) %{_libdir}/libwx_gtk2_ogl-*.so.*.*
726 %files -n wxGTK2-gl-devel
727 %defattr(644,root,root,755)
728 %{_libdir}/libwx_gtk2_ogl-*.so
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.*.*
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
744 %files -n wxGTK2-unicode-gl
745 %defattr(644,root,root,755)
746 %attr(755,root,root) %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
748 %files -n wxGTK2-unicode-gl-devel
749 %defattr(644,root,root,755)
750 %{_libdir}/libwx_gtk2u_ogl-*.so
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
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.*.*
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
777 %defattr(644,root,root,755)
778 %attr(755,root,root) %{_libdir}/libwx_x11univ_ogl-*.so.*.*
780 %files -n wxX11-gl-devel
781 %defattr(644,root,root,755)
782 %{_libdir}/libwx_x11univ_ogl-*.so
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.*.*
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
798 %files -n wxX11-unicode-gl
799 %defattr(644,root,root,755)
800 %attr(755,root,root) %{_libdir}/libwx_x11univu_ogl-*.so.*.*
802 %files -n wxX11-unicode-gl-devel
803 %defattr(644,root,root,755)
804 %{_libdir}/libwx_x11univu_ogl-*.so