]> git.saurik.com Git - wxWidgets.git/blame - wxMotif.spec
No zero id
[wxWidgets.git] / wxMotif.spec
CommitLineData
a622c152 1%define pref /usr
4e4cea52 2%define ver 2.5.4
c31752da 3%define ver2 2.5
014e19de 4%define rel 1
a622c152 5
4eba1840
VS
6%define portname motif
7%define name wx-%{portname}
8%define wxbasename wx-base
9%define wxconfigname wx%{portname}-%{ver2}-config
10
f6bcfd97 11Summary: The Motif/Lesstif port of the wxWindows library
4eba1840 12Name: %{name}
a622c152
RR
13Version: %{ver}
14Release: %{rel}
4eba1840 15License: wxWindows Licence
a622c152 16Group: X11/Libraries
a3e78c76 17Source: wxMOTIF-%{ver}.tar.bz2
0fdc1ca1
VZ
18URL: http://www.wxwidgets.org
19Packager: wxWindows developers <wx-dev@lists.wxwidgets.org>
a622c152
RR
20BuildRoot: /tmp/wxmotif_root
21
22# all packages providing an implementation of wxWindows library (regardless of
23# the toolkit used) should provide the (virtual) wxwin package, this makes it
6e711d5c 24# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
a622c152
RR
25Provides: wxwin
26
4eba1840
VS
27Provides: wxMotif
28
29Requires: %{wxbasename} = %{ver}
4eba1840 30
a622c152
RR
31%description
32wxWindows is a free C++ library for cross-platform GUI development.
33With wxWindows, you can create applications for different GUIs (GTK+,
34Motif/LessTif, MS Windows, Mac) from the same source code.
35
f6bcfd97
BP
36%package devel
37Summary: The Motif/Lesstif port of the wxWindows library
38Group: X11/Libraries
4eba1840
VS
39Requires: %{name} = %{ver}
40Requires: %{wxbasename}-devel = %{ver}
f6bcfd97
BP
41
42%description devel
43Header files for wxMotif, the Motif/Lesstif port of the wxWindows library.
44
45%package gl
406e3e0d 46Summary: The Motif/Lesstif port of the wxWindows library, OpenGL add-on.
f6bcfd97 47Group: X11/Libraries
4eba1840 48Requires: %{name} = %{ver}
f6bcfd97
BP
49
50%description gl
406e3e0d
VS
51OpenGL add-on library for wxMotif, the Motif/Lesstif port of the wxWindows library.
52
53%package static
54Summary: wxMotif static libraries
55Group: Development/Libraries
56
57%description static
58Static libraries for wxMotif. You need them if you want to link statically against wxMotif.
59
a622c152 60%prep
4eba1840 61%setup -q -n wxMOTIF-%{ver}
a622c152
RR
62
63%build
f6bcfd97
BP
64if [ "$SMP" != "" ]; then
65 export MAKE="make -j$SMP"
66else
67 export MAKE="make"
68fi
406e3e0d 69
406e3e0d
VS
70mkdir obj-shared
71cd obj-shared
86ec2935 72../configure --prefix=%{pref} --with-odbc --with-opengl --with-motif
f6bcfd97 73$MAKE
406e3e0d
VS
74cd ..
75
76mkdir obj-static
77cd obj-static
78../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl --with-motif
79$MAKE
80cd ..
a622c152
RR
81
82%install
83rm -rf $RPM_BUILD_ROOT
406e3e0d
VS
84(cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
85(cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
a622c152 86
4eba1840 87# Remove headers that are part of wx-base-devel:
d10382ab
VS
88
89# --- wxBase headers list begins here ---
90cat <<EOF >wxbase-headers-list
91wx/afterstd.h
92wx/app.h
93wx/apptrait.h
8329fea8 94wx/archive.h
d10382ab
VS
95wx/arrimpl.cpp
96wx/arrstr.h
97wx/beforestd.h
98wx/buffer.h
99wx/build.h
100wx/chkconf.h
82b0b7f6 101wx/clntdata.h
d10382ab
VS
102wx/cmdline.h
103wx/confbase.h
104wx/config.h
105wx/containr.h
106wx/datetime.h
107wx/datetime.inl
108wx/datstrm.h
109wx/dde.h
110wx/debug.h
54e80d76 111wx/debugrpt.h
d10382ab
VS
112wx/defs.h
113wx/dir.h
20b35a69 114wx/dlimpexp.h
d10382ab
VS
115wx/dynarray.h
116wx/dynlib.h
117wx/dynload.h
118wx/encconv.h
119wx/event.h
671a85ea 120wx/except.h
d10382ab
VS
121wx/features.h
122wx/ffile.h
123wx/file.h
124wx/fileconf.h
125wx/filefn.h
126wx/filename.h
127wx/filesys.h
128wx/fontenc.h
129wx/fontmap.h
130wx/fs_mem.h
131wx/fs_zip.h
132wx/hash.h
133wx/hashmap.h
134wx/hashset.h
54e80d76 135wx/html/forcelnk.h
d10382ab
VS
136wx/iconloc.h
137wx/init.h
138wx/intl.h
139wx/iosfwrap.h
140wx/ioswrap.h
141wx/ipc.h
142wx/ipcbase.h
143wx/isql.h
144wx/isqlext.h
145wx/list.h
146wx/listimpl.cpp
147wx/log.h
148wx/longlong.h
149wx/math.h
150wx/memconf.h
151wx/memory.h
152wx/memtext.h
153wx/mimetype.h
154wx/module.h
155wx/msgout.h
156wx/msgout.h
157wx/mstream.h
158wx/object.h
159wx/platform.h
160wx/process.h
161wx/ptr_scpd.h
162wx/regex.h
163wx/scopeguard.h
164wx/snglinst.h
c33fae85 165wx/sstream.h
b71531ad 166wx/stack.h
107d0fd4 167wx/stackwalk.h
dd65d8c8 168wx/stdpaths.h
ef335a4f 169wx/stockitem.h
d10382ab
VS
170wx/stopwatch.h
171wx/strconv.h
172wx/stream.h
173wx/string.h
174wx/sysopt.h
175wx/textbuf.h
176wx/textfile.h
177wx/thread.h
178wx/thrimpl.cpp
179wx/timer.h
180wx/tokenzr.h
181wx/txtstrm.h
182wx/types.h
dd65d8c8 183wx/uri.h
d10382ab
VS
184wx/utils.h
185wx/variant.h
186wx/vector.h
187wx/version.h
188wx/volume.h
189wx/wfstream.h
190wx/wx.h
191wx/wxchar.h
192wx/wxprec.h
193wx/xti.h
194wx/xtistrm.h
195wx/zipstrm.h
196wx/zstream.h
197wx/msw/apptrait.h
198wx/msw/apptbase.h
199wx/msw/chkconf.h
200wx/msw/crashrpt.h
201wx/msw/dde.h
107d0fd4 202wx/msw/debughlp.h
d10382ab
VS
203wx/msw/gccpriv.h
204wx/msw/mimetype.h
107d0fd4 205wx/msw/stackwalk.h
d10382ab
VS
206wx/msw/winundef.h
207wx/msw/wrapcctl.h
208wx/msw/wrapwin.h
209wx/fs_inet.h
210wx/gsocket.h
211wx/protocol/file.h
212wx/protocol/ftp.h
213wx/protocol/http.h
214wx/protocol/protocol.h
215wx/sckaddr.h
216wx/sckipc.h
217wx/sckstrm.h
218wx/socket.h
219wx/url.h
220wx/msw/gsockmsw.h
221wx/xml/xml.h
222wx/xtixml.h
223wx/db.h
224wx/dbkeyg.h
225wx/dbtable.h
226EOF
227# --- wxBase headers list ends here ---
228for f in `cat wxbase-headers-list` ; do
68b47b2f 229 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-*/$f
4eba1840 230done
4eba1840
VS
231
232# list of all core headers:
233find $RPM_BUILD_ROOT/usr/include/wx -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
234
88e3652f
VS
235# remove wxBase files so that RPM doesn't complain about unpackaged files:
236rm -f $RPM_BUILD_ROOT%{_libdir}/libwx_base*
237rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/*
238rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/*
239
acea2a0b 240
a622c152
RR
241%clean
242rm -rf $RPM_BUILD_ROOT
243
244%post
245/sbin/ldconfig
246
247%postun
248/sbin/ldconfig
249
a3e78c76
VS
250%post gl
251/sbin/ldconfig
252
253%postun gl
254/sbin/ldconfig
255
a3e78c76 256
4eba1840
VS
257%files
258%defattr(-,root,root)
a3e78c76 259%doc COPYING.LIB *.txt
4eba1840
VS
260%{_libdir}/libwx_%{portname}*_core*.so.*
261%{_libdir}/libwx_%{portname}*_html*.so.*
262%{_libdir}/libwx_%{portname}*_adv*.so.*
263%{_libdir}/libwx_%{portname}*_dbgrid*.so.*
f6bcfd97 264
4eba1840
VS
265%files devel -f core-headers.files
266%defattr(-,root,root)
267%{_libdir}/libwx_%{portname}*_core*.so
268%{_libdir}/libwx_%{portname}*_html*.so
269%{_libdir}/libwx_%{portname}*_adv*.so
270%{_libdir}/libwx_%{portname}*_dbgrid*.so
271%{_libdir}/libwx_%{portname}*_gl*.so
a3e78c76
VS
272%dir %{_libdir}/wx
273%{_libdir}/wx/*
4eba1840 274%{_bindir}/%{wxconfigname}
a622c152 275
f6bcfd97 276%files gl
a3e78c76 277%defattr(-,root,root)
4eba1840 278%{_libdir}/libwx_%{portname}*_gl*.so.*
406e3e0d
VS
279
280%files static
281%defattr (-,root,root)
4eba1840 282%{_libdir}/libwx_%{portname}*.a
0fdc1ca1 283