2000-01-31 18:26:16 +00:00
|
|
|
%define pref /usr
|
2001-06-06 16:50:48 +00:00
|
|
|
%define ver 2.3.1
|
2001-10-01 17:39:31 +00:00
|
|
|
%define ver2 2.3
|
2001-06-06 16:50:48 +00:00
|
|
|
%define rel 1
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
Summary: wxBase library - non-GUI support classes of wxWindows toolkit
|
|
|
|
Name: wxBase
|
|
|
|
Version: %{ver}
|
|
|
|
Release: %{rel}
|
|
|
|
Copyright: wxWindows Licence
|
|
|
|
Group: Development/Libraries
|
2001-06-21 17:53:19 +00:00
|
|
|
Source: wxBase-%{ver}.tar.bz2
|
|
|
|
URL: http://www.wxwindows.org
|
2000-01-31 18:26:16 +00:00
|
|
|
Packager: Vadim Zeitlin <vadim@wxwindows.org>
|
2001-01-29 17:39:24 +00:00
|
|
|
Prefix: %{pref}
|
|
|
|
BuildRoot: /var/tmp/%{name}-root
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
wxBase is a collection of C++ classes providing basic data structures (strings,
|
|
|
|
lists, arrays), powerful wxDateTime class for date manipulations, portable
|
|
|
|
wrappers around many OS-specific functions allowing to build the same program
|
|
|
|
under all supported folders, wxThread class for writing multithreaded programs
|
|
|
|
using either Win32 or POSIX threads and much more. wxBase currently supports
|
|
|
|
the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX,
|
|
|
|
...) and BeOS.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: wxBase headers needed for developping with wxBase
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: wxBase
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Header files for wxBase. You need them to develop programs using wxBase.
|
|
|
|
|
|
|
|
%prep
|
2001-01-29 17:39:24 +00:00
|
|
|
%setup -n wxBase-%{ver}
|
2001-09-28 07:00:13 +00:00
|
|
|
./configure --prefix=%{pref} --enable-soname --disable-gui --disable-std_iostreams
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
if [ "$SMP" != "" ]; then
|
|
|
|
export MAKE="make -j$SMP"
|
|
|
|
else
|
|
|
|
export MAKE="make"
|
|
|
|
fi
|
|
|
|
$MAKE
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make prefix=$RPM_BUILD_ROOT%{pref} install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (644, root, root, 755)
|
2001-01-29 17:39:24 +00:00
|
|
|
%doc COPYING.LIB LICENCE.txt README.txt SYMBOLS.txt
|
|
|
|
%attr(755, -, -) %{pref}/lib/libwx_base*
|
2001-06-21 23:32:16 +00:00
|
|
|
|
|
|
|
%files devel -f src/rpmfiles.lst
|
2000-01-31 18:26:16 +00:00
|
|
|
%dir %{pref}/lib/wx
|
|
|
|
%dir %{pref}/lib/wx/include
|
|
|
|
%dir %{pref}/lib/wx/include/wx
|
2001-06-22 00:22:44 +00:00
|
|
|
%dir %{pref}/lib/wx/include/wx/base
|
2001-01-29 17:39:24 +00:00
|
|
|
%{pref}/lib/wx/include/wx/base/setup.h
|
2000-01-31 18:26:16 +00:00
|
|
|
%defattr (644, root, root, 755)
|
2001-10-01 17:39:31 +00:00
|
|
|
%attr(755, -, -) %{pref}/bin/wxbase-%{ver2}-config
|
2000-01-31 18:26:16 +00:00
|
|
|
%attr(755, -, -) %{pref}/bin/wx-config
|
|
|
|
|