]>
Commit | Line | Data |
---|---|---|
2224580a | 1 | %define pref /usr |
014e19de RD |
2 | %define ver 2.3.1 |
3 | %define rel 1 | |
2224580a VZ |
4 | |
5 | Summary: wxBase library - non-GUI support classes of wxWindows toolkit | |
6 | Name: wxBase | |
7 | Version: %{ver} | |
8 | Release: %{rel} | |
9 | Copyright: wxWindows Licence | |
10 | Group: Development/Libraries | |
b5fa0a3e VZ |
11 | Source: wxBase-%{ver}.tar.bz2 |
12 | URL: http://www.wxwindows.org | |
2224580a | 13 | Packager: Vadim Zeitlin <vadim@wxwindows.org> |
31fe72b6 VZ |
14 | Prefix: %{pref} |
15 | BuildRoot: /var/tmp/%{name}-root | |
2224580a VZ |
16 | |
17 | %description | |
18 | wxBase is a collection of C++ classes providing basic data structures (strings, | |
19 | lists, arrays), powerful wxDateTime class for date manipulations, portable | |
20 | wrappers around many OS-specific functions allowing to build the same program | |
21 | under all supported folders, wxThread class for writing multithreaded programs | |
22 | using either Win32 or POSIX threads and much more. wxBase currently supports | |
23 | the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX, | |
24 | ...) and BeOS. | |
25 | ||
26 | %package devel | |
27 | Summary: wxBase headers needed for developping with wxBase | |
28 | Group: Development/Libraries | |
29 | Requires: wxBase | |
30 | ||
31 | %description devel | |
32 | Header files for wxBase. You need them to develop programs using wxBase. | |
33 | ||
34 | %prep | |
31fe72b6 | 35 | %setup -n wxBase-%{ver} |
103aab26 | 36 | ./configure --prefix=%{pref} --disable-gui --disable-std_iostreams |
2224580a VZ |
37 | |
38 | %build | |
39 | if [ "$SMP" != "" ]; then | |
40 | export MAKE="make -j$SMP" | |
41 | else | |
42 | export MAKE="make" | |
43 | fi | |
44 | $MAKE | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | make prefix=$RPM_BUILD_ROOT%{pref} install | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post | |
54 | /sbin/ldconfig | |
55 | ||
56 | %postun | |
57 | /sbin/ldconfig | |
58 | ||
59 | %files | |
60 | %defattr (644, root, root, 755) | |
31fe72b6 VZ |
61 | %doc COPYING.LIB LICENCE.txt README.txt SYMBOLS.txt |
62 | %attr(755, -, -) %{pref}/lib/libwx_base* | |
156da3a9 VZ |
63 | |
64 | %files devel -f src/rpmfiles.lst | |
2224580a VZ |
65 | %dir %{pref}/lib/wx |
66 | %dir %{pref}/lib/wx/include | |
67 | %dir %{pref}/lib/wx/include/wx | |
53f5e875 | 68 | %dir %{pref}/lib/wx/include/wx/base |
31fe72b6 | 69 | %{pref}/lib/wx/include/wx/base/setup.h |
2224580a | 70 | %defattr (644, root, root, 755) |
156da3a9 | 71 | %attr(755, -, -) %{pref}/bin/wxbase-config |
2224580a VZ |
72 | %attr(755, -, -) %{pref}/bin/wx-config |
73 |