2000-01-31 18:26:16 +00:00
|
|
|
%define pref /usr
|
2002-12-05 11:08:08 +00:00
|
|
|
%define ver 2.5.0
|
|
|
|
%define ver2 2.5
|
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
|
2001-11-22 00:33:18 +00:00
|
|
|
Requires: wxBase = %{ver}
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Header files for wxBase. You need them to develop programs using wxBase.
|
|
|
|
|
2001-11-22 00:33:18 +00:00
|
|
|
%package static
|
|
|
|
Summary: wxBase static libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description static
|
|
|
|
Static libraries for wxBase. You need them if you want to link statically against wxBase.
|
|
|
|
|
2000-01-31 18:26:16 +00:00
|
|
|
%prep
|
2001-01-29 17:39:24 +00:00
|
|
|
%setup -n wxBase-%{ver}
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
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 --disable-gui --disable-std_iostreams
|
|
|
|
$MAKE
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
mkdir obj-static
|
|
|
|
cd obj-static
|
|
|
|
../configure --prefix=%{pref} --disable-shared --disable-gui --disable-std_iostreams
|
|
|
|
$MAKE
|
|
|
|
cd ..
|
|
|
|
|
2000-01-31 18:26:16 +00:00
|
|
|
%install
|
|
|
|
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)
|
2000-01-31 18:26:16 +00:00
|
|
|
|
2001-11-22 23:55:21 +00:00
|
|
|
%find_lang wxstd
|
|
|
|
|
2000-01-31 18:26:16 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2001-11-20 23:50:32 +00:00
|
|
|
%post devel
|
|
|
|
# Install wx-config if there isn't any
|
|
|
|
if test ! -f %{_bindir}/wx-config ; then
|
|
|
|
ln -sf wxbase-%{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}/wxbase-%{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:32 +00:00
|
|
|
%defattr (-,root,root)
|
|
|
|
%doc COPYING.LIB *.txt
|
|
|
|
%{_libdir}/libwx_base*so.*
|
2001-06-21 23:32:16 +00:00
|
|
|
|
2001-11-20 23:50:32 +00:00
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%dir %{_includedir}/wx
|
|
|
|
%{_includedir}/wx/*
|
|
|
|
%{_libdir}/libwx_base*.so
|
|
|
|
%dir %{_libdir}/wx
|
|
|
|
%{_libdir}/wx/*
|
|
|
|
%{_bindir}/wxbase-%{ver2}-config
|
2001-11-24 23:55:29 +00:00
|
|
|
%{_datadir}/aclocal/*.m4
|
2000-01-31 18:26:16 +00:00
|
|
|
|
2001-11-22 00:33:18 +00:00
|
|
|
%files static
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%{_libdir}/lib*.a
|