]> git.saurik.com Git - wxWidgets.git/blob - wxGTK_RR.spec
335f67f9e7877c19d5d3f7cca202eae96019bfd9
[wxWidgets.git] / wxGTK_RR.spec
1 %define _prefix /opt/gnome
2 %define ver 2.6.0
3 %define ver2 2.6
4 %define rel 1
5
6 # Configurable settings (use --with(out) {unicode,gtk2} on rpmbuild cmd line):
7 %define unicode 1
8 %{?_with_unicode: %{expand: %%define unicode 1}}
9 %{?_without_unicode: %{expand: %%define unicode 0}}
10
11 %define gtk2 1
12 %{?_with_gtk2: %{expand: %%define gtk2 1}}
13 %{?_without_gtk2: %{expand: %%define gtk2 0}}
14
15 # "buildname" needs to be e.g. gtk2ud for debug builds
16 %if %{gtk2}
17 %define gtkver 2
18 %define portname gtk2
19 %if %{unicode}
20 %define buildname gtk2u
21 %else
22 %define buildname gtk2u
23 %endif
24 %else
25 %define gtkver 1.2
26 %define portname gtk
27 %define buildname gtk
28 %endif
29
30 %if %{unicode}
31 %define name wx-%{portname}-unicode
32 %define wxconfig %{portname}-unicode-release-%{ver2}
33 %define wxconfigstatic %{portname}-unicode-release-static-%{ver2}
34 %define wxconfiglink wx%{portname}u-%{ver2}-config
35 %else
36 %define name wx-%{portname}
37 %define wxconfig %{portname}-ansi-release-%{ver2}
38 %define wxconfigstatic %{portname}-ansi-release-static-%{ver2}
39 %define wxconfiglink wx%{portname}-%{ver2}-config
40 %endif
41
42 %if %{unicode}
43 %define wxbasename wx-base-unicode
44 %define wxbaseconfig base-unicode-release-%{ver2}
45 %define wxbaseconfigstatic base-unicode-release-static-%{ver2}
46 %define wxbaseconfiglink wxbaseu-%{ver2}-config
47 %else
48 %define wxbasename wx-base-ansi
49 %define wxbaseconfig base-ansi-release-%{ver2}
50 %define wxbaseconfigstatic base-ansi-release-static-%{ver2}
51 %define wxbaseconfiglink wxbase-%{ver2}-config
52 %endif
53
54 Summary: The GTK+ %{gtkver} port of the wxWidgets library
55 Name: %{name}
56 Version: %{ver}
57 Release: %{rel}
58 License: wxWindows Licence
59 Group: X11/Libraries
60 Source: wxGTK-%{ver}.tar.gz
61 URL: http://www.wxwidgets.org
62 Packager: Vadim Zeitlin <vadim@wxwindows.org>
63 Prefix: %{_prefix}
64 BuildRoot: %{_tmppath}/%{name}-root
65 Requires: %{wxbasename} = %{ver}
66 %if %{portname} == gtk2
67 # BuildRequires: gtk+-2.0-devel
68 %else
69 # BuildRequires: gtk+-devel >= 1.2.0
70 %endif
71
72 BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel
73
74 # all packages providing an implementation of wxWidgets library (regardless of
75 # the toolkit used) should provide the (virtual) wxwin package, this makes it
76 # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
77 Provides: wxwin
78 Provides: wxGTK
79
80 %description
81 wxWidgets is a free C++ library for cross-platform GUI development.
82 With wxWidgets, you can create applications for different GUIs (GTK+,
83 Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code.
84
85 %package devel
86 Summary: The GTK+ %{gtkver} port of the wxWidgets library
87 Group: X11/Libraries
88 Requires: %{name} = %{ver}
89 Requires: %{wxbasename}-devel = %{ver}
90 Provides: wxGTK-devel
91
92 %description devel
93 The GTK+ %{gtkver} port of the wxWidgets library, header files.
94
95 %package gl
96 Summary: The GTK+ %{gtkver} port of the wxWidgets library, OpenGL add-on.
97 Group: X11/Libraries
98 Requires: %{name} = %{ver}
99 Provides: wxGTK-gl
100
101 %description gl
102 OpenGL add-on library for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
103
104 %package -n %{wxbasename}
105 Summary: wxBase library - non-GUI support classes of the wxWidgets toolkit
106 Group: Development/Libraries
107 Provides: wxBase
108
109 %description -n %{wxbasename}
110 wxBase is a collection of C++ classes providing basic data structures (strings,
111 lists, arrays), portable wrappers around many OS-specific funstions (file
112 operations, time/date manipulations, threads, processes, sockets, shared
113 library loading) as well as other utility classes (streams, archive and
114 compression). wxBase currently supports Win32, most Unix variants (Linux,
115 FreeBSD, Solaris, HP-UX) and MacOS X 10.3.
116
117 %package -n %{wxbasename}-devel
118 Summary: wxBase library, header files.
119 Group: Development/Libraries
120 Provides: wxBase-devel
121
122 %description -n %{wxbasename}-devel
123 wxBase library - non-GUI support classes of the wxWidgets toolkit,
124 header files.
125
126 %package contrib
127 Summary: The GTK+ %{gtkver} port of the wxWidgets library, contributed libraries.
128 Group: X11/Libraries
129 Requires: %{name} = %{ver}
130
131 %description contrib
132 Contributed libraries for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
133
134 %package contrib-devel
135 Summary: The GTK+ %{gtkver} port of the wxWidgets library
136 Group: X11/Libraries
137 Requires: %{name}-contrib = %{ver}
138 Requires: %{name}-devel = %{ver}
139
140 %description contrib-devel
141 Header files for contributed libraries for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
142
143 %prep
144 %setup -q -n wxGTK-%{ver}
145
146 %build
147 if [ "$SMP" != "" ]; then
148 export MAKE="make -j$SMP"
149 else
150 export MAKE="make"
151 fi
152
153 mkdir obj-shared-no-gui
154 cd obj-shared-no-gui
155 ../configure --prefix=%{_prefix} \
156 --disable-gui \
157 --disable-optimise \
158 %if %{unicode}
159 --enable-unicode
160 %else
161 --disable-unicode
162 %endif
163 $MAKE
164 cd ..
165
166 mkdir obj-shared
167 cd obj-shared
168 ../configure --prefix=%{_prefix} \
169 %if ! %{gtk2}
170 --with-gtk1 \
171 %else
172 --with-gtk2 \
173 %endif
174 --disable-optimise \
175 %if %{unicode}
176 --enable-unicode \
177 %else
178 --disable-unicode \
179 %endif
180 --with-opengl
181 $MAKE
182
183 cd contrib/src
184 $MAKE
185 cd ../../..
186
187 mkdir obj-static-no-gui
188 cd obj-static-no-gui
189 ../configure --prefix=%{_prefix} \
190 --disable-gui \
191 --disable-shared \
192 --disable-optimise \
193 %if %{unicode}
194 --enable-unicode
195 %else
196 --disable-unicode
197 %endif
198 $MAKE
199 cd ..
200
201 mkdir obj-static
202 cd obj-static
203 ../configure --prefix=%{_prefix} \
204 %if ! %{gtk2}
205 --with-gtk1 \
206 %else
207 --with-gtk2 \
208 %endif
209 --disable-shared \
210 --disable-optimise \
211 %if %{unicode}
212 --enable-unicode \
213 %else
214 --disable-unicode \
215 %endif
216 --with-opengl
217 $MAKE
218
219 cd contrib/src
220 $MAKE
221 cd ../../..
222
223 %install
224 rm -rf $RPM_BUILD_ROOT
225 (cd obj-static-no-gui; make DESTDIR=$RPM_BUILD_ROOT install)
226 (cd obj-static; make DESTDIR=$RPM_BUILD_ROOT install)
227 (cd obj-shared-no-gui; DESTDIR=$RPM_BUILD_ROOT install)
228 (cd obj-shared; make DESTDIR=$RPM_BUILD_ROOT install)
229
230 # --- wxBase headers list begins here ---
231 cat <<EOF >wxbase-headers.files
232 wx/afterstd.h
233 wx/app.h
234 wx/apptrait.h
235 wx/archive.h
236 wx/arrimpl.cpp
237 wx/arrstr.h
238 wx/beforestd.h
239 wx/buffer.h
240 wx/build.h
241 wx/chkconf.h
242 wx/clntdata.h
243 wx/cmdline.h
244 wx/confbase.h
245 wx/config.h
246 wx/containr.h
247 wx/datetime.h
248 wx/datetime.inl
249 wx/datstrm.h
250 wx/dde.h
251 wx/debug.h
252 wx/defs.h
253 wx/dir.h
254 wx/dlimpexp.h
255 wx/dynarray.h
256 wx/dynlib.h
257 wx/dynload.h
258 wx/encconv.h
259 wx/event.h
260 wx/except.h
261 wx/features.h
262 wx/ffile.h
263 wx/file.h
264 wx/fileconf.h
265 wx/filefn.h
266 wx/filename.h
267 wx/filesys.h
268 wx/fontenc.h
269 wx/fontmap.h
270 wx/fs_mem.h
271 wx/fs_zip.h
272 wx/hash.h
273 wx/hashmap.h
274 wx/hashset.h
275 wx/html/forcelnk.h
276 wx/iconloc.h
277 wx/init.h
278 wx/intl.h
279 wx/iosfwrap.h
280 wx/ioswrap.h
281 wx/ipc.h
282 wx/ipcbase.h
283 wx/isql.h
284 wx/isqlext.h
285 wx/list.h
286 wx/listimpl.cpp
287 wx/log.h
288 wx/longlong.h
289 wx/math.h
290 wx/memconf.h
291 wx/memory.h
292 wx/memtext.h
293 wx/mimetype.h
294 wx/module.h
295 wx/msgout.h
296 wx/mstream.h
297 wx/object.h
298 wx/platform.h
299 wx/process.h
300 wx/ptr_scpd.h
301 wx/regex.h
302 wx/scopeguard.h
303 wx/snglinst.h
304 wx/sstream.h
305 wx/stack.h
306 wx/stackwalk.h
307 wx/stdpaths.h
308 wx/stockitem.h
309 wx/stopwatch.h
310 wx/strconv.h
311 wx/stream.h
312 wx/string.h
313 wx/sysopt.h
314 wx/textbuf.h
315 wx/textfile.h
316 wx/thread.h
317 wx/thrimpl.cpp
318 wx/timer.h
319 wx/tokenzr.h
320 wx/txtstrm.h
321 wx/types.h
322 wx/uri.h
323 wx/utils.h
324 wx/variant.h
325 wx/vector.h
326 wx/version.h
327 wx/volume.h
328 wx/wfstream.h
329 wx/wx.h
330 wx/wxchar.h
331 wx/wxprec.h
332 wx/xti.h
333 wx/xtistrm.h
334 wx/zipstrm.h
335 wx/zstream.h
336 wx/fs_inet.h
337 wx/gsocket.h
338 wx/protocol/file.h
339 wx/protocol/ftp.h
340 wx/protocol/http.h
341 wx/protocol/protocol.h
342 wx/sckaddr.h
343 wx/sckipc.h
344 wx/sckstrm.h
345 wx/socket.h
346 wx/url.h
347 wx/xml/xml.h
348 wx/xtixml.h
349 wx/db.h
350 wx/dbkeyg.h
351 wx/dbtable.h
352 wx/unix/apptbase.h
353 wx/unix/apptrait.h
354 wx/unix/execute.h
355 wx/unix/gsockunx.h
356 wx/unix/mimetype.h
357 wx/unix/pipe.h
358 wx/unix/stackwalk.h
359 wx/unix/stdpaths.h
360 EOF
361 # --- wxBase headers list ends here ---
362 cat <<EOF >wxbase-headers.paths
363 %{_includedir}/wx-%{ver2}/wx/afterstd.h
364 %{_includedir}/wx-%{ver2}/wx/app.h
365 %{_includedir}/wx-%{ver2}/wx/apptrait.h
366 %{_includedir}/wx-%{ver2}/wx/archive.h
367 %{_includedir}/wx-%{ver2}/wx/arrimpl.cpp
368 %{_includedir}/wx-%{ver2}/wx/arrstr.h
369 %{_includedir}/wx-%{ver2}/wx/beforestd.h
370 %{_includedir}/wx-%{ver2}/wx/buffer.h
371 %{_includedir}/wx-%{ver2}/wx/build.h
372 %{_includedir}/wx-%{ver2}/wx/chkconf.h
373 %{_includedir}/wx-%{ver2}/wx/clntdata.h
374 %{_includedir}/wx-%{ver2}/wx/cmdline.h
375 %{_includedir}/wx-%{ver2}/wx/confbase.h
376 %{_includedir}/wx-%{ver2}/wx/config.h
377 %{_includedir}/wx-%{ver2}/wx/containr.h
378 %{_includedir}/wx-%{ver2}/wx/datetime.h
379 %{_includedir}/wx-%{ver2}/wx/datetime.inl
380 %{_includedir}/wx-%{ver2}/wx/datstrm.h
381 %{_includedir}/wx-%{ver2}/wx/dde.h
382 %{_includedir}/wx-%{ver2}/wx/debug.h
383 %{_includedir}/wx-%{ver2}/wx/defs.h
384 %{_includedir}/wx-%{ver2}/wx/dir.h
385 %{_includedir}/wx-%{ver2}/wx/dlimpexp.h
386 %{_includedir}/wx-%{ver2}/wx/dynarray.h
387 %{_includedir}/wx-%{ver2}/wx/dynlib.h
388 %{_includedir}/wx-%{ver2}/wx/dynload.h
389 %{_includedir}/wx-%{ver2}/wx/encconv.h
390 %{_includedir}/wx-%{ver2}/wx/event.h
391 %{_includedir}/wx-%{ver2}/wx/except.h
392 %{_includedir}/wx-%{ver2}/wx/features.h
393 %{_includedir}/wx-%{ver2}/wx/ffile.h
394 %{_includedir}/wx-%{ver2}/wx/file.h
395 %{_includedir}/wx-%{ver2}/wx/fileconf.h
396 %{_includedir}/wx-%{ver2}/wx/filefn.h
397 %{_includedir}/wx-%{ver2}/wx/filename.h
398 %{_includedir}/wx-%{ver2}/wx/filesys.h
399 %{_includedir}/wx-%{ver2}/wx/fontenc.h
400 %{_includedir}/wx-%{ver2}/wx/fontmap.h
401 %{_includedir}/wx-%{ver2}/wx/fs_mem.h
402 %{_includedir}/wx-%{ver2}/wx/fs_zip.h
403 %{_includedir}/wx-%{ver2}/wx/hash.h
404 %{_includedir}/wx-%{ver2}/wx/hashmap.h
405 %{_includedir}/wx-%{ver2}/wx/hashset.h
406 %{_includedir}/wx-%{ver2}/wx/html/forcelnk.h
407 %{_includedir}/wx-%{ver2}/wx/iconloc.h
408 %{_includedir}/wx-%{ver2}/wx/init.h
409 %{_includedir}/wx-%{ver2}/wx/intl.h
410 %{_includedir}/wx-%{ver2}/wx/iosfwrap.h
411 %{_includedir}/wx-%{ver2}/wx/ioswrap.h
412 %{_includedir}/wx-%{ver2}/wx/ipc.h
413 %{_includedir}/wx-%{ver2}/wx/ipcbase.h
414 %{_includedir}/wx-%{ver2}/wx/isql.h
415 %{_includedir}/wx-%{ver2}/wx/isqlext.h
416 %{_includedir}/wx-%{ver2}/wx/list.h
417 %{_includedir}/wx-%{ver2}/wx/listimpl.cpp
418 %{_includedir}/wx-%{ver2}/wx/log.h
419 %{_includedir}/wx-%{ver2}/wx/longlong.h
420 %{_includedir}/wx-%{ver2}/wx/math.h
421 %{_includedir}/wx-%{ver2}/wx/memconf.h
422 %{_includedir}/wx-%{ver2}/wx/memory.h
423 %{_includedir}/wx-%{ver2}/wx/memtext.h
424 %{_includedir}/wx-%{ver2}/wx/mimetype.h
425 %{_includedir}/wx-%{ver2}/wx/module.h
426 %{_includedir}/wx-%{ver2}/wx/msgout.h
427 %{_includedir}/wx-%{ver2}/wx/mstream.h
428 %{_includedir}/wx-%{ver2}/wx/object.h
429 %{_includedir}/wx-%{ver2}/wx/platform.h
430 %{_includedir}/wx-%{ver2}/wx/process.h
431 %{_includedir}/wx-%{ver2}/wx/ptr_scpd.h
432 %{_includedir}/wx-%{ver2}/wx/regex.h
433 %{_includedir}/wx-%{ver2}/wx/scopeguard.h
434 %{_includedir}/wx-%{ver2}/wx/snglinst.h
435 %{_includedir}/wx-%{ver2}/wx/sstream.h
436 %{_includedir}/wx-%{ver2}/wx/stack.h
437 %{_includedir}/wx-%{ver2}/wx/stackwalk.h
438 %{_includedir}/wx-%{ver2}/wx/stdpaths.h
439 %{_includedir}/wx-%{ver2}/wx/stockitem.h
440 %{_includedir}/wx-%{ver2}/wx/stopwatch.h
441 %{_includedir}/wx-%{ver2}/wx/strconv.h
442 %{_includedir}/wx-%{ver2}/wx/stream.h
443 %{_includedir}/wx-%{ver2}/wx/string.h
444 %{_includedir}/wx-%{ver2}/wx/sysopt.h
445 %{_includedir}/wx-%{ver2}/wx/textbuf.h
446 %{_includedir}/wx-%{ver2}/wx/textfile.h
447 %{_includedir}/wx-%{ver2}/wx/thread.h
448 %{_includedir}/wx-%{ver2}/wx/thrimpl.cpp
449 %{_includedir}/wx-%{ver2}/wx/timer.h
450 %{_includedir}/wx-%{ver2}/wx/tokenzr.h
451 %{_includedir}/wx-%{ver2}/wx/txtstrm.h
452 %{_includedir}/wx-%{ver2}/wx/types.h
453 %{_includedir}/wx-%{ver2}/wx/uri.h
454 %{_includedir}/wx-%{ver2}/wx/utils.h
455 %{_includedir}/wx-%{ver2}/wx/variant.h
456 %{_includedir}/wx-%{ver2}/wx/vector.h
457 %{_includedir}/wx-%{ver2}/wx/version.h
458 %{_includedir}/wx-%{ver2}/wx/volume.h
459 %{_includedir}/wx-%{ver2}/wx/wfstream.h
460 %{_includedir}/wx-%{ver2}/wx/wx.h
461 %{_includedir}/wx-%{ver2}/wx/wxchar.h
462 %{_includedir}/wx-%{ver2}/wx/wxprec.h
463 %{_includedir}/wx-%{ver2}/wx/xti.h
464 %{_includedir}/wx-%{ver2}/wx/xtistrm.h
465 %{_includedir}/wx-%{ver2}/wx/zipstrm.h
466 %{_includedir}/wx-%{ver2}/wx/zstream.h
467 %{_includedir}/wx-%{ver2}/wx/fs_inet.h
468 %{_includedir}/wx-%{ver2}/wx/gsocket.h
469 %{_includedir}/wx-%{ver2}/wx/protocol/file.h
470 %{_includedir}/wx-%{ver2}/wx/protocol/ftp.h
471 %{_includedir}/wx-%{ver2}/wx/protocol/http.h
472 %{_includedir}/wx-%{ver2}/wx/protocol/protocol.h
473 %{_includedir}/wx-%{ver2}/wx/sckaddr.h
474 %{_includedir}/wx-%{ver2}/wx/sckipc.h
475 %{_includedir}/wx-%{ver2}/wx/sckstrm.h
476 %{_includedir}/wx-%{ver2}/wx/socket.h
477 %{_includedir}/wx-%{ver2}/wx/url.h
478 %{_includedir}/wx-%{ver2}/wx/xml/xml.h
479 %{_includedir}/wx-%{ver2}/wx/xtixml.h
480 %{_includedir}/wx-%{ver2}/wx/db.h
481 %{_includedir}/wx-%{ver2}/wx/dbkeyg.h
482 %{_includedir}/wx-%{ver2}/wx/dbtable.h
483 %{_includedir}/wx-%{ver2}/wx/unix/apptbase.h
484 %{_includedir}/wx-%{ver2}/wx/unix/apptrait.h
485 %{_includedir}/wx-%{ver2}/wx/unix/execute.h
486 %{_includedir}/wx-%{ver2}/wx/unix/gsockunx.h
487 %{_includedir}/wx-%{ver2}/wx/unix/mimetype.h
488 %{_includedir}/wx-%{ver2}/wx/unix/pipe.h
489 %{_includedir}/wx-%{ver2}/wx/unix/stackwalk.h
490 %{_includedir}/wx-%{ver2}/wx/unix/stdpaths.h
491 EOF
492 # --- wxBase headers list ends here ---
493
494 # temporarily remove base headers
495 mkdir $RPM_BUILD_ROOT/_save_dir
496 cp -r $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT/_save_dir
497 for f in `cat wxbase-headers.files` ; do
498 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2}/$f
499 done
500 # list of all core headers:
501 find $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
502 # move base headers (actually all headers) back again
503 cp -f -r $RPM_BUILD_ROOT/_save_dir/* $RPM_BUILD_ROOT%{_includedir}
504 rm -rf $RPM_BUILD_ROOT/_save_dir
505
506 # contrib stuff:
507 (cd obj-shared/contrib/src; make DESTDIR=$RPM_BUILD_ROOT install)
508 (cd obj-shared/utils/wxrc; make DESTDIR=$RPM_BUILD_ROOT install)
509
510 %clean
511 rm -rf $RPM_BUILD_ROOT
512
513 %post
514 /sbin/ldconfig
515
516 %postun
517 /sbin/ldconfig
518
519 %post devel
520 # link wx-config when you install RPM.
521 %if %{unicode}
522 ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config
523 %endif
524 # link wx-config with explicit name.
525 ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
526 /sbin/ldconfig
527
528 %postun devel
529 /sbin/ldconfig
530
531 %preun devel
532 if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
533 SUM1=`md5sum %{_libdir}/wx/config/%{wxconfig} | cut -c 0-32`
534 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
535 if test "x$SUM1" = "x$SUM2" ; then
536 rm -f %{_bindir}/wx-config
537 fi
538 fi
539 rm -f %{_bindir}/%{wxconfiglink}
540
541 %post -n %{wxbasename}
542 /sbin/ldconfig
543
544 %postun -n %{wxbasename}
545 /sbin/ldconfig
546
547 %post -n %{wxbasename}-devel
548 # link wx-config with explicit name.
549 ln -sf %{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink}
550 /sbin/ldconfig
551
552 %postun -n %{wxbasename}-devel
553 /sbin/ldconfig
554
555 %preun -n %{wxbasename}-devel
556 rm -f %{_bindir}/%{wxbaseconfiglink}
557
558 %post gl
559 /sbin/ldconfig
560
561 %postun gl
562 /sbin/ldconfig
563
564 %post contrib
565 /sbin/ldconfig
566
567 %postun contrib
568 /sbin/ldconfig
569
570 %post contrib-devel
571 /sbin/ldconfig
572
573 %postun contrib-devel
574 /sbin/ldconfig
575
576 %files
577 %defattr(-,root,root)
578 %doc COPYING.LIB *.txt
579 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.*
580 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so.*
581 %if !%{unicode}
582 %{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.so.*
583 %endif
584 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so.*
585 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so.*
586 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.*
587 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.*
588
589
590 %files devel -f core-headers.files
591 %defattr(-,root,root)
592 # shared libs
593 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
594 %{_libdir}/libwx_%{buildname}_core-%{ver2}.so
595 %if !%{unicode}
596 %{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.so
597 %endif
598 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
599 %{_libdir}/libwx_%{buildname}_html-%{ver2}.so
600 %{_libdir}/libwx_%{buildname}_media-%{ver2}.so
601 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
602 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
603 # static libs
604 %{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
605 %{_libdir}/libwx_%{buildname}_core-%{ver2}.a
606 %if !%{unicode}
607 %{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.a
608 %endif
609 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
610 %{_libdir}/libwx_%{buildname}_html-%{ver2}.a
611 %{_libdir}/libwx_%{buildname}_media-%{ver2}.a
612 %{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
613 %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
614 %dir %{_libdir}/wx
615 %{_libdir}/wx/config/%{wxconfig}
616 %{_libdir}/wx/include/%{wxconfig}/wx/setup.h
617 %{_libdir}/wx/config/%{wxconfigstatic}
618 %{_libdir}/wx/include/%{wxconfigstatic}/wx/setup.h
619 %{_bindir}/wxrc*
620
621 %files -n %{wxbasename}
622 %defattr(-,root,root)
623 %{_libdir}/libwx_base*-%{ver2}.so.*
624 #%{_datadir}/locale/*/*/*
625
626 %files -n %{wxbasename}-devel -f wxbase-headers.paths
627 %defattr (-,root,root)
628 %dir %{_includedir}/wx-%{ver2}
629 %{_libdir}/libwx_base*-%{ver2}.so
630 %{_libdir}/libwx_base*-%{ver2}.a
631 %if %{unicode}
632 %{_libdir}/libwxregexu-%{ver2}.a
633 %endif
634 %dir %{_libdir}/wx
635 %{_libdir}/wx/config/%{wxbaseconfig}
636 %{_libdir}/wx/include/%{wxbaseconfig}/wx/setup.h
637 %{_libdir}/wx/config/%{wxbaseconfigstatic}
638 %{_libdir}/wx/include/%{wxbaseconfigstatic}/wx/setup.h
639 %{_datadir}/aclocal/*.m4
640
641 %files gl
642 %defattr(-,root,root)
643 %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.*
644
645 %files contrib
646 %defattr(-,root,root)
647 %{_libdir}/libwx_%{buildname}_animate-%{ver2}.so.*
648 %{_libdir}/libwx_%{buildname}_deprecated-%{ver2}.so.*
649 %{_libdir}/libwx_%{buildname}_fl-%{ver2}.so.*
650 %{_libdir}/libwx_%{buildname}_gizmos-%{ver2}.so.*
651 %{_libdir}/libwx_%{buildname}_gizmos_xrc-%{ver2}.so.*
652 %{_libdir}/libwx_%{buildname}_mmedia-%{ver2}.so.*
653 %{_libdir}/libwx_%{buildname}_ogl-%{ver2}.so.*
654 %{_libdir}/libwx_%{buildname}_plot-%{ver2}.so.*
655 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.*
656 %{_libdir}/libwx_%{buildname}_svg-%{ver2}.so.*
657
658 %files contrib-devel
659 %defattr(-,root,root)
660 %dir %{_includedir}/wx-%{ver2}/wx/animate
661 %{_includedir}/wx-%{ver2}/wx/animate/*
662 %{_libdir}/libwx_%{buildname}_animate-%{ver2}.so
663
664 %dir %{_includedir}/wx-%{ver2}/wx/deprecated
665 %{_includedir}/wx-%{ver2}/wx/deprecated/*
666 %{_libdir}/libwx_%{buildname}_deprecated-%{ver2}.so
667
668 %dir %{_includedir}/wx-%{ver2}/wx/fl
669 %{_includedir}/wx-%{ver2}/wx/fl/*
670 %{_libdir}/libwx_%{buildname}_fl-%{ver2}.so
671
672 %dir %{_includedir}/wx-%{ver2}/wx/gizmos
673 %{_includedir}/wx-%{ver2}/wx/gizmos/*
674 %{_libdir}/libwx_%{buildname}_gizmos-%{ver2}.so
675 %{_libdir}/libwx_%{buildname}_gizmos_xrc-%{ver2}.so
676
677 %dir %{_includedir}/wx-%{ver2}/wx/mmedia
678 %{_includedir}/wx-%{ver2}/wx/mmedia/*
679 %{_libdir}/libwx_%{buildname}_mmedia-%{ver2}.so
680
681 %dir %{_includedir}/wx-%{ver2}/wx/ogl
682 %{_includedir}/wx-%{ver2}/wx/ogl/*
683 %{_libdir}/libwx_%{buildname}_ogl-%{ver2}.so
684
685 %dir %{_includedir}/wx-%{ver2}/wx/plot
686 %{_includedir}/wx-%{ver2}/wx/plot/*
687 %{_libdir}/libwx_%{buildname}_plot-%{ver2}.so
688
689 %dir %{_includedir}/wx-%{ver2}/wx/stc
690 %{_includedir}/wx-%{ver2}/wx/stc/*
691 %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
692
693 %dir %{_includedir}/wx-%{ver2}/wx/svg
694 %{_includedir}/wx-%{ver2}/wx/svg/*
695 %{_libdir}/libwx_%{buildname}_svg-%{ver2}.so