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