6 # Configurable settings (use --with(out) {unicode,gtk2} on rpmbuild cmd line):
8 %{?_with_unicode: %{expand: %%define unicode 1}}
9 %{?_without_unicode: %{expand: %%define unicode 0}}
12 %{?_with_gtk2: %{expand: %%define gtk2 1}}
13 %{?_without_gtk2: %{expand: %%define gtk2 0}}
15 # "buildname" needs to be e.g. gtk2ud for debug builds
20 %define buildname gtk2u
22 %define buildname gtk2
31 %define name wx
-%{portname}-unicode
32 %define wxconfig
%{portname}-unicode-%{ver2}
33 %define wxconfigstatic
%{portname}-unicode-static-%{ver2}
34 %define wxconfiglink wx
%{portname}u-%{ver2}-config
36 %define name wx
-%{portname}-ansi
37 %define wxconfig
%{portname}-ansi-%{ver2}
38 %define wxconfigstatic
%{portname}-ansi-static-%{ver2}
39 %define wxconfiglink wx
%{portname}-%{ver2}-config
43 %define wxbasename wx
-base
-unicode
44 %define wxbaseconfig base
-unicode
-%{ver2}
45 %define wxbaseconfiglink wxbaseu
-%{ver2}-config
47 %define wxbasename wx
-base
-ansi
48 %define wxbaseconfig base
-ansi
-%{ver2}
49 %define wxbaseconfiglink wxbase
-%{ver2}-config
52 Summary: The GTK
+ %{gtkver} port of the wxWidgets library
56 License: wxWindows Licence
58 Source: wxGTK
-%{ver}.tar.bz2
59 URL: http
://www.wxwidgets.org
60 Packager: Vadim Zeitlin
<vadim@wxwindows.org
>
62 BuildRoot: %{_tmppath}/%{name}-root
63 Requires: %{wxbasename} = %{ver}
64 %if %{portname} == gtk2
65 BuildRequires
: gtk2
-devel
67 BuildRequires
: gtk
+-devel
>= 1.2.0
70 BuildRequires
: zlib
-devel
, libjpeg
-devel
, libpng
-devel
, libtiff
-devel
72 # all packages providing an implementation of wxWidgets library (regardless of
73 # the toolkit used) should provide the (virtual) wxwin package, this makes it
74 # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
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
, MS Windows
, MacOS X
, Windows CE
, GPE
) from the same
source code.
84 Summary: The translations
for the wxWidgets library.
87 %description -n wx
-i18n
88 The translations files
for the wxWidgets library.
91 Summary: The GTK
+ %{gtkver} port of the wxWidgets library
93 Requires: %{name} = %{ver}
94 Requires: %{wxbasename}-devel = %{ver}
98 The GTK
+ %{gtkver} port of the wxWidgets library
, header files.
101 Summary: The GTK
+ %{gtkver} port of the wxWidgets library
, OpenGL add
-on.
103 Requires: %{name} = %{ver}
107 OpenGL add
-on library
for wxGTK
, the GTK
+ %{gtkver} port of the wxWidgets library.
109 %package -n
%{wxbasename}
110 Summary: wxBase library
- non
-GUI support classes of the wxWidgets toolkit
111 Group: Development
/Libraries
114 %description -n
%{wxbasename}
115 wxBase is a collection of C
++ classes providing basic data structures
(strings
,
116 lists
, arrays
), portable wrappers around many OS
-specific funstions
(file
117 operations
, time/date manipulations
, threads
, processes
, sockets
, shared
118 library loading
) as well as other utility classes
(streams
, archive and
119 compression
). wxBase currently supports Win32
, most Unix variants
(Linux
,
120 FreeBSD
, Solaris
, HP
-UX
) and MacOS X
(Carbon and Mach
-0).
122 %package -n
%{wxbasename}-devel
123 Summary: wxBase library
, header files.
124 Group: Development
/Libraries
125 Provides: wxBase
-devel
127 %description -n
%{wxbasename}-devel
128 wxBase library
- non
-GUI support classes of the wxWidgets toolkit
,
132 %setup -q
-n wxGTK
-%{ver}
135 if [ "$SMP"
!= ""
]; then
136 export MAKE
="
make -j$SMP"
143 ..
/configure
--prefix
=%{_prefix} --libdir=%{_libdir} \
163 ..
/configure
--prefix
=%{_prefix} --libdir=%{_libdir} \
185 rm -rf $RPM_BUILD_ROOT
186 (cd obj
-static
; make DESTDIR
=$RPM_BUILD_ROOT prefix
=%{_prefix} install)
187 (cd obj
-shared
; make DESTDIR
=$RPM_BUILD_ROOT prefix
=%{_prefix} install)
189 # --- wxBase headers list begins here ---
190 cat
<<EOF
>wxbase
-headers.files
335 wx
/meta
/convertible.h
337 wx
/meta
/implicitconversion.h
342 wx
/generic
/fswatcher.h
353 wx
/unix
/fswatcher_kqueue.h
356 wx
/unix
/fswatcher_inotify.h
362 wx
/protocol
/protocol.h
371 # --- wxBase headers list ends here ---
373 # --- wxBase headers list with paths ---
374 sed
-e 's@^@
%{_includedir}/wx-%{ver2}/@' wxbase
-headers.files
> wxbase
-headers.paths
377 # temporarily remove base headers
378 mkdir $RPM_BUILD_ROOT
/_save_dir
379 cp
-r $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT
/_save_dir
380 for f
in `cat wxbase
-headers.files`
; do
381 rm -f $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2}/$f
383 # list of all core headers:
384 find $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} -type f | sed
-e "s
,$RPM_BUILD_ROOT
,,g"
>core
-headers.files
385 # move base headers (actually all headers) back again
386 cp
-f
-r $RPM_BUILD_ROOT
/_save_dir
/* $RPM_BUILD_ROOT
%{_includedir}
387 rm -rf $RPM_BUILD_ROOT
/_save_dir
390 (cd obj
-shared
/utils
/wxrc
; make DESTDIR
=$RPM_BUILD_ROOT prefix
=%{_prefix} install)
392 # wx-config link is created during package installation, remove it for now
393 rm -f $RPM_BUILD_ROOT
%{_bindir}/wx
-config
396 rm -rf $RPM_BUILD_ROOT
405 # link wx-config when you install RPM.
407 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx
-config
409 # link wx-config with explicit name.
410 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
418 rm -f
%{_bindir}/wx
-config
420 rm -f
%{_bindir}/%{wxconfiglink}
422 %post -n
%{wxbasename}
425 %postun -n
%{wxbasename}
428 %post -n
%{wxbasename}-devel
429 # link wx-config with explicit name.
430 ln
-sf
%{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink}
433 %postun -n
%{wxbasename}-devel
436 %preun -n
%{wxbasename}-devel
437 rm -f
%{_bindir}/%{wxbaseconfiglink}
446 %defattr(-,root
,root
)
447 %doc COPYING.LIB
*.txt
448 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.
*
449 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so.
*
450 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so.
*
451 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so.
*
452 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so.
*
453 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so.
*
454 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.
*
455 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so.
*
456 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so.
*
457 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.
*
458 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.
*
461 %defattr(-,root
,root
)
462 %{_datadir}/locale
/*/LC_MESSAGES
/*.mo
464 %files devel
-f core
-headers.files
465 %defattr(-,root
,root
)
467 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
468 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so
469 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so
470 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
471 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so
472 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so
473 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so
474 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
475 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so
476 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so
477 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
478 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
480 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
481 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.a
482 %{_libdir}/libwx_%{buildname}_core-%{ver2}.a
483 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
484 %{_libdir}/libwx_%{buildname}_html-%{ver2}.a
485 %{_libdir}/libwx_%{buildname}_media-%{ver2}.a
486 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.a
487 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
488 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.a
489 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.a
490 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.a
491 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
493 %{_libdir}/wx/config/%{wxconfig}
494 %{_libdir}/wx/include/%{wxconfig}/wx
/setup.h
495 %{_libdir}/wx/config/%{wxconfigstatic}
496 %{_libdir}/wx/include/%{wxconfigstatic}/wx
/setup.h
499 %files -n
%{wxbasename}
500 %defattr(-,root
,root
)
501 %{_libdir}/libwx_base*-%{ver2}.so.
*
503 %files -n
%{wxbasename}-devel
-f wxbase
-headers.paths
504 %defattr (-,root
,root
)
505 %dir %{_includedir}/wx-%{ver2}
506 %{_libdir}/libwx_base*-%{ver2}.so
507 %{_libdir}/libwx_base*-%{ver2}.a
509 %{_libdir}/libwxregexu-%{ver2}.a
511 %{_libdir}/libwxscintilla-%{ver2}.a
513 %{_datadir}/aclocal
/*.m4
514 %{_datadir}/bakefile
/presets
/*
517 %defattr(-,root
,root
)
518 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.
*