1999-04-26 16:48:39 -04:00
|
|
|
%define pref /usr
|
2002-12-05 06:08:08 -05:00
|
|
|
%define ver 2.5.0
|
|
|
|
%define ver2 2.5
|
2001-11-22 18:55:21 -05:00
|
|
|
%define rel 1
|
1999-04-26 16:48:39 -04:00
|
|
|
|
|
|
|
Summary: The GTK+ 1.2 port of the wxWindows library
|
1999-01-05 13:46:22 -05:00
|
|
|
Name: wxGTK
|
1999-04-26 16:48:39 -04:00
|
|
|
Version: %{ver}
|
|
|
|
Release: %{rel}
|
1999-01-29 07:54:50 -05:00
|
|
|
Copyright: wxWindows Licence
|
1999-01-05 13:46:22 -05:00
|
|
|
Group: X11/Libraries
|
2001-06-21 13:53:19 -04:00
|
|
|
Source: wxGTK-%{ver}.tar.bz2
|
|
|
|
URL: http://www.wxwindows.org
|
2001-01-29 12:39:24 -05:00
|
|
|
Packager: Vadim Zeitlin <vadim@wxwindows.org>
|
|
|
|
Prefix: %{pref}
|
|
|
|
BuildRoot: /var/tmp/%{name}-root
|
1999-01-05 13:46:22 -05:00
|
|
|
|
1999-02-27 18:16:54 -05: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 10:52:26 -04:00
|
|
|
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
|
1999-02-27 18:16:54 -05:00
|
|
|
Provides: wxwin
|
|
|
|
|
2001-01-29 12:39:24 -05:00
|
|
|
# in addition, we should provide libwx_gtk as automatic generator only notices
|
|
|
|
# libwx_gtk-%{ver}-%{rel}
|
|
|
|
Provides: libwx_gtk.so
|
2001-10-01 13:39:31 -04:00
|
|
|
Provides: libwx_gtk-%{ver2}.so
|
2001-01-29 12:39:24 -05:00
|
|
|
|
1999-01-05 13:46:22 -05:00
|
|
|
%description
|
1999-02-27 18:16:54 -05: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 13:46:22 -05:00
|
|
|
|
1999-08-25 12:39:29 -04:00
|
|
|
%package devel
|
|
|
|
Summary: The GTK+ 1.2 port of the wxWindows library
|
|
|
|
Group: X11/Libraries
|
2001-11-21 19:33:18 -05:00
|
|
|
Requires: wxGTK = %{ver}
|
1999-08-25 12:39:29 -04:00
|
|
|
|
|
|
|
%description devel
|
2000-03-05 12:49:58 -05:00
|
|
|
Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library.
|
|
|
|
|
|
|
|
%package gl
|
2001-11-21 19:33:18 -05:00
|
|
|
Summary: The GTK+ 1.2 port of the wxWindows library, OpenGL add-on.
|
2000-03-05 12:49:58 -05:00
|
|
|
Group: X11/Libraries
|
2001-11-21 19:33:18 -05:00
|
|
|
Requires: wxGTK = %{ver}
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
%description gl
|
2001-11-21 19:33:18 -05: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 12:39:29 -04:00
|
|
|
|
1999-01-05 13:46:22 -05:00
|
|
|
%prep
|
2001-01-29 12:39:24 -05:00
|
|
|
%setup -n wxGTK-%{ver}
|
1999-01-05 13:46:22 -05:00
|
|
|
|
|
|
|
%build
|
2000-02-01 11:37:28 -05:00
|
|
|
if [ "$SMP" != "" ]; then
|
|
|
|
export MAKE="make -j$SMP"
|
|
|
|
else
|
|
|
|
export MAKE="make"
|
|
|
|
fi
|
2001-11-21 19:33:18 -05:00
|
|
|
|
|
|
|
mkdir obj-shared
|
|
|
|
cd obj-shared
|
2003-06-25 15:54:06 -04:00
|
|
|
../configure --prefix=%{pref} --with-odbc --with-opengl
|
2001-11-21 19:33:18 -05:00
|
|
|
$MAKE
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
mkdir obj-static
|
|
|
|
cd obj-static
|
|
|
|
../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl
|
2000-02-01 11:37:28 -05:00
|
|
|
$MAKE
|
2001-11-21 19:33:18 -05:00
|
|
|
cd ..
|
1999-01-05 13:46:22 -05:00
|
|
|
|
|
|
|
%install
|
2001-01-29 12:39:24 -05:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2001-11-21 19:33:18 -05:00
|
|
|
(cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
|
|
|
|
(cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
|
1999-01-05 13:46:22 -05:00
|
|
|
|
2001-11-22 18:55:21 -05:00
|
|
|
%find_lang wxstd
|
|
|
|
|
2001-12-15 11:45:18 -05:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
1999-01-05 13:46:22 -05:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2001-11-20 18:50:53 -05: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 18:55:21 -05:00
|
|
|
%files -f wxstd.lang
|
2001-11-20 18:50:53 -05:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING.LIB *.txt
|
|
|
|
%dir %{_datadir}/wx
|
|
|
|
%{_datadir}/wx/*
|
|
|
|
%{_libdir}/libwx_gtk-%{ver2}*.so.*
|
1999-08-25 12:39:29 -04:00
|
|
|
|
|
|
|
%files devel
|
2001-05-25 03:00:12 -04:00
|
|
|
%defattr(-,root,root)
|
2001-11-20 18:50:53 -05:00
|
|
|
%{_libdir}/libwx_gtk-%{ver2}*.so
|
|
|
|
%dir %{_includedir}/wx
|
|
|
|
%{_includedir}/wx/*
|
|
|
|
%dir %{_libdir}/wx
|
|
|
|
%{_libdir}/wx/*
|
|
|
|
%{_bindir}/wxgtk-%{ver2}-config
|
2001-11-24 18:55:29 -05:00
|
|
|
%{_datadir}/aclocal/*.m4
|
1999-01-29 07:54:50 -05:00
|
|
|
|
2000-03-05 12:49:58 -05:00
|
|
|
%files gl
|
2001-11-20 18:50:53 -05:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libwx_gtk_gl*
|
2001-05-25 03:00:12 -04:00
|
|
|
|
2001-11-21 19:33:18 -05:00
|
|
|
%files static
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%{_libdir}/lib*.a
|