]>
Commit | Line | Data |
---|---|---|
f6bcfd97 BP |
1 | # RPM .spec file for wxMotif. Based on the .spec file for wxGTK |
2 | # (c) by Robert Roebling. Modifications (c) 2000/03 by Robert Fendt. | |
3 | ||
a622c152 RR |
4 | # Note that this is NOT a relocatable package |
5 | %define pref /usr | |
014e19de | 6 | %define ver 2.3.1 |
8c8fb2f6 | 7 | %define ver2 2.3 |
014e19de | 8 | %define rel 1 |
a622c152 | 9 | |
f6bcfd97 | 10 | Summary: The Motif/Lesstif port of the wxWindows library |
a622c152 RR |
11 | Name: wxMotif |
12 | Version: %{ver} | |
13 | Release: %{rel} | |
14 | Copyright: wxWindows Licence | |
15 | Group: X11/Libraries | |
f6bcfd97 BP |
16 | Source: wxMotif-%{ver}.tgz |
17 | URL: http://www.wxwindows.org | |
18 | Packager: Robert Fendt <rfendt@myokay.net> | |
a622c152 RR |
19 | BuildRoot: /tmp/wxmotif_root |
20 | ||
21 | # all packages providing an implementation of wxWindows library (regardless of | |
22 | # the toolkit used) should provide the (virtual) wxwin package, this makes it | |
6e711d5c | 23 | # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..." |
a622c152 RR |
24 | Provides: wxwin |
25 | ||
26 | %description | |
27 | wxWindows is a free C++ library for cross-platform GUI development. | |
28 | With wxWindows, you can create applications for different GUIs (GTK+, | |
29 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
30 | ||
f6bcfd97 BP |
31 | %package devel |
32 | Summary: The Motif/Lesstif port of the wxWindows library | |
33 | Group: X11/Libraries | |
34 | Requires: wxMotif | |
35 | ||
36 | %description devel | |
37 | Header files for wxMotif, the Motif/Lesstif port of the wxWindows library. | |
38 | ||
39 | %package gl | |
40 | Summary: The Motif/Lesstif port of the wxWindows library, OpenGl add-on. | |
41 | Group: X11/Libraries | |
42 | Requires: wxMotif | |
43 | ||
44 | %description gl | |
45 | OpenGl add-on library for wxMotif, the Motif/Lesstif port of the wxWindows library. | |
46 | ||
a622c152 RR |
47 | %prep |
48 | %setup -n wxMotif | |
3a922bb4 | 49 | ./configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl --with-motif |
a622c152 RR |
50 | |
51 | %build | |
f6bcfd97 BP |
52 | if [ "$SMP" != "" ]; then |
53 | export MAKE="make -j$SMP" | |
54 | else | |
55 | export MAKE="make" | |
56 | fi | |
57 | $MAKE | |
a622c152 RR |
58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | make prefix=$RPM_BUILD_ROOT%{pref} install | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post | |
67 | /sbin/ldconfig | |
68 | ||
69 | %postun | |
70 | /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr (644, root, root, 755) | |
74 | %doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt | |
f6bcfd97 BP |
75 | %dir %{pref}/share/wx |
76 | %{pref}/share/wx/* | |
8c8fb2f6 | 77 | %attr(755, -, -) %{pref}/lib/libwx_motif-%{ver2}.* |
f6bcfd97 BP |
78 | |
79 | %files devel | |
80 | %defattr (644, root, root, 755) | |
a622c152 RR |
81 | %dir %{pref}/include/wx |
82 | %{pref}/include/wx/* | |
83 | %dir %{pref}/lib/wx | |
84 | %{pref}/lib/wx/* | |
8c8fb2f6 | 85 | %attr(755, -, -) %{pref}/bin/wxmotif-%{ver2}-config |
a622c152 RR |
86 | %attr(755, -, -) %{pref}/bin/wx-config |
87 | ||
f6bcfd97 BP |
88 | %files gl |
89 | %attr(755, -, -) %{pref}/lib/libwx_motif_gl* |