]>
Commit | Line | Data |
---|---|---|
e5ea3f7a | 1 | %define pref /usr |
014e19de | 2 | %define ver 2.3.1 |
918a745c | 3 | %define rel 1 |
e5ea3f7a RR |
4 | |
5 | Summary: The GTK+ 1.2 port of the wxWindows library | |
f14a5b55 | 6 | Name: wxGTK |
e5ea3f7a RR |
7 | Version: %{ver} |
8 | Release: %{rel} | |
2a29700e | 9 | Copyright: wxWindows Licence |
f14a5b55 | 10 | Group: X11/Libraries |
b5fa0a3e VZ |
11 | Source: wxGTK-%{ver}.tar.bz2 |
12 | URL: http://www.wxwindows.org | |
31fe72b6 VZ |
13 | Packager: Vadim Zeitlin <vadim@wxwindows.org> |
14 | Prefix: %{pref} | |
15 | BuildRoot: /var/tmp/%{name}-root | |
f14a5b55 | 16 | |
212d0bb3 VZ |
17 | # all packages providing an implementation of wxWindows library (regardless of |
18 | # the toolkit used) should provide the (virtual) wxwin package, this makes it | |
6e711d5c | 19 | # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..." |
212d0bb3 VZ |
20 | Provides: wxwin |
21 | ||
31fe72b6 VZ |
22 | # in addition, we should provide libwx_gtk as automatic generator only notices |
23 | # libwx_gtk-%{ver}-%{rel} | |
24 | Provides: libwx_gtk.so | |
0f7deca9 | 25 | Provides: libwx_gtk-2.3.so |
31fe72b6 | 26 | |
f14a5b55 | 27 | %description |
212d0bb3 VZ |
28 | wxWindows is a free C++ library for cross-platform GUI development. |
29 | With wxWindows, you can create applications for different GUIs (GTK+, | |
30 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
f14a5b55 | 31 | |
641d87d8 RR |
32 | %package devel |
33 | Summary: The GTK+ 1.2 port of the wxWindows library | |
34 | Group: X11/Libraries | |
35 | Requires: wxGTK | |
36 | ||
37 | %description devel | |
c661ecca RR |
38 | Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library. |
39 | ||
40 | %package gl | |
41 | Summary: The GTK+ 1.2 port of the wxWindows library, OpenGl add-on. | |
42 | Group: X11/Libraries | |
43 | Requires: wxGTK | |
44 | ||
45 | %description gl | |
40903af7 | 46 | OpenGl add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library. |
641d87d8 | 47 | |
f14a5b55 | 48 | %prep |
31fe72b6 | 49 | %setup -n wxGTK-%{ver} |
40903af7 | 50 | ./configure --prefix=%{pref} --enable-burnt_name --with-odbc --with-opengl |
f14a5b55 RR |
51 | |
52 | %build | |
103aab26 RR |
53 | if [ "$SMP" != "" ]; then |
54 | export MAKE="make -j$SMP" | |
55 | else | |
56 | export MAKE="make" | |
57 | fi | |
58 | $MAKE | |
f14a5b55 RR |
59 | |
60 | %install | |
31fe72b6 VZ |
61 | rm -rf $RPM_BUILD_ROOT |
62 | make prefix=$RPM_BUILD_ROOT%{pref} install | |
f14a5b55 RR |
63 | |
64 | %post | |
65 | /sbin/ldconfig | |
66 | ||
67 | %postun | |
68 | /sbin/ldconfig | |
69 | ||
70 | %files | |
0f7deca9 | 71 | %defattr(-, root, root) |
2a29700e | 72 | %doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt |
641d87d8 RR |
73 | %dir %{pref}/share/wx |
74 | %{pref}/share/wx/* | |
0f7deca9 RD |
75 | %attr(755, root, root) %{pref}/lib/libwx_gtk.* |
76 | %attr(755, root, root) %{pref}/lib/libwx_gtk-2.3.* | |
641d87d8 RR |
77 | |
78 | %files devel | |
0f7deca9 | 79 | %defattr(-,root,root) |
e5ea3f7a RR |
80 | %dir %{pref}/include/wx |
81 | %{pref}/include/wx/* | |
82 | %dir %{pref}/lib/wx | |
83 | %{pref}/lib/wx/* | |
918a745c VZ |
84 | %attr(755, root, root) %{pref}/bin/wxgtk-config |
85 | %attr(755, root, root) %{pref}/bin/wx-config | |
2a29700e | 86 | |
c661ecca | 87 | %files gl |
918a745c | 88 | %attr(755, root, root) %{pref}/lib/libwx_gtk_gl* |
0f7deca9 RD |
89 | |
90 |