3 %bcond_without ansi # only unicode packages
4 %bcond_without odbc # without ODBC support
5 %bcond_with x11 # with wxX11 packages (broken)
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}-utils.patch
20 Patch2: %{name}-ogl.patch
21 Patch3: %{name}-ac.patch
22 Patch4: %{name}-gif0delay.patch
23 URL: http://www.wxWidgets.org/
24 BuildRequires: OpenGL-devel
25 BuildRequires: SDL-devel
26 BuildRequires: autoconf >= 2.58
27 BuildRequires: automake
28 BuildRequires: bakefile >= 0.1.7
29 BuildRequires: cppunit-devel
30 BuildRequires: esound-devel
31 BuildRequires: expat-devel
33 BuildRequires: gettext-devel
34 BuildRequires: gtk+2-devel
35 BuildRequires: libjpeg-devel
36 BuildRequires: libmng-devel
37 BuildRequires: libpng-devel
38 BuildRequires: libstdc++-devel
39 BuildRequires: libtiff-devel
40 BuildRequires: libtool
41 BuildRequires: pkgconfig
42 Obsoletes: wxwin-common
44 Obsoletes: wxGTK-devel
46 Obsoletes: wxGTK-gl-devel
48 Obsoletes: wxGTK-univ-devel
49 Obsoletes: wxGTK-univ-gl
50 Obsoletes: wxGTK-univ-gl-devel
51 Obsoletes: wxGTK2-univ
52 Obsoletes: wxGTK2-univ-devel
53 Obsoletes: wxGTK2-univ-gl
54 Obsoletes: wxGTK2-univ-gl-devel
55 Obsoletes: wxGTK2-univ-unicode
56 Obsoletes: wxGTK2-univ-unicode-devel
57 Obsoletes: wxGTK2-univ-unicode-gl
58 Obsoletes: wxGTK2-univ-unicode-gl-devel
60 Obsoletes: wxMotif-devel
62 Obsoletes: wxMotif-gl-devel
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 %define _sysconfdir %{_datadir}
68 %define _noautoreqdep libGL.so.1 libGLU.so.1
71 wxWidgets is a free C++ library for cross-platform GUI development.
72 With wxWidgets, you can create applications for different GUIs (GTK+,
73 Motif/LessTif, MS Windows, Mac) from the same source code.
76 wxWidgets to wolnodostêpna biblioteka napisana w C++ umo¿liwiaj±ca
77 rozwijanie wieloplatformowych programów GUI. Przy u¿yciu wxWidgets
78 mo¿na tworzyæ aplikacje dla ró¿nych GUI (GTK+, Motif/LessTif, MS
79 Windows, Mac) z tego samego kodu ¼ród³owego.
82 Summary: Font metrics common for wxGTK, wxGTK2, wxMotif i wxX11
83 Summary(pl): Metryki fontów wspólne dla wxGTK, wxGTK2, wxMotif i wxX11
85 Requires: %{name} = %{version}-%{release}
87 Obsoletes: wxWindows-afm
90 Font metrics (in AFM format) common for wxGTK, wxGTK2, wxMotif and
93 %description afm -l pl
94 Metryki fontów (w formacie AFM) wspólne dla bibliotek wxGTK, wxGTK2,
98 Summary: wxWidgets header files and development documentation
99 Summary(pl): Pliki nag³ówkowe i dokumentacja do wxWidgets
100 Group: X11/Development/Libraries
101 Requires: libstdc++-devel
102 Obsoletes: wxWindows-devel
105 Header files and development documentation for the wxWidgets
108 %description devel -l pl
109 Pliki nag³ówkowe i dokumentacja do bibliotek wxWidgets.
112 Summary: wxWidgets example programs
113 Summary(pl): Przyk³adowe programy wxWidgets
114 Group: X11/Development/Libraries
115 Requires: %{name}-devel = %{version}-%{release}
116 Obsoletes: wxWindows-examples
118 %description examples
119 wxWidgets example programs.
121 %description examples -l pl
122 Przyk³adowe programy wxWidgets.
125 Summary: Help file generator for wxWidgets programs
126 Summary(pl): Generator plików pomocy dla programów wxWidgets
127 Group: Development/Tools
128 Requires: wxBase = %{version}-%{release}
129 Obsoletes: wxWindows-HelpGen
132 Help file generator for wxWidgets programs.
134 %description HelpGen -l pl
135 Generator plików pomocy dla programów wxWidgets.
138 Summary: wxBase library - non-GUI support classes of wxWidgets toolkit
139 Summary(pl): wxBase - biblioteka klas wxWidgets nie zwi±zanych z GUI
141 Requires: %{name} = %{version}-%{release}
143 %description -n wxBase
144 wxBase is a collection of C++ classes providing basic data structures
145 (strings, lists, arrays), powerful wxDateTime class for date
146 manipulations, portable wrappers around many OS-specific functions
147 allowing to build the same program under all supported folders,
148 wxThread class for writing multithreaded programs using either Win32
149 or POSIX threads and much more. wxBase currently supports the
150 following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris,
151 HP-UX, ...) and BeOS.
153 %description -n wxBase -l pl
154 wxBase jest zestawem klas C++ obs³uguj±cych podstawowe struktury
155 danych (stringi, listy, tablice), klasê wxDateTime do operacji na
156 datach, przeno¶ne wrappery do wielu funkcji zale¿nych od systemu
157 operacyjnego pozwalaj±ce na zbudowanie tego samego programu w ró¿nych
158 ¶rodowiskach, klasê wxThread do pisania programów wielow±tkowych
159 u¿ywaj±cych w±tków Win32 albo POSIX i inne. wxBase obs³uguje
160 platformy: Win32, Unix i BeOS.
162 %package -n wxBase-devel
163 Summary: wxBase headers needed for developping with wxBase
164 Summary(pl): Pliki nag³ówkowe do wxBase
165 Group: X11/Development/Libraries
166 Requires: %{name}-devel = %{version}-%{release}
167 Requires: wxBase = %{version}-%{release}
169 %description -n wxBase-devel
170 Header files for wxBase. You need them to develop programs using
173 %description -n wxBase-devel -l pl
174 Pliki nag³ówkowe do biblioteki wxBase.
176 %package -n wxBase-unicode
177 Summary: wxBase library - non-GUI support classes of wxWidgets toolkit with UNICODE support
178 Summary(pl): wxBase - biblioteka klas wxWidgets nie zwi±zanych z GUI ze wsparciem dla UNICODE
180 Requires: %{name} = %{version}-%{release}
182 %description -n wxBase-unicode
183 wxBase is a collection of C++ classes providing basic data structures
184 (strings, lists, arrays), powerful wxDateTime class for date
185 manipulations, portable wrappers around many OS-specific functions
186 allowing to build the same program under all supported folders,
187 wxThread class for writing multithreaded programs using either Win32
188 or POSIX threads and much more. wxBase currently supports the
189 following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris,
190 HP-UX, ...) and BeOS. This version is build with UNICODE support.
192 %description -n wxBase-unicode -l pl
193 wxBase jest zestawem klas C++ obs³uguj±cych podstawowe struktury
194 danych (stringi, listy, tablice), klasê wxDateTime do operacji na
195 datach, przeno¶ne wrappery do wielu funkcji zale¿nych od systemu
196 operacyjnego pozwalaj±ce na zbudowanie tego samego programu w ró¿nych
197 ¶rodowiskach, klasê wxThread do pisania programów wielow±tkowych
198 u¿ywaj±cych w±tków Win32 albo POSIX i inne. wxBase obs³uguje
199 platformy: Win32, Unix i BeOS. Ta wersja jest zbudowana z obs³ug±
202 %package -n wxBase-unicode-devel
203 Summary: wxBase headers needed for developping with UNICODE-enabled wxBase
204 Summary(pl): Pliki nag³ówkowe do wxBase z obs³ug± UNICODE
205 Group: X11/Development/Libraries
206 Requires: %{name}-devel = %{version}-%{release}
207 Requires: wxBase-unicode = %{version}-%{release}
209 %description -n wxBase-unicode-devel
210 Header files for wxBase. You need them to develop programs using
211 UNICODE-enabled wxBase.
213 %description -n wxBase-unicode-devel -l pl
214 Pliki nag³ówkowe do biblioteki wxBase z obs³ug± UNICODE.
217 Summary: wxGTK2 library
218 Summary(pl): Biblioteka wxGTK2
220 Requires: %{name} = %{version}-%{release}
221 #Requires: %{name}-afm = %{version}-%{release}
222 Obsoletes: wxGTK2-univ
224 %description -n wxGTK2
225 wxWidgets library using GTK2 widgets.
227 %description -n wxGTK2 -l pl
228 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2.
230 %package -n wxGTK2-devel
231 Summary: Header files for wxGTK2 library
232 Summary(pl): Pliki nag³ówkowe biblioteki wxGTK2
233 Group: X11/Development/Libraries
234 Requires: wxBase-devel = %{version}-%{release}
235 Requires: wxGTK2 = %{version}-%{release}
236 Obsoletes: wxGTK2-univ-devel
238 %description -n wxGTK2-devel
239 Header files for wxWidgets library using GTK2 widgets.
241 %description -n wxGTK2-devel -l pl
242 Pliki nag³ówkowe dla biblioteki wxWidgets u¿ywaj±cej widgetów GTK2.
244 %package -n wxGTK2-gl
245 Summary: GL canvas library for wxGTK2
246 Summary(pl): Biblioteka GL dla wxGTK2
248 Requires: wxGTK2 = %{version}-%{release}
250 Obsoletes: wxGTK2-univ-gl
252 %description -n wxGTK2-gl
253 wxGTK2 GL canvas library.
255 %description -n wxGTK2-gl -l pl
256 Biblioteka GL dla wxGTK2.
258 %package -n wxGTK2-gl-devel
259 Summary: Development files for GL canvas library for wxGTK2
260 Summary(pl): Pliki programistyczne biblioteki GL dla wxGTK2
261 Group: X11/Development/Libraries
262 Requires: wxGTK2-devel = %{version}-%{release}
263 Requires: wxGTK2-gl = %{version}-%{release}
264 Requires: OpenGL-devel
265 Obsoletes: wxGTK2-univ-gl-devel
267 %description -n wxGTK2-gl-devel
268 Development files for wxGTK2 GL canvas library.
270 %description -n wxGTK2-gl-devel -l pl
271 Pliki programistyczne biblioteki GL dla wxGTK2.
273 %package -n wxGTK2-unicode
274 Summary: wxGTK2 library with UNICODE support
275 Summary(pl): Biblioteka wxGTK2 z obs³ug± UNICODE
277 Requires: %{name} = %{version}-%{release}
278 #Requires: %{name}-afm = %{version}-%{release}
279 Obsoletes: wxGTK2-univ-unicode
281 %description -n wxGTK2-unicode
282 wxWidgets library using GTK2 widgets with UNICODE support.
284 %description -n wxGTK2-unicode -l pl
285 Biblioteka wxWidgets u¿ywaj±ca widgetów GTK2 z obs³ug± UNICODE.
287 %package -n wxGTK2-unicode-devel
288 Summary: Header files for wxGTK2 library with UNICODE support
289 Summary(pl): Pliki nag³ówkowe biblioteki wxGTK2 z obs³ug± UNICODE
290 Group: X11/Development/Libraries
291 Requires: wxBase-unicode-devel = %{version}-%{release}
292 Requires: wxGTK2-unicode = %{version}-%{release}
293 Obsoletes: wxGTK2-univ-unicode-devel
295 %description -n wxGTK2-unicode-devel
296 Header files for wxWidgets library using GTK2 widgets with UNICODE
299 %description -n wxGTK2-unicode-devel -l pl
300 Pliki nag³ówkowe biblioteki wxWidgets u¿ywaj±cej widgetów GTK2 z
303 %package -n wxGTK2-unicode-gl
304 Summary: GL canvas library for wxGTK2 with UNICODE support
305 Summary(pl): Biblioteka GL dla wxGTK2 z obs³ug± UNICODE
307 Requires: wxGTK2-unicode = %{version}-%{release}
309 Obsoletes: wxGTK2-univ-unicode-gl
311 %description -n wxGTK2-unicode-gl
312 GL canvas library for wxGTK2 with UNICODE support.
314 %description -n wxGTK2-unicode-gl -l pl
315 Biblioteka GL dla wxGTK2 z obs³ug± UNICODE.
317 %package -n wxGTK2-unicode-gl-devel
318 Summary: Development files for GL canvas library for wxGTK2 with UNICODE support
319 Summary(pl): Pliki programistyczne biblioteki GL dla wxGTK2 z obs³ug± UNICODE
320 Group: X11/Development/Libraries
321 Requires: wxGTK2-unicode-devel = %{version}-%{release}
322 Requires: wxGTK2-unicode-gl = %{version}-%{release}
323 Requires: OpenGL-devel
324 Obsoletes: wxGTK2-univ-unicode-gl-devel
326 %description -n wxGTK2-unicode-gl-devel
327 Development files for GL canvas library for wxGTK2 with UNICODE
330 %description -n wxGTK2-unicode-gl-devel -l pl
331 Pliki programistyczne biblioteki GL dla wxGTK2 z obs³ug± UNICODE.
334 Summary: Misc utils from wxWidgets project
335 Summary(pl): Ró¿ne narzêdzia z projektu wxWidgets
336 Group: X11/Development/Tools
337 Requires: wxX11 = %{version}-%{release}
338 Obsoletes: wxWindows-utils
341 Misc utils from wxWidgets project: helpviewer, makegen, etc.
343 %description utils -l pl
344 Ró¿ne narzêdzia z projektu wxWidgets: helpviewer, makegen itp.
347 Summary: wxUniversal-based wxX11 library
348 Summary(pl): Oparta na wxUniversal biblioteka wxX11
350 Requires: %{name} = %{version}-%{release}
351 #Requires: %{name}-afm = %{version}-%{release}
352 Obsoletes: wxX11-univ
354 %description -n wxX11
355 wxUniversal-based wxX11 library.
357 %description -n wxX11 -l pl
358 Oparta na wxUniversal biblioteka wxX11.
360 %package -n wxX11-devel
361 Summary: Header files for wxUniversal-based wxX11 library
362 Summary(pl): Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11
364 Requires: %{name}-devel = %{version}-%{release}
365 Requires: wxX11 = %{version}-%{release}
366 Obsoletes: wxX11-univ-devel
368 %description -n wxX11-devel
369 Header files for wxUniversal-based wxX11 library.
371 %description -n wxX11-devel -l pl
372 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11.
375 Summary: GL canvas library for wxUniversal-based wxX11
376 Summary(pl): Biblioteka GL dla opartej na wxUniversal wxX11
378 Requires: wxX11 = %{version}-%{release}
380 Obsoletes: wxX11-univ-gl
382 %description -n wxX11-gl
383 GL canvas library for wxUniversal-based wxX11.
385 %description -n wxX11-gl -l pl
386 Biblioteka GL dla opartej na wxUniversal wxX11.
388 %package -n wxX11-gl-devel
389 Summary: Development files for GL canvas library for wxUniversal-based wxX11
390 Summary(pl): Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11
391 Group: X11/Development/Libraries
392 Requires: wxX11-gl = %{version}-%{release}
393 Requires: wxX11-devel = %{version}-%{release}
394 Requires: OpenGL-devel
395 Obsoletes: wxX11-univ-gl-devel
397 %description -n wxX11-gl-devel
398 Development files for GL canvas library for wxUniversal-based wxX11.
400 %description -n wxX11-gl-devel -l pl
401 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11.
403 %package -n wxX11-unicode
404 Summary: wxUniversal-based wxX11 library with UNICODE support
405 Summary(pl): Oparta na wxUniversal biblioteka wxX11 z obs³ug± UNICODE
407 Requires: %{name} = %{version}-%{release}
408 #Requires: %{name}-afm = %{version}-%{release}
409 Obsoletes: wxX11-univ-unicode
411 %description -n wxX11-unicode
412 wxUniversal-based wxX11 library with UNICODE support.
414 %description -n wxX11-unicode -l pl
415 Oparta na wxUniversal biblioteka wxX11 z obs³ug± UNICODE.
417 %package -n wxX11-unicode-devel
418 Summary: Header files for wxUniversal-based wxX11 library with UNICODE support
419 Summary(pl): Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11 z obs³ug± UNICODE
420 Group: X11/Development/Libraries
421 Requires: %{name}-devel = %{version}-%{release}
422 Requires: wxX11-unicode = %{version}-%{release}
423 Obsoletes: wxX11-univ-unicode-devel
425 %description -n wxX11-unicode-devel
426 Header files for wxUniversal-based wxX11 library with UNICODE support.
428 %description -n wxX11-unicode-devel -l pl
429 Pliki nag³ówkowe opartej na wxUniversal biblioteki wxX11 z obs³ug± UNICODE.
431 %package -n wxX11-unicode-gl
432 Summary: GL canvas library for wxUniversal-based wxX11 with UNICODE support
433 Summary(pl): Biblioteka GL dla opartej na wxUniversal wxX11 z obs³ug± UNICODE
435 Requires: wxX11-unicode = %{version}-%{release}
437 Obsoletes: wxX11-univ-unicode-gl
439 %description -n wxX11-unicode-gl
440 GL canvas library for wxUniversal-based wxX11 with UNICODE support.
442 %description -n wxX11-unicode-gl -l pl
443 Biblioteka GL dla opartej na wxUniversal wxX11 z obs³ug± UNICODE.
445 %package -n wxX11-unicode-gl-devel
446 Summary: Development files for GL canvas library for wxX11 with UNICODE support
447 Summary(pl): Pliki programistyczne biblioteki GL dla wxX11 z obs³ug± UNICODE
448 Group: X11/Development/Libraries
449 Requires: wxX11-unicode-gl = %{version}-%{release}
450 Requires: wxX11-unicode-devel = %{version}-%{release}
451 Requires: OpenGL-devel
452 Obsoletes: wxX11-univ-unicode-gl-devel
454 %description -n wxX11-unicode-gl-devel
455 Development files for GL canvas library for wxUniversal-based wxX11
456 with UNICODE support.
458 %description -n wxX11-unicode-gl-devel -l pl
459 Pliki programistyczne biblioteki GL dla opartej na wxUniversal wxX11 z
470 echo 'AC_DEFUN([AM_PATH_GTK],[:])' > fake-am_path_gtk.m4
471 echo 'AC_DEFUN([AC_BAKEFILE_PROG_CC],[:])' > fake-ac_bakefile_prog_cc.m4
472 echo 'AC_DEFUN([AC_BAKEFILE_PROG_CXX],[:])' > fake-ac_bakefile_prog_cxx.m4
474 # bakefile.m4 from 0.1.7
475 tail -n +1481 aclocal.m4 | head -n 1396 > bakefile.m4
478 # if bakefiles rebuild is needed:
479 #%if "%(rpm -q bakefile --qf '%%{VERSION}')" != "0.1.7"
481 #bakefile_gen -f autoconf
484 cp -f /usr/share/automake/config.sub .
488 CPPFLAGS="%{rpmcflags} -I`pwd`/include -I/usr/X11R6/include"; export CPPFLAGS
489 # avoid adding -s to LDFLAGS
490 LDFLAGS=" "; export LDFLAGS
491 args="%{?with_debug:--enable-debug}%{!?with_debug:--disable-debug} \
493 --enable-std_iostreams \
500 gui='--with-gtk --enable-gtk2'
501 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
502 '--enable-unicode' ; do
503 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
509 --disable-universal \
512 %{__make} -C contrib/src
518 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
519 '--enable-unicode' ; do
520 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
529 %{__make} -C contrib/src
530 if echo $objdir| grep -q disable-unicode ; then
532 %{__make} -C utils/emulator
533 %{__make} -C utils/hhp2cached
534 %{__make} -C contrib/utils
544 rm -rf $RPM_BUILD_ROOT
545 install -d $RPM_BUILD_ROOT%{_bindir}
547 gui='--with-gtk --enable-gtk2'
548 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
549 '--enable-unicode' ; do
550 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
553 prefix=$RPM_BUILD_ROOT%{_prefix} \
554 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
555 bindir=$RPM_BUILD_ROOT%{_bindir} \
556 datadir=$RPM_BUILD_ROOT%{_datadir} \
557 libdir=$RPM_BUILD_ROOT%{_libdir} \
558 mandir=$RPM_BUILD_ROOT%{_mandir} \
559 includedir=$RPM_BUILD_ROOT%{_includedir}
561 %{__make} -C contrib/src install \
562 prefix=$RPM_BUILD_ROOT%{_prefix} \
563 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
564 bindir=$RPM_BUILD_ROOT%{_bindir} \
565 datadir=$RPM_BUILD_ROOT%{_datadir} \
566 libdir=$RPM_BUILD_ROOT%{_libdir} \
567 mandir=$RPM_BUILD_ROOT%{_mandir} \
568 includedir=$RPM_BUILD_ROOT%{_includedir}
574 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
575 '--enable-unicode' ; do
576 objdir=`echo obj${gui}${unicode}|sed 's/ /_/g'`
579 prefix=$RPM_BUILD_ROOT%{_prefix} \
580 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
581 bindir=$RPM_BUILD_ROOT%{_bindir} \
582 datadir=$RPM_BUILD_ROOT%{_datadir} \
583 libdir=$RPM_BUILD_ROOT%{_libdir} \
584 mandir=$RPM_BUILD_ROOT%{_mandir} \
585 includedir=$RPM_BUILD_ROOT%{_includedir}
586 if echo $objdir| grep -q disable-unicode ; then
587 # install utils/dialoged/src/DialogEd $RPM_BUILD_ROOT%{_bindir}
588 # TODO: install default config files and default backgrouds
589 install utils/HelpGen/src/HelpGen $RPM_BUILD_ROOT%{_bindir}
590 install utils/emulator/src/wxemulator $RPM_BUILD_ROOT%{_bindir}
591 install utils/tex2rtf/src/tex2rtf $RPM_BUILD_ROOT%{_bindir}
592 install utils/hhp2cached/hhp2cached $RPM_BUILD_ROOT%{_bindir}
593 # install utils/makegen/makegen $RPM_BUILD_ROOT%{_bindir}
594 install utils/wxrc/wxrc $RPM_BUILD_ROOT%{_bindir}
595 # install -d $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
596 # install -m644 utils/makegen/templates/* \
597 # $RPM_BUILD_ROOT%{_datadir}/wx/makegen/templates
598 # install contrib/utils/wxrcedit/wxrcedit $RPM_BUILD_ROOT%{_bindir}
599 # install -d $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit
600 # install contrib/utils/wxrcedit/df/* \
601 # $RPM_BUILD_ROOT%{_datadir}/wx/wxrcedit/
604 %{__make} -C contrib/src install \
605 prefix=$RPM_BUILD_ROOT%{_prefix} \
606 exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
607 bindir=$RPM_BUILD_ROOT%{_bindir} \
608 datadir=$RPM_BUILD_ROOT%{_datadir} \
609 libdir=$RPM_BUILD_ROOT%{_libdir} \
610 mandir=$RPM_BUILD_ROOT%{_mandir} \
611 includedir=$RPM_BUILD_ROOT%{_includedir}
619 for i in $RPM_BUILD_ROOT%{_libdir}/wx/config/*
622 cp $i $RPM_BUILD_ROOT%{_bindir}/wx-`echo $b|sed -e 's/\(.*\)-release-.*/\1/'`-config
625 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
626 cp -a demos samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
627 cp -f docs/x11/readme.txt docs/wxX11-readme.txt
632 rm -rf $RPM_BUILD_ROOT
634 %post -n wxBase -p /sbin/ldconfig
635 %postun -n wxBase -p /sbin/ldconfig
637 %post -n wxBase-unicode -p /sbin/ldconfig
638 %postun -n wxBase-unicode -p /sbin/ldconfig
640 %post -n wxGTK2 -p /sbin/ldconfig
641 %postun -n wxGTK2 -p /sbin/ldconfig
643 %post -n wxGTK2-gl -p /sbin/ldconfig
644 %postun -n wxGTK2-gl -p /sbin/ldconfig
646 %post -n wxGTK2-unicode -p /sbin/ldconfig
647 %postun -n wxGTK2-unicode -p /sbin/ldconfig
649 %post -n wxGTK2-unicode-gl -p /sbin/ldconfig
650 %postun -n wxGTK2-unicode-gl -p /sbin/ldconfig
652 %post -n wxX11 -p /sbin/ldconfig
653 %postun -n wxX11 -p /sbin/ldconfig
655 %post -n wxX11-unicode -p /sbin/ldconfig
656 %postun -n wxX11-unicode -p /sbin/ldconfig
659 %defattr(644,root,root,755)
660 %doc docs/{changes,licence,licendoc,preamble,readme,todo}.txt
662 #%dir %{_datadir}/wx/2.5
664 #%files -n wxWidgets-afm
665 #%defattr(644,root,root,755)
666 #%{_datadir}/wx/2.5/afm
667 #%{_datadir}/wx/2.5/gs_afm
670 %defattr(644,root,root,755)
672 %doc docs/tech docs/univ
675 %dir %{_libdir}/wx/include
676 %dir %{_libdir}/wx/config
680 %defattr(644,root,root,755)
681 %{_examplesdir}/%{name}-%{version}
685 %defattr(644,root,root,755)
686 %attr(755,root,root) %{_bindir}/HelpGen
691 %defattr(644,root,root,755)
692 %attr(755,root,root) %{_libdir}/libwx_base-*.so.*.*
693 %attr(755,root,root) %{_libdir}/libwx_base_*.so.*.*
694 #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdl-*.so
696 %files -n wxBase-devel
697 %defattr(644,root,root,755)
698 %{_libdir}/libwx_base-*.so
699 %{_libdir}/libwx_base_*.so
702 %files -n wxBase-unicode
703 %defattr(644,root,root,755)
704 %attr(755,root,root) %{_libdir}/libwx_baseu-*.so.*.*
705 %attr(755,root,root) %{_libdir}/libwx_baseu_*.so.*.*
706 #%attr(755,root,root) %{_libdir}/wx/%{version}/sound_sdlu-*.so
708 %files -n wxBase-unicode-devel
709 %defattr(644,root,root,755)
710 %{_libdir}/libwx_baseu-*.so
711 %{_libdir}/libwx_baseu_*.so
715 %defattr(644,root,root,755)
716 %attr(755,root,root) %{_libdir}/libwx_gtk2_*.so.*.*
717 %exclude %{_libdir}/libwx_gtk2_ogl-*.so.*.*
719 %files -n wxGTK2-devel
720 %defattr(644,root,root,755)
721 %{_libdir}/libwx_gtk2_*-*.so
722 %exclude %{_libdir}/libwx_gtk2_ogl-*.so
723 %{_libdir}/wx/config/gtk2-ansi-*
724 %{_libdir}/wx/include/gtk2-ansi-*
725 %attr(755,root,root) %{_bindir}/wx-gtk2-ansi-config
728 %defattr(644,root,root,755)
729 %attr(755,root,root) %{_libdir}/libwx_gtk2_ogl-*.so.*.*
731 %files -n wxGTK2-gl-devel
732 %defattr(644,root,root,755)
733 %{_libdir}/libwx_gtk2_ogl-*.so
736 %files -n wxGTK2-unicode
737 %defattr(644,root,root,755)
738 %attr(755,root,root) %{_libdir}/libwx_gtk2u_*-*.so.*.*
739 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
741 %files -n wxGTK2-unicode-devel
742 %defattr(644,root,root,755)
743 %{_libdir}/libwx_gtk2u_*-*.so
744 %exclude %{_libdir}/libwx_gtk2u_ogl-*.so
745 %{_libdir}/wx/config/gtk2-unicode-*
746 %{_libdir}/wx/include/gtk2-unicode-*
747 %attr(755,root,root) %{_bindir}/wx-gtk2-unicode-config
749 %files -n wxGTK2-unicode-gl
750 %defattr(644,root,root,755)
751 %attr(755,root,root) %{_libdir}/libwx_gtk2u_ogl-*.so.*.*
753 %files -n wxGTK2-unicode-gl-devel
754 %defattr(644,root,root,755)
755 %{_libdir}/libwx_gtk2u_ogl-*.so
760 %defattr(644,root,root,755)
761 %attr(755,root,root) %{_bindir}/*
762 %exclude %{_bindir}/HelpGen
763 %exclude %{_bindir}/wx*-config
764 #%{_datadir}/wx/makegen
765 #%{_datadir}/wx/wxrcedit
768 %defattr(644,root,root,755)
769 %doc docs/wxX11-readme.txt
770 %attr(755,root,root) %{_libdir}/libwx_x11univ_*-*.so.*.*
771 %exclude %{_libdir}/libwx_x11univ_ogl-*.so.*.*
773 %files -n wxX11-devel
774 %defattr(644,root,root,755)
775 %{_libdir}/libwx_x11univ_*-*.so
776 %exclude %{_libdir}/libwx_x11univ_ogl-*.so
777 %{_libdir}/wx/config/x11univ-ansi-*
778 %{_libdir}/wx/include/x11univ-ansi-*
779 %attr(755,root,root) %{_bindir}/wx-x11univ-ansi-config
782 %defattr(644,root,root,755)
783 %attr(755,root,root) %{_libdir}/libwx_x11univ_ogl-*.so.*.*
785 %files -n wxX11-gl-devel
786 %defattr(644,root,root,755)
787 %{_libdir}/libwx_x11univ_ogl-*.so
790 %files -n wxX11-unicode
791 %defattr(644,root,root,755)
792 %attr(755,root,root) %{_libdir}/libwx_x11univu_*-*.so.*.*
793 %exclude %{_libdir}/libwx_x11univu_ogl-*.so.*.*
795 %files -n wxX11-unicode-devel
796 %defattr(644,root,root,755)
797 %{_libdir}/libwx_x11univu_*-*.so
798 %exclude %{_libdir}/libwx_x11univu_ogl-*.so
799 %{_libdir}/wx/config/x11univ-unicode-*
800 %{_libdir}/wx/include/x11univ-unicode-*
801 %attr(755,root,root) %{_bindir}/wx-x11univ-unicode-config
803 %files -n wxX11-unicode-gl
804 %defattr(644,root,root,755)
805 %attr(755,root,root) %{_libdir}/libwx_x11univu_ogl-*.so.*.*
807 %files -n wxX11-unicode-gl-devel
808 %defattr(644,root,root,755)
809 %{_libdir}/libwx_x11univu_ogl-*.so