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
343 wx
/meta
/convertible.h
345 wx
/meta
/implicitconversion.h
350 wx
/generic
/fswatcher.h
361 wx
/unix
/fswatcher_kqueue.h
364 wx
/unix
/fswatcher_inotify.h
370 wx
/protocol
/protocol.h
379 # --- wxBase headers list ends here ---
381 # --- wxBase headers list with paths ---
382 sed
-e 's@^@
%{_includedir}/wx-%{ver2}/@' wxbase
-headers.files
> wxbase
-headers.paths
385 # temporarily remove base headers
386 mkdir $RPM_BUILD_ROOT
/_save_dir
387 cp
-r $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT
/_save_dir
388 for f
in `cat wxbase
-headers.files`
; do
389 rm -f $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2}/$f
391 # list of all core headers:
392 find $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} -type f | sed
-e "s
,$RPM_BUILD_ROOT
,,g"
>core
-headers.files
393 # move base headers (actually all headers) back again
394 cp
-f
-r $RPM_BUILD_ROOT
/_save_dir
/* $RPM_BUILD_ROOT
%{_includedir}
395 rm -rf $RPM_BUILD_ROOT
/_save_dir
398 (cd obj
-shared
/utils
/wxrc
; make DESTDIR
=$RPM_BUILD_ROOT prefix
=%{_prefix} install)
400 # wx-config link is created during package installation, remove it for now
401 rm -f $RPM_BUILD_ROOT
%{_bindir}/wx
-config
404 rm -rf $RPM_BUILD_ROOT
413 # link wx-config when you install RPM.
415 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx
-config
417 # link wx-config with explicit name.
418 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
426 rm -f
%{_bindir}/wx
-config
428 rm -f
%{_bindir}/%{wxconfiglink}
430 %post -n
%{wxbasename}
433 %postun -n
%{wxbasename}
436 %post -n
%{wxbasename}-devel
437 # link wx-config with explicit name.
438 ln
-sf
%{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink}
441 %postun -n
%{wxbasename}-devel
444 %preun -n
%{wxbasename}-devel
445 rm -f
%{_bindir}/%{wxbaseconfiglink}
454 %defattr(-,root
,root
)
455 %doc COPYING.LIB
*.txt
456 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.
*
457 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so.
*
458 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so.
*
459 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so.
*
460 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so.
*
461 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so.
*
462 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.
*
463 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so.
*
464 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so.
*
465 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.
*
466 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.
*
469 %defattr(-,root
,root
)
470 %{_datadir}/locale
/*/LC_MESSAGES
/*.mo
472 %files devel
-f core
-headers.files
473 %defattr(-,root
,root
)
475 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
476 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so
477 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so
478 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
479 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so
480 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so
481 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so
482 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
483 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so
484 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so
485 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
486 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
488 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
489 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.a
490 %{_libdir}/libwx_%{buildname}_core-%{ver2}.a
491 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
492 %{_libdir}/libwx_%{buildname}_html-%{ver2}.a
493 %{_libdir}/libwx_%{buildname}_media-%{ver2}.a
494 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.a
495 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
496 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.a
497 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.a
498 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.a
499 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
501 %{_libdir}/wx/config/%{wxconfig}
502 %{_libdir}/wx/include/%{wxconfig}/wx
/setup.h
503 %{_libdir}/wx/config/%{wxconfigstatic}
504 %{_libdir}/wx/include/%{wxconfigstatic}/wx
/setup.h
507 %files -n
%{wxbasename}
508 %defattr(-,root
,root
)
509 %{_libdir}/libwx_base*-%{ver2}.so.
*
511 %files -n
%{wxbasename}-devel
-f wxbase
-headers.paths
512 %defattr (-,root
,root
)
513 %dir %{_includedir}/wx-%{ver2}
514 %{_libdir}/libwx_base*-%{ver2}.so
515 %{_libdir}/libwx_base*-%{ver2}.a
517 %{_libdir}/libwxregexu-%{ver2}.a
519 %{_libdir}/libwxscintilla-%{ver2}.a
521 %{_datadir}/aclocal
/*.m4
522 %{_datadir}/bakefile
/presets
/*
525 %defattr(-,root
,root
)
526 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.
*