1999-04-26 20:48:39 +00:00
|
|
|
%define pref /usr
|
2001-06-06 16:50:48 +00:00
|
|
|
%define ver 2.3.1
|
2001-02-06 00:17:09 +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-01-29 17:39:24 +00:00
|
|
|
Source: wxGTK-%{ver}.tar.gz
|
2000-07-15 19:51:35 +00:00
|
|
|
URL: http://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
|
|
|
|
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxqt..."
|
|
|
|
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-05-25 07:00:12 +00:00
|
|
|
Provides: libwx_gtk-2.3.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
|
|
|
|
Requires: wxGTK
|
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: The GTK+ 1.2 port of the wxWindows library, OpenGl add-on.
|
|
|
|
Group: X11/Libraries
|
|
|
|
Requires: wxGTK
|
|
|
|
|
|
|
|
%description gl
|
2000-03-05 19:53:29 +00:00
|
|
|
OpenGl add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library.
|
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}
|
2000-03-05 19:53:29 +00:00
|
|
|
./configure --prefix=%{pref} --enable-burnt_name --with-odbc --with-opengl
|
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
|
|
|
|
$MAKE
|
1999-01-05 18:46:22 +00:00
|
|
|
|
|
|
|
%install
|
2001-01-29 17:39:24 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make prefix=$RPM_BUILD_ROOT%{pref} install
|
1999-01-05 18:46:22 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2001-05-25 07:00:12 +00:00
|
|
|
%defattr(-, root, root)
|
1999-01-29 12:54:50 +00:00
|
|
|
%doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt
|
1999-08-25 16:39:29 +00:00
|
|
|
%dir %{pref}/share/wx
|
|
|
|
%{pref}/share/wx/*
|
2001-05-25 07:00:12 +00:00
|
|
|
%attr(755, root, root) %{pref}/lib/libwx_gtk.*
|
|
|
|
%attr(755, root, root) %{pref}/lib/libwx_gtk-2.3.*
|
1999-08-25 16:39:29 +00:00
|
|
|
|
|
|
|
%files devel
|
2001-05-25 07:00:12 +00:00
|
|
|
%defattr(-,root,root)
|
1999-04-26 20:48:39 +00:00
|
|
|
%dir %{pref}/include/wx
|
|
|
|
%{pref}/include/wx/*
|
|
|
|
%dir %{pref}/lib/wx
|
|
|
|
%{pref}/lib/wx/*
|
2001-02-06 00:17:09 +00:00
|
|
|
%attr(755, root, root) %{pref}/bin/wxgtk-config
|
|
|
|
%attr(755, root, root) %{pref}/bin/wx-config
|
1999-01-29 12:54:50 +00:00
|
|
|
|
2000-03-05 17:49:58 +00:00
|
|
|
%files gl
|
2001-02-06 00:17:09 +00:00
|
|
|
%attr(755, root, root) %{pref}/lib/libwx_gtk_gl*
|
2001-05-25 07:00:12 +00:00
|
|
|
|
|
|
|
|