]>
Commit | Line | Data |
---|---|---|
afefc74c | 1 | %define _prefix /usr |
14b682f7 | 2 | %define ver 2.9.5 |
7fd3acaf | 3 | %define ver2 2.9 |
df050bd9 | 4 | %define rel 1 |
4d1c7a91 VZ |
5 | # version for package name according to OpenSuse policy: |
6 | # http://en.opensuse.org/openSUSE:Shared_library_packaging_policy | |
7 | %define sver 2_9-5 | |
e5ea3f7a | 8 | |
4eba1840 | 9 | # Configurable settings (use --with(out) {unicode,gtk2} on rpmbuild cmd line): |
fe770a60 | 10 | %define unicode 1 |
4eba1840 VS |
11 | %{?_with_unicode: %{expand: %%define unicode 1}} |
12 | %{?_without_unicode: %{expand: %%define unicode 0}} | |
13 | ||
2fbef279 | 14 | %define gtk2 1 |
4eba1840 VS |
15 | %{?_with_gtk2: %{expand: %%define gtk2 1}} |
16 | %{?_without_gtk2: %{expand: %%define gtk2 0}} | |
17 | ||
fe770a60 | 18 | # "buildname" needs to be e.g. gtk2ud for debug builds |
1cd555d2 VZ |
19 | %if %{gtk2} |
20 | %define gtkver 2 | |
fe770a60 RR |
21 | %define portname gtk2 |
22 | %if %{unicode} | |
23 | %define buildname gtk2u | |
24 | %else | |
25 | %define buildname gtk2 | |
26 | %endif | |
f5b3b37e | 27 | %else |
1cd555d2 | 28 | %define gtkver 1.2 |
fe770a60 RR |
29 | %define portname gtk |
30 | %define buildname gtk | |
31 | %endif | |
32 | ||
33 | %if %{unicode} | |
34 | %define name wx-%{portname}-unicode | |
bae3556d VZ |
35 | %define wxconfig %{portname}-unicode-%{ver2} |
36 | %define wxconfigstatic %{portname}-unicode-static-%{ver2} | |
fe770a60 RR |
37 | %define wxconfiglink wx%{portname}u-%{ver2}-config |
38 | %else | |
39 | %define name wx-%{portname}-ansi | |
bae3556d VZ |
40 | %define wxconfig %{portname}-ansi-%{ver2} |
41 | %define wxconfigstatic %{portname}-ansi-static-%{ver2} | |
fe770a60 | 42 | %define wxconfiglink wx%{portname}-%{ver2}-config |
4eba1840 VS |
43 | %endif |
44 | ||
45 | %if %{unicode} | |
fe770a60 | 46 | %define wxbasename wx-base-unicode |
bae3556d | 47 | %define wxbaseconfig base-unicode-%{ver2} |
fe770a60 | 48 | %define wxbaseconfiglink wxbaseu-%{ver2}-config |
4eba1840 | 49 | %else |
fe770a60 | 50 | %define wxbasename wx-base-ansi |
bae3556d | 51 | %define wxbaseconfig base-ansi-%{ver2} |
fe770a60 | 52 | %define wxbaseconfiglink wxbase-%{ver2}-config |
4eba1840 VS |
53 | %endif |
54 | ||
4d1c7a91 VZ |
55 | %if 0%{?suse_version} |
56 | # avoiding shlib-policy-name-error: Your package contains a single shared | |
57 | # library but is not named after its SONAME. | |
58 | %define glname libwx_%{buildname}_gl-%{sver} | |
59 | %else | |
60 | %define glname %{name}-gl | |
61 | %endif | |
62 | ||
1cd555d2 VZ |
63 | Summary: The GTK+ %{gtkver} port of the wxWidgets library |
64 | Name: %{name} | |
e5ea3f7a RR |
65 | Version: %{ver} |
66 | Release: %{rel} | |
4eba1840 | 67 | License: wxWindows Licence |
4d1c7a91 VZ |
68 | Group: System/Libraries |
69 | Source: wxWidgets-%{ver}.tar.bz2 | |
1cd555d2 | 70 | URL: http://www.wxwidgets.org |
fe770a60 | 71 | Prefix: %{_prefix} |
1cd555d2 VZ |
72 | BuildRoot: %{_tmppath}/%{name}-root |
73 | Requires: %{wxbasename} = %{ver} | |
bec8a09e | 74 | %if %{portname} == gtk2 |
1a9e575d | 75 | BuildRequires: gtk2-devel |
bec8a09e VZ |
76 | %else |
77 | BuildRequires: gtk+-devel >= 1.2.0 | |
78 | %endif | |
79 | ||
80 | BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel | |
4d1c7a91 VZ |
81 | # on RedHat 5 default GCC 4.1.2 crashes during compilation |
82 | %if 0%{?rhel} == 5 | |
83 | BuildRequires: gcc44-c++ | |
84 | %else | |
85 | BuildRequires: gcc-c++ | |
86 | %endif | |
87 | ||
88 | %if 0%{?suse_version} | |
89 | BuildRequires: libexpat-devel, Mesa-devel, xorg-x11-libSM-devel | |
90 | BuildRequires: gstreamer-0_10-devel, gstreamer-0_10-plugins-base-devel | |
91 | %else | |
92 | %if 0%{?mandriva_version} | |
93 | BuildRequires: libexpat-devel, libmesaglu-devel, libsm-devel | |
94 | # For now disabling mediactrl | |
95 | # FIXME: How to resolve OBS Mandriva dependecies for these? | |
96 | #BuildRequires: libgstreamer-devel, libgstreamer-plugins-base-devel | |
97 | %else | |
98 | BuildRequires: expat-devel, libGLU-devel, libSM-devel | |
99 | BuildRequires: gstreamer-devel, gstreamer-plugins-base-devel | |
100 | %endif | |
101 | %endif | |
f14a5b55 | 102 | |
1cd555d2 | 103 | # all packages providing an implementation of wxWidgets library (regardless of |
212d0bb3 | 104 | # the toolkit used) should provide the (virtual) wxwin package, this makes it |
6e711d5c | 105 | # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..." |
4d1c7a91 VZ |
106 | Provides: wxwin = %{version} |
107 | Provides: wxGTK = %{version} | |
212d0bb3 | 108 | |
f14a5b55 | 109 | %description |
1cd555d2 VZ |
110 | wxWidgets is a free C++ library for cross-platform GUI development. |
111 | With wxWidgets, you can create applications for different GUIs (GTK+, | |
fe770a60 RR |
112 | Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code. |
113 | ||
18f208c3 | 114 | %package -n wx-i18n |
4d1c7a91 VZ |
115 | Summary: The translations for the wxWidgets library |
116 | Group: System/Libraries | |
fe770a60 | 117 | |
18f208c3 | 118 | %description -n wx-i18n |
fe770a60 | 119 | The translations files for the wxWidgets library. |
f14a5b55 | 120 | |
641d87d8 | 121 | %package devel |
1cd555d2 | 122 | Summary: The GTK+ %{gtkver} port of the wxWidgets library |
4d1c7a91 | 123 | Group: Development/Libraries |
4eba1840 | 124 | Requires: %{name} = %{ver} |
4d1c7a91 | 125 | Requires: %{glname} = %{ver} |
4eba1840 | 126 | Requires: %{wxbasename}-devel = %{ver} |
4d1c7a91 | 127 | Provides: wxGTK-devel = %{version} |
641d87d8 RR |
128 | |
129 | %description devel | |
fe770a60 | 130 | The GTK+ %{gtkver} port of the wxWidgets library, header files. |
c661ecca | 131 | |
4d1c7a91 VZ |
132 | %package -n %{glname} |
133 | Summary: The GTK+ %{gtkver} port of the wxWidgets library, OpenGL add-on | |
134 | Group: System/Libraries | |
4eba1840 | 135 | Requires: %{name} = %{ver} |
4d1c7a91 | 136 | Provides: wxGTK-gl = %{version} |
c661ecca | 137 | |
4d1c7a91 | 138 | %description -n %{glname} |
1cd555d2 | 139 | OpenGL add-on library for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library. |
5dcf9614 | 140 | |
fe770a60 RR |
141 | %package -n %{wxbasename} |
142 | Summary: wxBase library - non-GUI support classes of the wxWidgets toolkit | |
5dcf9614 | 143 | Group: Development/Libraries |
4d1c7a91 | 144 | Provides: wxBase = %{version} |
fe770a60 RR |
145 | |
146 | %description -n %{wxbasename} | |
147 | wxBase is a collection of C++ classes providing basic data structures (strings, | |
148 | lists, arrays), portable wrappers around many OS-specific funstions (file | |
149 | operations, time/date manipulations, threads, processes, sockets, shared | |
150 | library loading) as well as other utility classes (streams, archive and | |
eead5291 | 151 | compression). wxBase currently supports Win32, most Unix variants (Linux, |
fe770a60 RR |
152 | FreeBSD, Solaris, HP-UX) and MacOS X (Carbon and Mach-0). |
153 | ||
154 | %package -n %{wxbasename}-devel | |
4d1c7a91 | 155 | Summary: wxBase library, header files |
fe770a60 | 156 | Group: Development/Libraries |
4d1c7a91 | 157 | Provides: wxBase-devel = %{version} |
5dcf9614 | 158 | |
fe770a60 RR |
159 | %description -n %{wxbasename}-devel |
160 | wxBase library - non-GUI support classes of the wxWidgets toolkit, | |
161 | header files. | |
641d87d8 | 162 | |
f14a5b55 | 163 | %prep |
4d1c7a91 | 164 | %setup -q -n wxWidgets-%{ver} |
f14a5b55 RR |
165 | |
166 | %build | |
4d1c7a91 VZ |
167 | |
168 | %if 0%{?rhel} == 5 | |
169 | export CC=gcc44 | |
170 | export CXX=g++44 | |
171 | %endif | |
172 | # if it's not set OpenSuse warns: "compiled without RPM_OPT_FLAGS" | |
173 | export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" | |
174 | export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" | |
5dcf9614 | 175 | |
fe770a60 RR |
176 | mkdir obj-shared |
177 | cd obj-shared | |
4d1c7a91 | 178 | ../configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-rpath \ |
2fbef279 | 179 | %if ! %{gtk2} |
fe770a60 RR |
180 | --with-gtk=1 \ |
181 | %else | |
182 | --with-gtk=2 \ | |
1cd555d2 | 183 | %endif |
fe770a60 RR |
184 | %if %{unicode} |
185 | --enable-unicode \ | |
186 | %else | |
187 | --disable-unicode \ | |
4eba1840 | 188 | %endif |
4d1c7a91 VZ |
189 | %if ! 0%{?mandriva_version} |
190 | --enable-mediactrl \ | |
191 | %endif | |
192 | --with-opengl | |
193 | make %{?_smp_mflags} | |
1cd555d2 | 194 | |
eead5291 | 195 | cd .. |
5dcf9614 | 196 | |
fe770a60 RR |
197 | mkdir obj-static |
198 | cd obj-static | |
4d1c7a91 | 199 | ../configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-rpath \ |
2fbef279 | 200 | %if ! %{gtk2} |
fe770a60 RR |
201 | --with-gtk=1 \ |
202 | %else | |
203 | --with-gtk=2 \ | |
1cd555d2 | 204 | %endif |
fe770a60 RR |
205 | --disable-shared \ |
206 | %if %{unicode} | |
f2c88494 | 207 | --enable-unicode \ |
fe770a60 | 208 | %else |
f2c88494 | 209 | --disable-unicode \ |
4eba1840 | 210 | %endif |
4d1c7a91 VZ |
211 | %if ! 0%{?mandriva_version} |
212 | --enable-mediactrl \ | |
213 | %endif | |
214 | --with-opengl | |
215 | make %{?_smp_mflags} | |
fe770a60 | 216 | |
eead5291 | 217 | cd .. |
f14a5b55 | 218 | |
63ca914c VZ |
219 | make -C locale allmo |
220 | ||
f14a5b55 | 221 | %install |
31fe72b6 | 222 | rm -rf $RPM_BUILD_ROOT |
1096bf67 VZ |
223 | (cd obj-static; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install) |
224 | (cd obj-shared; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install) | |
d10382ab VS |
225 | |
226 | # --- wxBase headers list begins here --- | |
97ddaeee | 227 | cat <<EOF >wxbase-headers.files |
d10382ab | 228 | wx/afterstd.h |
178c7760 | 229 | wx/any.h |
254696bb | 230 | wx/anystr.h |
d10382ab VS |
231 | wx/app.h |
232 | wx/apptrait.h | |
8329fea8 | 233 | wx/archive.h |
d10382ab VS |
234 | wx/arrimpl.cpp |
235 | wx/arrstr.h | |
a8098f86 VZ |
236 | wx/atomic.h |
237 | wx/base64.h | |
d10382ab VS |
238 | wx/beforestd.h |
239 | wx/buffer.h | |
240 | wx/build.h | |
eecc043f | 241 | wx/chartype.h |
664e1314 | 242 | wx/checkeddelete.h |
d10382ab | 243 | wx/chkconf.h |
82b0b7f6 | 244 | wx/clntdata.h |
541ea80f | 245 | wx/cmdargs.h |
d10382ab VS |
246 | wx/cmdline.h |
247 | wx/confbase.h | |
248 | wx/config.h | |
a1999705 | 249 | wx/convauto.h |
d10382ab | 250 | wx/containr.h |
c4ad618c | 251 | wx/cpp.h |
abde3283 | 252 | wx/crt.h |
d10382ab | 253 | wx/datetime.h |
d10382ab VS |
254 | wx/datstrm.h |
255 | wx/dde.h | |
256 | wx/debug.h | |
257 | wx/defs.h | |
258 | wx/dir.h | |
20b35a69 | 259 | wx/dlimpexp.h |
16edb7b5 | 260 | wx/dlist.h |
d10382ab VS |
261 | wx/dynarray.h |
262 | wx/dynlib.h | |
263 | wx/dynload.h | |
264 | wx/encconv.h | |
265 | wx/event.h | |
58cc1587 | 266 | wx/eventfilter.h |
00237407 | 267 | wx/evtloop.h |
671a85ea | 268 | wx/except.h |
d10382ab | 269 | wx/features.h |
620c9408 | 270 | wx/flags.h |
d10382ab VS |
271 | wx/ffile.h |
272 | wx/file.h | |
273 | wx/fileconf.h | |
274 | wx/filefn.h | |
275 | wx/filename.h | |
276 | wx/filesys.h | |
277 | wx/fontenc.h | |
278 | wx/fontmap.h | |
f068697b | 279 | wx/fs_arc.h |
37671b82 | 280 | wx/fs_filter.h |
d10382ab VS |
281 | wx/fs_mem.h |
282 | wx/fs_zip.h | |
283 | wx/hash.h | |
284 | wx/hashmap.h | |
285 | wx/hashset.h | |
54e80d76 | 286 | wx/html/forcelnk.h |
d10382ab VS |
287 | wx/iconloc.h |
288 | wx/init.h | |
289 | wx/intl.h | |
290 | wx/iosfwrap.h | |
291 | wx/ioswrap.h | |
292 | wx/ipc.h | |
293 | wx/ipcbase.h | |
8ece421c | 294 | wx/kbdstate.h |
ea144923 | 295 | wx/language.h |
4cbcfb73 | 296 | wx/link.h |
d10382ab VS |
297 | wx/list.h |
298 | wx/listimpl.cpp | |
299 | wx/log.h | |
300 | wx/longlong.h | |
301 | wx/math.h | |
302 | wx/memconf.h | |
303 | wx/memory.h | |
304 | wx/memtext.h | |
305 | wx/mimetype.h | |
306 | wx/module.h | |
8ece421c | 307 | wx/mousestate.h |
d10382ab | 308 | wx/msgout.h |
b589082a | 309 | wx/msgqueue.h |
d10382ab | 310 | wx/mstream.h |
6686fbad | 311 | wx/numformatter.h |
d10382ab VS |
312 | wx/object.h |
313 | wx/platform.h | |
fc1dea3d | 314 | wx/platinfo.h |
355debca | 315 | wx/power.h |
d10382ab VS |
316 | wx/process.h |
317 | wx/ptr_scpd.h | |
6490a288 | 318 | wx/ptr_shrd.h |
460354e9 | 319 | wx/recguard.h |
d10382ab | 320 | wx/regex.h |
232e8075 | 321 | wx/rtti.h |
664e1314 VZ |
322 | wx/scopedarray.h |
323 | wx/scopedptr.h | |
d10382ab | 324 | wx/scopeguard.h |
664e1314 | 325 | wx/sharedptr.h |
d10382ab | 326 | wx/snglinst.h |
c33fae85 | 327 | wx/sstream.h |
b71531ad | 328 | wx/stack.h |
107d0fd4 | 329 | wx/stackwalk.h |
dd65d8c8 | 330 | wx/stdpaths.h |
72a7c559 | 331 | wx/stdstream.h |
ef335a4f | 332 | wx/stockitem.h |
d10382ab VS |
333 | wx/stopwatch.h |
334 | wx/strconv.h | |
335 | wx/stream.h | |
336 | wx/string.h | |
eecc043f | 337 | wx/stringimpl.h |
467175ab | 338 | wx/stringops.h |
c9f78968 | 339 | wx/strvararg.h |
d10382ab | 340 | wx/sysopt.h |
56d5b4b8 | 341 | wx/tarstrm.h |
d10382ab VS |
342 | wx/textbuf.h |
343 | wx/textfile.h | |
344 | wx/thread.h | |
345 | wx/thrimpl.cpp | |
59068d79 | 346 | wx/time.h |
d10382ab | 347 | wx/timer.h |
2f4c5d00 | 348 | wx/tls.h |
d10382ab | 349 | wx/tokenzr.h |
6490a288 | 350 | wx/tracker.h |
ea144923 | 351 | wx/translation.h |
d10382ab | 352 | wx/txtstrm.h |
7db064f6 | 353 | wx/typeinfo.h |
d10382ab | 354 | wx/types.h |
eecc043f | 355 | wx/unichar.h |
dd65d8c8 | 356 | wx/uri.h |
aaa03125 | 357 | wx/ustring.h |
d10382ab VS |
358 | wx/utils.h |
359 | wx/variant.h | |
360 | wx/vector.h | |
361 | wx/version.h | |
ccec9093 | 362 | wx/versioninfo.h |
d10382ab | 363 | wx/volume.h |
6490a288 | 364 | wx/weakref.h |
d10382ab VS |
365 | wx/wfstream.h |
366 | wx/wx.h | |
367 | wx/wxchar.h | |
eecc043f | 368 | wx/wxcrt.h |
52de37c7 | 369 | wx/wxcrtbase.h |
e7308074 | 370 | wx/wxcrtvararg.h |
d10382ab | 371 | wx/wxprec.h |
6e4ae332 | 372 | wx/xlocale.h |
d10382ab | 373 | wx/xti.h |
12354f46 | 374 | wx/xti2.h |
d10382ab | 375 | wx/xtistrm.h |
232e8075 SC |
376 | wx/xtictor.h |
377 | wx/xtihandler.h | |
378 | wx/xtiprop.h | |
379 | wx/xtitypes.h | |
d10382ab VS |
380 | wx/zipstrm.h |
381 | wx/zstream.h | |
6490a288 | 382 | wx/meta/convertible.h |
6e0fbb3d | 383 | wx/meta/if.h |
7ec75d3e | 384 | wx/meta/implicitconversion.h |
6490a288 | 385 | wx/meta/int2type.h |
6e0fbb3d | 386 | wx/meta/movable.h |
109e2ca4 | 387 | wx/meta/pod.h |
6b8ef0b3 VZ |
388 | wx/fswatcher.h |
389 | wx/generic/fswatcher.h | |
b46b1d59 | 390 | wx/unix/app.h |
fb5ab396 WS |
391 | wx/unix/apptbase.h |
392 | wx/unix/apptrait.h | |
a1873279 | 393 | wx/unix/chkconf.h |
b46b1d59 | 394 | wx/unix/evtloop.h |
78808897 | 395 | wx/unix/evtloopsrc.h |
fb5ab396 | 396 | wx/unix/pipe.h |
cf2810aa | 397 | wx/unix/stdpaths.h |
6e4ae332 | 398 | wx/unix/stackwalk.h |
509f339a | 399 | wx/unix/tls.h |
6b8ef0b3 | 400 | wx/unix/fswatcher_kqueue.h |
cf2810aa VZ |
401 | wx/unix/execute.h |
402 | wx/unix/mimetype.h | |
6b8ef0b3 | 403 | wx/unix/fswatcher_inotify.h |
d10382ab | 404 | wx/fs_inet.h |
d10382ab VS |
405 | wx/protocol/file.h |
406 | wx/protocol/ftp.h | |
407 | wx/protocol/http.h | |
0576cd9e | 408 | wx/protocol/log.h |
d10382ab VS |
409 | wx/protocol/protocol.h |
410 | wx/sckaddr.h | |
411 | wx/sckipc.h | |
412 | wx/sckstrm.h | |
413 | wx/socket.h | |
414 | wx/url.h | |
d10382ab VS |
415 | wx/xml/xml.h |
416 | wx/xtixml.h | |
d10382ab VS |
417 | EOF |
418 | # --- wxBase headers list ends here --- | |
7a2c0dd9 VZ |
419 | |
420 | # --- wxBase headers list with paths --- | |
421 | sed -e 's@^@%{_includedir}/wx-%{ver2}/@' wxbase-headers.files > wxbase-headers.paths | |
422 | ||
fe770a60 RR |
423 | |
424 | # temporarily remove base headers | |
425 | mkdir $RPM_BUILD_ROOT/_save_dir | |
426 | cp -r $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT/_save_dir | |
427 | for f in `cat wxbase-headers.files` ; do | |
1cd555d2 | 428 | rm -f $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2}/$f |
4eba1840 | 429 | done |
4eba1840 | 430 | # list of all core headers: |
1cd555d2 | 431 | find $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files |
fe770a60 RR |
432 | # move base headers (actually all headers) back again |
433 | cp -f -r $RPM_BUILD_ROOT/_save_dir/* $RPM_BUILD_ROOT%{_includedir} | |
434 | rm -rf $RPM_BUILD_ROOT/_save_dir | |
4eba1840 | 435 | |
3a0e61d6 VZ |
436 | # utils: |
437 | (cd obj-shared/utils/wxrc; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install) | |
88e3652f | 438 | |
6001a0ee VZ |
439 | # wx-config link is created during package installation, remove it for now |
440 | rm -f $RPM_BUILD_ROOT%{_bindir}/wx-config | |
441 | ||
c16d2763 VS |
442 | %clean |
443 | rm -rf $RPM_BUILD_ROOT | |
444 | ||
f14a5b55 RR |
445 | %post |
446 | /sbin/ldconfig | |
447 | ||
448 | %postun | |
449 | /sbin/ldconfig | |
450 | ||
2fbef279 VZ |
451 | %post devel |
452 | # link wx-config when you install RPM. | |
fe770a60 RR |
453 | %if %{unicode} |
454 | ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config | |
455 | %endif | |
2fbef279 | 456 | # link wx-config with explicit name. |
1cd555d2 VZ |
457 | ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink} |
458 | /sbin/ldconfig | |
459 | ||
460 | %postun devel | |
461 | /sbin/ldconfig | |
f5b3b37e | 462 | |
2fbef279 | 463 | %preun devel |
fe770a60 RR |
464 | %if %{unicode} |
465 | rm -f %{_bindir}/wx-config | |
466 | %endif | |
1cd555d2 | 467 | rm -f %{_bindir}/%{wxconfiglink} |
f5b3b37e | 468 | |
fe770a60 RR |
469 | %post -n %{wxbasename} |
470 | /sbin/ldconfig | |
471 | ||
472 | %postun -n %{wxbasename} | |
473 | /sbin/ldconfig | |
474 | ||
475 | %post -n %{wxbasename}-devel | |
476 | # link wx-config with explicit name. | |
477 | ln -sf %{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink} | |
478 | /sbin/ldconfig | |
479 | ||
480 | %postun -n %{wxbasename}-devel | |
481 | /sbin/ldconfig | |
482 | ||
483 | %preun -n %{wxbasename}-devel | |
484 | rm -f %{_bindir}/%{wxbaseconfiglink} | |
485 | ||
4d1c7a91 | 486 | %post -n %{glname} |
1cd555d2 VZ |
487 | /sbin/ldconfig |
488 | ||
4d1c7a91 | 489 | %postun -n %{glname} |
1cd555d2 VZ |
490 | /sbin/ldconfig |
491 | ||
4eba1840 | 492 | %files |
81edbb3f | 493 | %defattr(-,root,root) |
4d1c7a91 | 494 | #doc COPYING.LIB *.txt |
fe770a60 | 495 | %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.* |
66a9bd09 | 496 | %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so.* |
fe770a60 | 497 | %{_libdir}/libwx_%{buildname}_core-%{ver2}.so.* |
fe770a60 | 498 | %{_libdir}/libwx_%{buildname}_html-%{ver2}.so.* |
4d1c7a91 | 499 | %if ! 0%{?mandriva_version} |
2f22b9c2 | 500 | %{_libdir}/libwx_%{buildname}_media-%{ver2}.so.* |
4d1c7a91 | 501 | %endif |
2f22b9c2 | 502 | %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so.* |
fe770a60 | 503 | %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.* |
2f22b9c2 | 504 | %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so.* |
66a9bd09 | 505 | %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so.* |
2f22b9c2 | 506 | %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.* |
fe770a60 | 507 | %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.* |
1cd555d2 | 508 | |
18f208c3 | 509 | %files -n wx-i18n |
fe770a60 | 510 | %defattr(-,root,root) |
63ca914c | 511 | %{_datadir}/locale/*/LC_MESSAGES/*.mo |
641d87d8 | 512 | |
4eba1840 | 513 | %files devel -f core-headers.files |
0f7deca9 | 514 | %defattr(-,root,root) |
4d1c7a91 VZ |
515 | %dir %{_includedir}/wx-%{ver2}/wx/aui |
516 | %dir %{_includedir}/wx-%{ver2}/wx/gtk | |
517 | %dir %{_includedir}/wx-%{ver2}/wx/gtk/gnome | |
518 | %dir %{_includedir}/wx-%{ver2}/wx/gtk/hildon | |
519 | %dir %{_includedir}/wx-%{ver2}/wx/persist | |
520 | %dir %{_includedir}/wx-%{ver2}/wx/propgrid | |
521 | %dir %{_includedir}/wx-%{ver2}/wx/ribbon | |
522 | %dir %{_includedir}/wx-%{ver2}/wx/richtext | |
523 | %dir %{_includedir}/wx-%{ver2}/wx/stc | |
524 | %dir %{_includedir}/wx-%{ver2}/wx/unix | |
525 | %dir %{_includedir}/wx-%{ver2}/wx/xrc | |
fe770a60 RR |
526 | # shared libs |
527 | %{_libdir}/libwx_%{buildname}_adv-%{ver2}.so | |
66a9bd09 | 528 | %{_libdir}/libwx_%{buildname}_aui-%{ver2}.so |
fe770a60 | 529 | %{_libdir}/libwx_%{buildname}_core-%{ver2}.so |
fe770a60 RR |
530 | %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so |
531 | %{_libdir}/libwx_%{buildname}_html-%{ver2}.so | |
4d1c7a91 | 532 | %if ! 0%{?mandriva_version} |
2f22b9c2 | 533 | %{_libdir}/libwx_%{buildname}_media-%{ver2}.so |
4d1c7a91 | 534 | %endif |
2f22b9c2 | 535 | %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so |
fe770a60 | 536 | %{_libdir}/libwx_%{buildname}_qa-%{ver2}.so |
2f22b9c2 | 537 | %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so |
66a9bd09 | 538 | %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so |
2f22b9c2 | 539 | %{_libdir}/libwx_%{buildname}_stc-%{ver2}.so |
fe770a60 RR |
540 | %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so |
541 | # static libs | |
542 | %{_libdir}/libwx_%{buildname}_adv-%{ver2}.a | |
66a9bd09 | 543 | %{_libdir}/libwx_%{buildname}_aui-%{ver2}.a |
fe770a60 | 544 | %{_libdir}/libwx_%{buildname}_core-%{ver2}.a |
fe770a60 RR |
545 | %{_libdir}/libwx_%{buildname}_gl-%{ver2}.a |
546 | %{_libdir}/libwx_%{buildname}_html-%{ver2}.a | |
4d1c7a91 | 547 | %if ! 0%{?mandriva_version} |
2f22b9c2 | 548 | %{_libdir}/libwx_%{buildname}_media-%{ver2}.a |
4d1c7a91 | 549 | %endif |
2f22b9c2 | 550 | %{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.a |
fe770a60 | 551 | %{_libdir}/libwx_%{buildname}_qa-%{ver2}.a |
2f22b9c2 | 552 | %{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.a |
66a9bd09 | 553 | %{_libdir}/libwx_%{buildname}_richtext-%{ver2}.a |
2f22b9c2 | 554 | %{_libdir}/libwx_%{buildname}_stc-%{ver2}.a |
fe770a60 | 555 | %{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a |
81edbb3f | 556 | %dir %{_libdir}/wx |
4d1c7a91 VZ |
557 | %dir %{_libdir}/wx/config |
558 | %dir %{_libdir}/wx/include | |
559 | %dir %{_libdir}/wx/include/%{wxconfig} | |
560 | %dir %{_libdir}/wx/include/%{wxconfig}/wx | |
561 | %dir %{_libdir}/wx/include/%{wxconfigstatic} | |
562 | %dir %{_libdir}/wx/include/%{wxconfigstatic}/wx | |
fe770a60 RR |
563 | %{_libdir}/wx/config/%{wxconfig} |
564 | %{_libdir}/wx/include/%{wxconfig}/wx/setup.h | |
565 | %{_libdir}/wx/config/%{wxconfigstatic} | |
566 | %{_libdir}/wx/include/%{wxconfigstatic}/wx/setup.h | |
1cd555d2 | 567 | %{_bindir}/wxrc* |
2a29700e | 568 | |
fe770a60 | 569 | %files -n %{wxbasename} |
81edbb3f | 570 | %defattr(-,root,root) |
fe770a60 | 571 | %{_libdir}/libwx_base*-%{ver2}.so.* |
0f7deca9 | 572 | |
fe770a60 | 573 | %files -n %{wxbasename}-devel -f wxbase-headers.paths |
5dcf9614 | 574 | %defattr (-,root,root) |
fe770a60 | 575 | %dir %{_includedir}/wx-%{ver2} |
4d1c7a91 VZ |
576 | %dir %{_includedir}/wx-%{ver2}/wx |
577 | %dir %{_includedir}/wx-%{ver2}/wx/generic | |
578 | %dir %{_includedir}/wx-%{ver2}/wx/html | |
579 | %dir %{_includedir}/wx-%{ver2}/wx/meta | |
580 | %dir %{_includedir}/wx-%{ver2}/wx/protocol | |
581 | %dir %{_includedir}/wx-%{ver2}/wx/unix | |
582 | %dir %{_includedir}/wx-%{ver2}/wx/xml | |
583 | %dir %{_datadir}/bakefile/presets | |
fe770a60 RR |
584 | %{_libdir}/libwx_base*-%{ver2}.so |
585 | %{_libdir}/libwx_base*-%{ver2}.a | |
586 | %if %{unicode} | |
587 | %{_libdir}/libwxregexu-%{ver2}.a | |
588 | %endif | |
f5ee20cc | 589 | %{_libdir}/libwxscintilla-%{ver2}.a |
fe770a60 | 590 | %dir %{_libdir}/wx |
4d1c7a91 VZ |
591 | %dir %{_datadir}/bakefile |
592 | %dir %{_datadir}/bakefile/presets | |
fe770a60 | 593 | %{_datadir}/aclocal/*.m4 |
63ca914c | 594 | %{_datadir}/bakefile/presets/* |
fe770a60 | 595 | |
4d1c7a91 | 596 | %files -n %{glname} |
fe770a60 RR |
597 | %defattr(-,root,root) |
598 | %{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.* |