1999-04-26 20:48:39 +00:00
|
|
|
%define pref /usr
|
2001-10-01 17:39:31 +00:00
|
|
|
%define ver 2.3.2
|
|
|
|
%define ver2 2.3
|
2001-11-22 23:55:21 +00:00
|
|
|
%define rel 1
|
1999-04-26 20:48:39 +00:00
|
|
|
|
|
|
|
Summary: The GTK+ 1.2 port of the wxWindows library
|
1999-01-05 18:46:22 +00:00
|
|
|
Name: wxGTK
|
1999-04-26 20:48:39 +00:00
|
|
|
Version: %{ver}
|
|
|
|
Release: %{rel}
|
1999-01-29 12:54:50 +00:00
|
|
|
Copyright: wxWindows Licence
|
1999-01-05 18:46:22 +00:00
|
|
|
Group: X11/Libraries
|
2001-06-21 17:53:19 +00:00
|
|
|
Source: wxGTK-%{ver}.tar.bz2
|
|
|
|
URL: http://www.wxwindows.org
|
2001-01-29 17:39:24 +00:00
|
|
|
Packager: Vadim Zeitlin <vadim@wxwindows.org>
|
|
|
|
Prefix: %{pref}
|
|
|
|
BuildRoot: /var/tmp/%{name}-root
|
1999-01-05 18:46:22 +00:00
|
|
|
|
1999-02-27 23:16:54 +00:00
|
|
|
# all packages providing an implementation of wxWindows library (regardless of
|
|
|
|
# the toolkit used) should provide the (virtual) wxwin package, this makes it
|
2001-08-25 14:52:26 +00:00
|
|
|
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
|
1999-02-27 23:16:54 +00:00
|
|
|
Provides: wxwin
|
|
|
|
|
2001-01-29 17:39:24 +00:00
|
|
|
# in addition, we should provide libwx_gtk as automatic generator only notices
|
|
|
|
# libwx_gtk-%{ver}-%{rel}
|
|
|
|
Provides: libwx_gtk.so
|
2001-10-01 17:39:31 +00:00
|
|
|
Provides: libwx_gtk-%{ver2}.so
|
2001-01-29 17:39:24 +00:00
|
|
|
|
1999-01-05 18:46:22 +00:00
|
|
|
%description
|
1999-02-27 23:16:54 +00:00
|
|
|
wxWindows is a free C++ library for cross-platform GUI development.
|
|
|
|
With wxWindows, you can create applications for different GUIs (GTK+,
|
|
|
|
Motif/LessTif, MS Windows, Mac) from the same source code.
|
1999-01-05 18:46:22 +00:00
|
|
|
|
1999-08-25 16:39:29 +00:00
|
|
|
%package devel
|
|
|
|
Summary: The GTK+ 1.2 port of the wxWindows library
|
|
|
|
Group: X11/Libraries
|
2001-11-22 00:33:18 +00:00
|
|
|
Requires: wxGTK = %{ver}
|
1999-08-25 16:39:29 +00:00
|
|
|
|
|
|
|
%description devel
|
2000-03-05 17:49:58 +00:00
|
|
|
Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library.
|
|
|
|
|
|
|
|
%package gl
|
2001-11-22 00:33:18 +00:00
|
|
|
Summary: The GTK+ 1.2 port of the wxWindows library, OpenGL add-on.
|
2000-03-05 17:49:58 +00:00
|
|
|
Group: X11/Libraries
|
2001-11-22 00:33:18 +00:00
|
|
|
Requires: wxGTK = %{ver}
|
2000-03-05 17:49:58 +00:00
|
|
|
|
|
|
|
%description gl
|
2001-11-22 00:33:18 +00:00
|
|
|
OpenGL add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library.
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: wxGTK static libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description static
|
|
|
|
Static libraries for wxGTK. You need them if you want to link statically against wxGTK.
|
1999-08-25 16:39:29 +00:00
|
|
|
|
1999-01-05 18:46:22 +00:00
|
|
|
%prep
|
2001-01-29 17:39:24 +00:00
|
|
|
%setup -n wxGTK-%{ver}
|
1999-01-05 18:46:22 +00:00
|
|
|
|
|
|
|
%build
|
2000-02-01 16:37:28 +00:00
|
|
|
if [ "$SMP" != "" ]; then
|
|
|
|
export MAKE="make -j$SMP"
|
|
|
|
else
|
|
|
|
export MAKE="make"
|
|
|
|
fi
|
2001-11-22 00:33:18 +00:00
|
|
|
|
|
|
|
mkdir obj-shared
|
|
|
|
cd obj-shared
|
|
|
|
../configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl
|
|
|
|
$MAKE
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
mkdir obj-static
|
|
|
|
cd obj-static
|
|
|
|
../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl
|
2000-02-01 16:37:28 +00:00
|
|
|
$MAKE
|
2001-11-22 00:33:18 +00:00
|
|
|
cd ..
|
1999-01-05 18:46:22 +00:00
|
|
|
|
|
|
|
%install
|
2001-01-29 17:39:24 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2001-11-22 00:33:18 +00:00
|
|
|
(cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
|
|
|
|
(cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
|
1999-01-05 18:46:22 +00:00
|
|
|
|
2001-11-22 23:55:21 +00:00
|
|
|
%find_lang wxstd
|
|
|
|
|
2001-12-15 16:45:18 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
1999-01-05 18:46:22 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2001-11-20 23:50:53 +00:00
|
|
|
%post gl
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun gl
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
# Install wx-config if there isn't any
|
|
|
|
if test ! -f %{_bindir}/wx-config ; then
|
|
|
|
ln -sf wxgtk-%{ver2}-config %{_bindir}/wx-config
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun devel
|
|
|
|
# Remove wx-config if it points to this package
|
|
|
|
if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
|
|
|
|
SUM1=`md5sum %{_bindir}/wxgtk-%{ver2}-config | cut -c 0-32`
|
|
|
|
SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
|
|
|
|
if test "x$SUM1" = "x$SUM2" ; then
|
|
|
|
rm -f %{_bindir}/wx-config
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-11-22 23:55:21 +00:00
|
|
|
%files -f wxstd.lang
|
2001-11-20 23:50:53 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING.LIB *.txt
|
|
|
|
%dir %{_datadir}/wx
|
|
|
|
%{_datadir}/wx/*
|
|
|
|
%{_libdir}/libwx_gtk-%{ver2}*.so.*
|
1999-08-25 16:39:29 +00:00
|
|
|
|
|
|
|
%files devel
|
2001-05-25 07:00:12 +00:00
|
|
|
%defattr(-,root,root)
|
2001-11-20 23:50:53 +00:00
|
|
|
%{_libdir}/libwx_gtk-%{ver2}*.so
|
|
|
|
%dir %{_includedir}/wx
|
|
|
|
%{_includedir}/wx/*
|
|
|
|
%dir %{_libdir}/wx
|
|
|
|
%{_libdir}/wx/*
|
|
|
|
%{_bindir}/wxgtk-%{ver2}-config
|
2001-11-24 23:55:29 +00:00
|
|
|
%{_datadir}/aclocal/*.m4
|
1999-01-29 12:54:50 +00:00
|
|
|
|
2000-03-05 17:49:58 +00:00
|
|
|
%files gl
|
2001-11-20 23:50:53 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libwx_gtk_gl*
|
2001-05-25 07:00:12 +00:00
|
|
|
|
2001-11-22 00:33:18 +00:00
|
|
|
%files static
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%{_libdir}/lib*.a
|