6 Summary: The GTK
+ 1.2 port of the wxWindows library
10 Copyright: wxWindows Licence
12 Source: wxGTK
-%{ver}.tar.bz2
13 URL: http
://www.wxwindows.org
14 Packager: Vadim Zeitlin
<vadim@wxwindows.org
>
16 BuildRoot: /var
/tmp
/%{name}-root
18 # all packages providing an implementation of wxWindows library (regardless of
19 # the toolkit used) should provide the (virtual) wxwin package, this makes it
20 # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
23 # in addition, we should provide libwx_gtk as automatic generator only notices
24 # libwx_gtk-%{ver}-%{rel}
25 Provides: libwx_gtk.so
26 Provides: libwx_gtk
-%{ver2}.so
29 wxWindows is a free C
++ library
for cross
-platform GUI development.
30 With wxWindows
, you can create applications
for different GUIs
(GTK
+,
31 Motif
/LessTif
, MS Windows
, Mac
) from the same
source code.
34 Summary: The GTK
+ 1.2 port of the wxWindows library
36 Requires: wxGTK
= %{ver}
39 Header files
for wxGTK
, the GTK
+ 1.2 port of the wxWindows library.
42 Summary: The GTK
+ 1.2 port of the wxWindows library
, OpenGL add
-on.
44 Requires: wxGTK
= %{ver}
47 OpenGL add
-on library
for wxGTK
, the GTK
+ 1.2 port of the wxWindows library.
50 Summary: wxGTK static libraries
51 Group: Development
/Libraries
54 Static libraries
for wxGTK. You need them
if you want to link statically against wxGTK.
57 %setup -n wxGTK
-%{ver}
60 if [ "$SMP"
!= ""
]; then
61 export MAKE
="
make -j$SMP"
66 (cd locale
; make allmo
)
70 ..
/configure
--prefix
=%{pref} --enable-soname
--with
-odbc
--with
-opengl
76 ..
/configure
--prefix
=%{pref} --disable
-shared
--with
-odbc
--with
-opengl
81 rm -rf $RPM_BUILD_ROOT
82 (cd obj
-static
; make prefix
=$RPM_BUILD_ROOT
%{pref} install)
83 (cd obj
-shared
; make prefix
=$RPM_BUILD_ROOT
%{pref} install)
88 rm -rf $RPM_BUILD_ROOT
103 # Install wx-config if there isn't any
104 if test ! -f
%{_bindir}/wx
-config
; then
105 ln
-sf wxgtk
-%{ver2}-config %{_bindir}/wx
-config
109 # Remove wx-config if it points to this package
110 if test -f
%{_bindir}/wx
-config
-a
-f
/usr
/bin
/md5sum
; then
111 SUM1
=`md5sum
%{_bindir}/wxgtk-%{ver2}-config | cut
-c
0-32`
112 SUM2
=`md5sum
%{_bindir}/wx
-config | cut
-c
0-32`
113 if test "x$SUM1"
= "x$SUM2"
; then
114 rm -f
%{_bindir}/wx
-config
120 %defattr(-,root
,root
)
121 %doc COPYING.LIB
*.txt
124 %{_libdir}/libwx_gtk-%{ver2}*.so.
*
127 %defattr(-,root
,root
)
128 %{_libdir}/libwx_gtk-%{ver2}*.so
129 %dir %{_includedir}/wx
133 %{_bindir}/wxgtk-%{ver2}-config
134 %{_datadir}/aclocal
/*.m4
137 %defattr(-,root
,root
)
138 %{_libdir}/libwx_gtk_gl
*
141 %defattr (-,root
,root
)