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
344 wx
/meta
/convertible.h
346 wx
/meta
/implicitconversion.h
351 wx
/generic
/fswatcher.h
362 wx
/unix
/fswatcher_kqueue.h
365 wx
/unix
/fswatcher_inotify.h
371 wx
/protocol
/protocol.h
380 # --- wxBase headers list ends here ---
382 # --- wxBase headers list with paths ---
383 sed
-e 's@^@
%{_includedir}/wx-%{ver2}/@' wxbase
-headers.files
> wxbase
-headers.paths
386 # temporarily remove base headers
387 mkdir $RPM_BUILD_ROOT
/_save_dir
388 cp
-r $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT
/_save_dir
389 for f
in `cat wxbase
-headers.files`
; do
390 rm -f $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2}/$f
392 # list of all core headers:
393 find $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} -type f | sed
-e "s
,$RPM_BUILD_ROOT
,,g"
>core
-headers.files
394 # move base headers (actually all headers) back again
395 cp
-f
-r $RPM_BUILD_ROOT
/_save_dir
/* $RPM_BUILD_ROOT
%{_includedir}
396 rm -rf $RPM_BUILD_ROOT
/_save_dir
399 (cd obj
-shared
/utils
/wxrc
; make DESTDIR
=$RPM_BUILD_ROOT prefix
=%{_prefix} install)
401 # wx-config link is created during package installation, remove it for now
402 rm -f $RPM_BUILD_ROOT
%{_bindir}/wx
-config
405 rm -rf $RPM_BUILD_ROOT
414 # link wx-config when you install RPM.
416 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx
-config
418 # link wx-config with explicit name.
419 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
427 rm -f
%{_bindir}/wx
-config
429 rm -f
%{_bindir}/%{wxconfiglink}
431 %post -n
%{wxbasename}
434 %postun -n
%{wxbasename}
437 %post -n
%{wxbasename}-devel
438 # link wx-config with explicit name.
439 ln
-sf
%{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink}
442 %postun -n
%{wxbasename}-devel
445 %preun -n
%{wxbasename}-devel
446 rm -f
%{_bindir}/%{wxbaseconfiglink}
455 %defattr(-,root
,root
)
456 %doc COPYING.LIB
*.txt
457 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.
*
458 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so.
*
459 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so.
*
460 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so.
*
461 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so.
*
462 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so.
*
463 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.
*
464 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so.
*
465 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so.
*
466 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.
*
467 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.
*
470 %defattr(-,root
,root
)
471 %{_datadir}/locale
/*/LC_MESSAGES
/*.mo
473 %files devel
-f core
-headers.files
474 %defattr(-,root
,root
)
476 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
477 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so
478 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so
479 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
480 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so
481 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so
482 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so
483 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
484 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so
485 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so
486 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
487 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
489 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
490 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.a
491 %{_libdir}/libwx_%{buildname}_core-%{ver2}.a
492 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
493 %{_libdir}/libwx_%{buildname}_html-%{ver2}.a
494 %{_libdir}/libwx_%{buildname}_media-%{ver2}.a
495 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.a
496 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
497 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.a
498 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.a
499 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.a
500 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
502 %{_libdir}/wx/config/%{wxconfig}
503 %{_libdir}/wx/include/%{wxconfig}/wx
/setup.h
504 %{_libdir}/wx/config/%{wxconfigstatic}
505 %{_libdir}/wx/include/%{wxconfigstatic}/wx
/setup.h
508 %files -n
%{wxbasename}
509 %defattr(-,root
,root
)
510 %{_libdir}/libwx_base*-%{ver2}.so.
*
512 %files -n
%{wxbasename}-devel
-f wxbase
-headers.paths
513 %defattr (-,root
,root
)
514 %dir %{_includedir}/wx-%{ver2}
515 %{_libdir}/libwx_base*-%{ver2}.so
516 %{_libdir}/libwx_base*-%{ver2}.a
518 %{_libdir}/libwxregexu-%{ver2}.a
520 %{_libdir}/libwxscintilla-%{ver2}.a
522 %{_datadir}/aclocal
/*.m4
523 %{_datadir}/bakefile
/presets
/*
526 %defattr(-,root
,root
)
527 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.
*