]> git.saurik.com Git - wxWidgets.git/blame - wxMotif.spec
expanded the comment about redefining the client data methods a bit
[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
a3e78c76 6%define ver 2.3.2
8c8fb2f6 7%define ver2 2.3
014e19de 8%define rel 1
a622c152 9
f6bcfd97 10Summary: The Motif/Lesstif port of the wxWindows library
a3e78c76 11Name: wxMOTIF
a622c152
RR
12Version: %{ver}
13Release: %{rel}
14Copyright: wxWindows Licence
15Group: X11/Libraries
a3e78c76 16Source: wxMOTIF-%{ver}.tar.bz2
f6bcfd97
BP
17URL: http://www.wxwindows.org
18Packager: Robert Fendt <rfendt@myokay.net>
a622c152
RR
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
6e711d5c 23# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
a622c152
RR
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
f6bcfd97
BP
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
a622c152 47%prep
a3e78c76 48%setup
3a922bb4 49./configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl --with-motif
a622c152
RR
50
51%build
f6bcfd97
BP
52if [ "$SMP" != "" ]; then
53 export MAKE="make -j$SMP"
54else
55 export MAKE="make"
56fi
57$MAKE
a3e78c76 58(cd locale ; make allmo)
a622c152
RR
59
60%install
61rm -rf $RPM_BUILD_ROOT
62make prefix=$RPM_BUILD_ROOT%{pref} install
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post
68/sbin/ldconfig
69
70%postun
71/sbin/ldconfig
72
a3e78c76
VS
73%post gl
74/sbin/ldconfig
75
76%postun gl
77/sbin/ldconfig
78
79%post devel
80# Install wx-config if there isn't any
81if test ! -f %{_bindir}/wx-config ; then
82 ln -sf wxmotif-%{ver2}-config %{_bindir}/wx-config
83fi
84
85%preun devel
86# Remove wx-config if it points to this package
87if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
88 SUM1=`md5sum %{_bindir}/wxmotif-%{ver2}-config | cut -c 0-32`
89 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
90 if test "x$SUM1" = "x$SUM2" ; then
91 rm -f %{_bindir}/wx-config
92 fi
93fi
94
95
a622c152 96%files
a3e78c76
VS
97%defattr (-,root,root)
98%doc COPYING.LIB *.txt
99%dir %{_datadir}/wx
100%{_datadir}/wx/*
101%{_datadir}/locale/*/*/*.mo
102%{_libdir}/libwx_motif-%{ver2}*.so.*
f6bcfd97
BP
103
104%files devel
a3e78c76
VS
105%defattr (-,root,root)
106%{_libdir}/libwx_motif-%{ver2}*.so
107%dir %{_includedir}/wx
108%{_includedir}/wx/*
109%dir %{_libdir}/wx
110%{_libdir}/wx/*
111%{_bindir}/wxmotif-%{ver2}-config
a622c152 112
f6bcfd97 113%files gl
a3e78c76
VS
114%defattr(-,root,root)
115%{_libdir}/libwx_motif_gl*