]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxMotif.spec
compilation fix
[wxWidgets.git] / wxMotif.spec
... / ...
CommitLineData
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
4# Note that this is NOT a relocatable package
5%define pref /usr
6%define ver 2.3.1
7%define ver2 2.3
8%define rel 1
9
10Summary: The Motif/Lesstif port of the wxWindows library
11Name: wxMotif
12Version: %{ver}
13Release: %{rel}
14Copyright: wxWindows Licence
15Group: X11/Libraries
16Source: wxMotif-%{ver}.tgz
17URL: http://www.wxwindows.org
18Packager: Robert Fendt <rfendt@myokay.net>
19BuildRoot: /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
23# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
24Provides: wxwin
25
26%description
27wxWindows is a free C++ library for cross-platform GUI development.
28With wxWindows, you can create applications for different GUIs (GTK+,
29Motif/LessTif, MS Windows, Mac) from the same source code.
30
31%package devel
32Summary: The Motif/Lesstif port of the wxWindows library
33Group: X11/Libraries
34Requires: wxMotif
35
36%description devel
37Header files for wxMotif, the Motif/Lesstif port of the wxWindows library.
38
39%package gl
40Summary: The Motif/Lesstif port of the wxWindows library, OpenGl add-on.
41Group: X11/Libraries
42Requires: wxMotif
43
44%description gl
45OpenGl add-on library for wxMotif, the Motif/Lesstif port of the wxWindows library.
46
47%prep
48%setup -n wxMotif
49./configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl --with-motif
50
51%build
52if [ "$SMP" != "" ]; then
53 export MAKE="make -j$SMP"
54else
55 export MAKE="make"
56fi
57$MAKE
58
59%install
60rm -rf $RPM_BUILD_ROOT
61make prefix=$RPM_BUILD_ROOT%{pref} install
62
63%clean
64rm -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
75%dir %{pref}/share/wx
76%{pref}/share/wx/*
77%attr(755, -, -) %{pref}/lib/libwx_motif-%{ver2}.*
78
79%files devel
80%defattr (644, root, root, 755)
81%dir %{pref}/include/wx
82%{pref}/include/wx/*
83%dir %{pref}/lib/wx
84%{pref}/lib/wx/*
85%attr(755, -, -) %{pref}/bin/wxmotif-%{ver2}-config
86%attr(755, -, -) %{pref}/bin/wx-config
87
88%files gl
89%attr(755, -, -) %{pref}/lib/libwx_motif_gl*