]> git.saurik.com Git - wxWidgets.git/blame - wxBase.spec
better <HR> tag handling in wxHTML
[wxWidgets.git] / wxBase.spec
CommitLineData
2224580a 1%define pref /usr
32037c4e 2%define ver 2.3.2
8c8fb2f6 3%define ver2 2.3
014e19de 4%define rel 1
2224580a
VZ
5
6Summary: wxBase library - non-GUI support classes of wxWindows toolkit
7Name: wxBase
8Version: %{ver}
9Release: %{rel}
10Copyright: wxWindows Licence
11Group: Development/Libraries
b5fa0a3e
VZ
12Source: wxBase-%{ver}.tar.bz2
13URL: http://www.wxwindows.org
2224580a 14Packager: Vadim Zeitlin <vadim@wxwindows.org>
31fe72b6
VZ
15Prefix: %{pref}
16BuildRoot: /var/tmp/%{name}-root
2224580a
VZ
17
18%description
19wxBase is a collection of C++ classes providing basic data structures (strings,
20lists, arrays), powerful wxDateTime class for date manipulations, portable
21wrappers around many OS-specific functions allowing to build the same program
22under all supported folders, wxThread class for writing multithreaded programs
23using either Win32 or POSIX threads and much more. wxBase currently supports
24the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX,
25...) and BeOS.
26
27%package devel
28Summary: wxBase headers needed for developping with wxBase
29Group: Development/Libraries
30Requires: wxBase
31
32%description devel
33Header files for wxBase. You need them to develop programs using wxBase.
34
35%prep
31fe72b6 36%setup -n wxBase-%{ver}
3a922bb4 37./configure --prefix=%{pref} --enable-soname --disable-gui --disable-std_iostreams
2224580a
VZ
38
39%build
40if [ "$SMP" != "" ]; then
41 export MAKE="make -j$SMP"
42else
43 export MAKE="make"
44fi
45$MAKE
32037c4e 46(cd locale; make allmo)
2224580a
VZ
47
48%install
49rm -rf $RPM_BUILD_ROOT
50make prefix=$RPM_BUILD_ROOT%{pref} install
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
56/sbin/ldconfig
57
58%postun
59/sbin/ldconfig
60
32037c4e
VS
61%post devel
62# Install wx-config if there isn't any
63if test ! -f %{_bindir}/wx-config ; then
64 ln -sf wxbase-%{ver2}-config %{_bindir}/wx-config
65fi
66
67%preun devel
68# Remove wx-config if it points to this package
69if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
70 SUM1=`md5sum %{_bindir}/wxbase-%{ver2}-config | cut -c 0-32`
71 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
72 if test "x$SUM1" = "x$SUM2" ; then
73 rm -f %{_bindir}/wx-config
74 fi
75fi
76
2224580a 77%files
32037c4e
VS
78%defattr (-,root,root)
79%doc COPYING.LIB *.txt
80%{_libdir}/libwx_base*so.*
81%{_datadir}/locale/*/*/*.mo
156da3a9 82
32037c4e
VS
83%files devel
84%defattr (-,root,root)
85%dir %{_includedir}/wx
86%{_includedir}/wx/*
87%{_libdir}/libwx_base*.so
88%dir %{_libdir}/wx
89%{_libdir}/wx/*
90%{_bindir}/wxbase-%{ver2}-config
2224580a 91