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