6 Summary: The SciTech MGL port of the wxWindows library
10 Copyright: wxWindows Licence
11 Group: System
/Libraries
12 Source: wxMGL
-%{ver}.tar.bz2
13 URL: http
://www.wxwindows.org
14 Packager: Vaclav Slavik
<vaclav@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 Provides: libwx_mgl.so
24 Provides: libwx_mgl
-%{ver2}.so
27 BuildRequires
: mgl
-devel
30 wxWindows is a free C
++ library
for cross
-platform GUI development.
31 With wxWindows
, you can create applications
for different GUIs
(GTK
+,
32 Motif
/LessTif
, MS Windows
, Mac
) from the same
source code.
35 Summary: The SciTech MGL port of the wxWindows library
36 Group: Development
/Libraries
37 Requires: wxMGL
= %{ver}
40 Header files
for wxMGL
, the SciTech MGL port of the wxWindows library.
43 Summary: wxMGL static libraries
44 Group: Development
/Libraries
47 Static libraries
for wxMGL. You need them
if you want to link statically against wxMGL.
50 %setup -n wxMGL
-%{ver}
53 if [ "$SMP"
!= ""
]; then
54 export MAKE
="
make -j$SMP"
61 ..
/configure
--prefix
=%{pref} --with
-mgl
--disable
-fs_inet
67 ..
/configure
--prefix
=%{pref} --disable
-shared
--with
-mgl
--disable
-fs_inet
72 rm -rf $RPM_BUILD_ROOT
73 (cd obj
-static
; make prefix
=$RPM_BUILD_ROOT
%{pref} install)
74 (cd obj
-shared
; make prefix
=$RPM_BUILD_ROOT
%{pref} install)
79 rm -rf $RPM_BUILD_ROOT
88 # Install wx-config if there isn't any
89 if test ! -f
%{_bindir}/wx
-config
; then
90 ln
-sf wxmgl
-%{ver2}-config %{_bindir}/wx
-config
94 # Remove wx-config if it points to this package
95 if test -f
%{_bindir}/wx
-config
-a
-f
/usr
/bin
/md5sum
; then
96 SUM1
=`md5sum
%{_bindir}/wxmgl-%{ver2}-config | cut
-c
0-32`
97 SUM2
=`md5sum
%{_bindir}/wx
-config | cut
-c
0-32`
98 if test "x$SUM1"
= "x$SUM2"
; then
99 rm -f
%{_bindir}/wx
-config
105 %defattr(-,root
,root
)
106 %doc COPYING.LIB
*.txt
109 %{_libdir}/libwx_mgl*-%{ver2}*.so.
*
112 %defattr(-,root
,root
)
113 %{_libdir}/libwx_mgl*-%{ver2}*.so
114 %dir %{_includedir}/wx
118 %{_bindir}/wxmgl
*-config
119 %{_datadir}/aclocal
/*.m4
122 %defattr (-,root
,root
)