Lines 27-32
BuildPreReq: libstdc++-devel gstreamer-devel gst-plugins-devel
Link Here
|
27 |
BuildPreReq: libGConf-devel gst-plugins-devel libpng-devel |
27 |
BuildPreReq: libGConf-devel gst-plugins-devel libpng-devel |
28 |
BuildPreReq: libnotify-devel libwebkitgtk2-devel libmspack-devel |
28 |
BuildPreReq: libnotify-devel libwebkitgtk2-devel libmspack-devel |
29 |
|
29 |
|
|
|
30 |
%define wxversion %version-gtk2 |
31 |
%define wxrelease %(echo %wxversion |sed 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') |
32 |
%define wxrelease_nodot %(echo %wxrelease |sed 's/\\.//g') |
33 |
%define mfl WX_RELEASE=%wxrelease WX_RELEASE_NODOT=%wxrelease_nodot WX_VERSION=%wxversion |
34 |
|
30 |
%description |
35 |
%description |
31 |
wxWidgets is a free C++ library for cross-platform GUI development. |
36 |
wxWidgets is a free C++ library for cross-platform GUI development. |
32 |
With wxWidgets, you can create applications for different GUIs |
37 |
With wxWidgets, you can create applications for different GUIs |
Lines 54-59
Requires: python-module-PyDSTool
Link Here
|
54 |
%add_python_req_skip utils |
59 |
%add_python_req_skip utils |
55 |
Conflicts: libwxGTK2.9-devel |
60 |
Conflicts: libwxGTK2.9-devel |
56 |
Conflicts: libwxGTK3.0-devel |
61 |
Conflicts: libwxGTK3.0-devel |
|
|
62 |
Conflicts: libwxGTK3.1-devel |
57 |
Conflicts: wxGTK-devel |
63 |
Conflicts: wxGTK-devel |
58 |
Conflicts: libwxGTK-devel |
64 |
Conflicts: libwxGTK-devel |
59 |
Conflicts: libwxGTK3.1-gtk2-devel |
65 |
Conflicts: libwxGTK3.1-gtk2-devel |
Lines 65-70
Header files for wxGTK, the GTK+ port of the wxWidgets library.
Link Here
|
65 |
%setup |
71 |
%setup |
66 |
%patch1 -p1 |
72 |
%patch1 -p1 |
67 |
%__subst "s,bakefile/presets,bakefile/presets-\$(WX_RELEASE),g" Makefile.in |
73 |
%__subst "s,bakefile/presets,bakefile/presets-\$(WX_RELEASE),g" Makefile.in |
|
|
74 |
sed 's/WX_RELEASE=.*/WX_RELEASE=%wxrelease/' -i configure |
75 |
sed 's/WX_VERSION=.*/WX_VERSION=%wxversion/' -i configure |
76 |
sed "s/WX_VERSION_TAG=.*/WX_VERSION_TAG=`echo WX\${lib_unicode_suffix}\${WX_LIB_FLAVOUR}_%(echo %wxrelease |sed 's/-.*//') | tr '[[a-z]]' '[[A-Z]]'`/" -i configure |
68 |
|
77 |
|
69 |
rm -fR src/{expat,jpeg,tiff,zlib,png} |
78 |
rm -fR src/{expat,jpeg,tiff,zlib,png} |
70 |
|
79 |
|
Lines 306-326
DEFS="-DUNICODE=1 -DwxUSE_UNICODE=1 -DwxDEBUG_LEVEL=0"
Link Here
|
306 |
--with-x \ |
315 |
--with-x \ |
307 |
--enable-compat28 |
316 |
--enable-compat28 |
308 |
|
317 |
|
309 |
%make SHARED_LD_CXX='perl %SOURCE2 $(CXX) -shared -fPIC -g -o' |
318 |
%make SHARED_LD_CXX='perl %SOURCE2 $(CXX) -shared -fPIC -g -o' %mfl |
310 |
|
319 |
|
311 |
%install |
320 |
%install |
312 |
%makeinstall_std |
321 |
%makeinstall_std %mfl |
313 |
mkdir -p %buildroot%_datadir/wx-%wxbranch/examples/src |
|
|
314 |
cp -a demos samples %buildroot%_datadir/wx-%wxbranch/examples |
315 |
|
322 |
|
316 |
wx_config_filename=$(basename %buildroot%_libdir/wx/config/*-unicode-[0-9]*) |
323 |
wx_config_filename=$(basename %buildroot%_libdir/wx/config/*-unicode-[0-9]*) |
317 |
ln -sf ../..%_libdir/wx/config/$wx_config_filename %buildroot%_bindir/wx-config |
324 |
ln -sf ../..%_libdir/wx/config/$wx_config_filename %buildroot%_bindir/wx-config |
318 |
|
325 |
|
319 |
cp -fR include/wx/private %buildroot%_includedir/wx-%wxbranch/wx/ |
326 |
cp -fR include/wx/private %buildroot%_includedir/wx-%wxrelease/wx/ |
320 |
cp -fR include/wx/unix/private %buildroot%_includedir/wx-%wxbranch/wx/unix/ |
327 |
cp -fR include/wx/unix/private %buildroot%_includedir/wx-%wxrelease/wx/unix/ |
321 |
|
328 |
|
322 |
%files -n lib%name |
329 |
%files -n lib%name |
323 |
%_libdir/*gtk2u*.so.* |
330 |
%_libdir/*.so.* |
324 |
|
331 |
|
325 |
%files -n lib%name-devel |
332 |
%files -n lib%name-devel |
326 |
%_libdir/wx/config/gtk2-unicode-%wxbranch |
333 |
%_libdir/wx/config/gtk2-unicode-%wxbranch |
Lines 330-338
cp -fR include/wx/unix/private %buildroot%_includedir/wx-%wxbranch/wx/unix/
Link Here
|
330 |
%dir %_datadir/bakefile |
337 |
%dir %_datadir/bakefile |
331 |
%_datadir/bakefile/* |
338 |
%_datadir/bakefile/* |
332 |
%_bindir/* |
339 |
%_bindir/* |
333 |
%_libdir/wx/%wxbranch.0/*.so |
340 |
%_libdir/wx/%wxversion/*.so |
334 |
%_datadir/aclocal/*.m4 |
341 |
%_datadir/aclocal/*.m4 |
335 |
%_includedir/wx-%wxbranch |
342 |
%_includedir/wx-%wxrelease |
336 |
%_libdir/*.so |
343 |
%_libdir/*.so |
337 |
|
344 |
|
338 |
%changelog |
345 |
%changelog |