]>
Commit | Line | Data |
---|---|---|
e5ea3f7a RR |
1 | # Note that this is NOT a relocatable package |
2 | %define pref /usr | |
147a1f7e | 3 | %define ver 2.3.0 |
d5a07b9e | 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 |
40903af7 | 12 | Source: wxGTK-%{ver}.tgz |
f6bcfd97 BP |
13 | URL: http://wxwindows.org |
14 | Packager: Robert Roebling <robert@roebling.de> | |
f14a5b55 | 15 | |
212d0bb3 VZ |
16 | # all packages providing an implementation of wxWindows library (regardless of |
17 | # the toolkit used) should provide the (virtual) wxwin package, this makes it | |
18 | # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxqt..." | |
19 | Provides: wxwin | |
20 | ||
f14a5b55 | 21 | %description |
212d0bb3 VZ |
22 | wxWindows is a free C++ library for cross-platform GUI development. |
23 | With wxWindows, you can create applications for different GUIs (GTK+, | |
24 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
f14a5b55 | 25 | |
641d87d8 RR |
26 | %package devel |
27 | Summary: The GTK+ 1.2 port of the wxWindows library | |
28 | Group: X11/Libraries | |
29 | Requires: wxGTK | |
30 | ||
31 | %description devel | |
c661ecca RR |
32 | Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library. |
33 | ||
34 | %package gl | |
35 | Summary: The GTK+ 1.2 port of the wxWindows library, OpenGl add-on. | |
36 | Group: X11/Libraries | |
37 | Requires: wxGTK | |
38 | ||
39 | %description gl | |
40903af7 | 40 | OpenGl add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library. |
641d87d8 | 41 | |
f14a5b55 RR |
42 | %prep |
43 | %setup -n wxGTK | |
40903af7 | 44 | ./configure --prefix=%{pref} --enable-burnt_name --with-odbc --with-opengl |
f14a5b55 RR |
45 | |
46 | %build | |
103aab26 RR |
47 | if [ "$SMP" != "" ]; then |
48 | export MAKE="make -j$SMP" | |
49 | else | |
50 | export MAKE="make" | |
51 | fi | |
52 | $MAKE | |
f14a5b55 RR |
53 | |
54 | %install | |
f6bcfd97 | 55 | make install |
f14a5b55 RR |
56 | |
57 | %post | |
58 | /sbin/ldconfig | |
59 | ||
60 | %postun | |
61 | /sbin/ldconfig | |
62 | ||
63 | %files | |
e5ea3f7a | 64 | %defattr (644, root, root, 755) |
2a29700e | 65 | %doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt |
641d87d8 RR |
66 | %dir %{pref}/share/wx |
67 | %{pref}/share/wx/* | |
ea1f75db | 68 | %attr(755, -, -) %{pref}/lib/libwx_gtk.* |
f6bcfd97 | 69 | %attr(755, -, -) %{pref}/lib/libwx_gtk-2.2.* |
641d87d8 RR |
70 | |
71 | %files devel | |
72 | %defattr (644, root, root, 755) | |
e5ea3f7a RR |
73 | %dir %{pref}/include/wx |
74 | %{pref}/include/wx/* | |
75 | %dir %{pref}/lib/wx | |
76 | %{pref}/lib/wx/* | |
b0e282b3 | 77 | %attr(755, -, -) %{pref}/bin/wxgtk-config |
e5ea3f7a | 78 | %attr(755, -, -) %{pref}/bin/wx-config |
2a29700e | 79 | |
c661ecca RR |
80 | %files gl |
81 | %attr(755, -, -) %{pref}/lib/libwx_gtk_gl* |