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
341 wx
/generic
/fswatcher.h
352 wx
/unix
/fswatcher_kqueue.h
355 wx
/unix
/fswatcher_inotify.h
361 wx
/protocol
/protocol.h
370 # --- wxBase headers list ends here ---
372 # --- wxBase headers list with paths ---
373 sed
-e 's@^@
%{_includedir}/wx-%{ver2}/@' wxbase
-headers.files
> wxbase
-headers.paths
376 # temporarily remove base headers
377 mkdir $RPM_BUILD_ROOT
/_save_dir
378 cp
-r $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT
/_save_dir
379 for f
in `cat wxbase
-headers.files`
; do
380 rm -f $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2}/$f
382 # list of all core headers:
383 find $RPM_BUILD_ROOT
%{_includedir}/wx-%{ver2} -type f | sed
-e "s
,$RPM_BUILD_ROOT
,,g"
>core
-headers.files
384 # move base headers (actually all headers) back again
385 cp
-f
-r $RPM_BUILD_ROOT
/_save_dir
/* $RPM_BUILD_ROOT
%{_includedir}
386 rm -rf $RPM_BUILD_ROOT
/_save_dir
389 (cd obj
-shared
/utils
/wxrc
; make DESTDIR
=$RPM_BUILD_ROOT prefix
=%{_prefix} install)
391 # wx-config link is created during package installation, remove it for now
392 rm -f $RPM_BUILD_ROOT
%{_bindir}/wx
-config
395 rm -rf $RPM_BUILD_ROOT
404 # link wx-config when you install RPM.
406 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx
-config
408 # link wx-config with explicit name.
409 ln
-sf
%{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
417 rm -f
%{_bindir}/wx
-config
419 rm -f
%{_bindir}/%{wxconfiglink}
421 %post -n
%{wxbasename}
424 %postun -n
%{wxbasename}
427 %post -n
%{wxbasename}-devel
428 # link wx-config with explicit name.
429 ln
-sf
%{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink}
432 %postun -n
%{wxbasename}-devel
435 %preun -n
%{wxbasename}-devel
436 rm -f
%{_bindir}/%{wxbaseconfiglink}
445 %defattr(-,root
,root
)
446 %doc COPYING.LIB
*.txt
447 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.
*
448 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so.
*
449 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so.
*
450 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so.
*
451 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so.
*
452 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so.
*
453 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.
*
454 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so.
*
455 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so.
*
456 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.
*
457 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.
*
460 %defattr(-,root
,root
)
461 %{_datadir}/locale
/*/LC_MESSAGES
/*.mo
463 %files devel
-f core
-headers.files
464 %defattr(-,root
,root
)
466 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
467 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so
468 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so
469 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
470 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so
471 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so
472 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so
473 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
474 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so
475 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so
476 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
477 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
479 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
480 %{_libdir}/libwx_%{buildname}_aui-%{ver2}.a
481 %{_libdir}/libwx_%{buildname}_core-%{ver2}.a
482 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
483 %{_libdir}/libwx_%{buildname}_html-%{ver2}.a
484 %{_libdir}/libwx_%{buildname}_media-%{ver2}.a
485 %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.a
486 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
487 %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.a
488 %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.a
489 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.a
490 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
492 %{_libdir}/wx/config/%{wxconfig}
493 %{_libdir}/wx/include/%{wxconfig}/wx
/setup.h
494 %{_libdir}/wx/config/%{wxconfigstatic}
495 %{_libdir}/wx/include/%{wxconfigstatic}/wx
/setup.h
498 %files -n
%{wxbasename}
499 %defattr(-,root
,root
)
500 %{_libdir}/libwx_base*-%{ver2}.so.
*
502 %files -n
%{wxbasename}-devel
-f wxbase
-headers.paths
503 %defattr (-,root
,root
)
504 %dir %{_includedir}/wx-%{ver2}
505 %{_libdir}/libwx_base*-%{ver2}.so
506 %{_libdir}/libwx_base*-%{ver2}.a
508 %{_libdir}/libwxregexu-%{ver2}.a
510 %{_libdir}/libwxscintilla-%{ver2}.a
512 %{_datadir}/aclocal
/*.m4
513 %{_datadir}/bakefile
/presets
/*
516 %defattr(-,root
,root
)
517 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.
*