%global srcname wxWidgets %global wxapiver 3.3 %global wxbasename wxBase%{wxapiver} %global gtk3dir bld_gtk3 %bcond tests 1 # wxWidgets 3.3 installed next to Fedora's wxGTK 3.2: every library, header # directory, wx-config and message catalogue carries the 3.3 API version, so # the two never share a file. Fedora stays on 3.2, and its packages keep # linking against that. Name: wxGTK%{wxapiver} Version: 3.3.4 Release: 1%{?dist} Summary: GTK port of the wxWidgets GUI library, version 3.3 License: LGPL-2.0-or-later WITH WxWindows-exception-3.1 URL: https://www.wxwidgets.org/ Source0: https://github.com/%{srcname}/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.bz2 Source10: wx-config # https://bugzilla.redhat.com/show_bug.cgi?id=1225148 # remove abort when ABI check fails # Backport from wxGTK Patch0: wxGTK-3.1.6-abicheck.patch BuildRequires: make BuildRequires: gcc-c++ BuildRequires: gtk3-devel BuildRequires: autoconf BuildRequires: webkit2gtk4.1-devel BuildRequires: zlib-devel BuildRequires: libpng-devel BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: libwebp-devel BuildRequires: expat-devel BuildRequires: pcre2-devel BuildRequires: nanosvg-devel BuildRequires: SDL2-devel BuildRequires: libGLU-devel BuildRequires: libSM-devel BuildRequires: gstreamer1-plugins-bad-free-devel BuildRequires: gettext BuildRequires: cppunit-devel BuildRequires: libmspack-devel BuildRequires: doxygen BuildRequires: graphviz # wxSecretStore; wxMaxima keeps its AI provider keys there BuildRequires: libsecret-devel BuildRequires: libcurl-devel BuildRequires: xz-devel %if %{with tests} BuildRequires: glibc-langpack-en BuildRequires: mesa-libEGL BuildRequires: xclock BuildRequires: xorg-x11-server-Xvfb BuildRequires: python3-httpbin BuildRequires: vulkan-loader %endif Provides: bundled(scintilla) = 5.0.0 Provides: bundled(lexilla) = 5.5.4 Requires: %{wxbasename}%{?_isa} = %{version}-%{release} Requires: %{name}-i18n = %{version}-%{release} %description wxWidgets is the GTK port of the C++ cross-platform wxWidgets GUI library, offering classes for all common GUI controls as well as a comprehensive set of helper classes for most common application tasks, ranging from networking to HTML display and image manipulation. This is the 3.3 series, installable next to the 3.2 series in wxGTK. %package -n %{wxbasename}-devel Summary: Development files for the wxBase 3.3 library Requires: %{wxbasename}%{?_isa} = %{version}-%{release} Requires(post): /usr/sbin/update-alternatives Requires(postun): /usr/sbin/update-alternatives %description -n %{wxbasename}-devel This package include files needed to link with the wxBase 3.3 library. %package devel Summary: Development files for the wxGTK 3.3 library Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-gl = %{version}-%{release} Requires: %{name}-media = %{version}-%{release} Requires: %{name}-webview = %{version}-%{release} Requires: %{wxbasename} = %{version}-%{release} Requires: %{wxbasename}-devel%{?_isa} = %{version}-%{release} Requires: gtk3-devel Requires: libGLU-devel %description devel This package include files needed to link with the wxGTK 3.3 library. Use wx-config-%{wxapiver} to build against it. %package gl Summary: OpenGL add-on for the wxWidgets 3.3 library Requires: %{name}%{?_isa} = %{version}-%{release} %description gl OpenGL (a 3D graphics API) add-on for the wxWidgets 3.3 library. %package i18n Summary: i18n message catalogs for the wxWidgets 3.3 library BuildArch: noarch %description i18n i18n message catalogs for the wxWidgets 3.3 library. %package media Summary: Multimedia add-on for the wxWidgets 3.3 library Requires: %{name}%{?_isa} = %{version}-%{release} %description media Multimedia add-on for the wxWidgets 3.3 library. %package webview Summary: WebView add-on for the wxWidgets 3.3 library Requires: %{name}%{?_isa} = %{version}-%{release} %description webview WebView add-on for the wxWidgets 3.3 library. %package -n %{wxbasename} Summary: Non-GUI support classes from the wxWidgets 3.3 library %description -n %{wxbasename} Every wxWidgets application must link against this library. It contains mandatory classes that any wxWidgets code depends on (like wxString) and portability classes that abstract differences between platforms. wxBase can be used to develop console mode applications -- it does not require any GUI libraries or the X Window System. %package docs Summary: Documentation for the wxGTK 3.3 library Requires: %{name} = %{version}-%{release} BuildArch: noarch %description docs This package provides documentation for the %{srcname} 3.3 library. %prep %autosetup -n %{srcname}-%{version} -p1 # keep the m4 macros and bakefile presets apart from wxGTK 3.2's sed -i -e 's|aclocal)|aclocal/wxwin33.m4)|' Makefile.in # fix plugin dir for 64-bit sed -i -e 's|/usr/lib\b|/usr/%{_lib}|' wx-config.in configure sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp # Since we're currently patching configure.in rm -f configure ./autogen.sh %build %global _configure ../configure mkdir %{gtk3dir} pushd %{gtk3dir} %configure \ --with-gtk=3 \ --with-opengl \ --with-sdl \ --with-libmspack \ --with-liblzma \ --with-libpng=sys \ --with-libjpeg=sys \ --with-libtiff=sys \ --with-libwebp=sys \ --with-nanosvg=sys \ --with-regex=sys \ --with-zlib=sys \ --with-expat=sys \ --enable-intl \ --disable-rpath \ --disable-glcanvasegl \ --enable-ipv6 %make_build popd #Docs WX_SKIP_DOXYGEN_VERSION_CHECK=1 docs/doxygen/regen.sh html mv docs/doxygen/out/html . %install pushd %{gtk3dir} %make_install popd # install our multilib-aware wrapper rm %{buildroot}%{_bindir}/wx-config install -p -D -m 755 %{SOURCE10} %{buildroot}%{_libexecdir}/%{name}/wx-config sed -i -e 's|=/usr|=%{_prefix}|' -e 's|^version=.*|version=%{wxapiver}|' \ %{buildroot}%{_libexecdir}/%{name}/wx-config ln -s ../..%{_libexecdir}/%{name}/wx-config %{buildroot}%{_bindir}/wx-config-%{wxapiver} touch %{buildroot}%{_bindir}/wx-config #Alternatives setup with wxrc mv %{buildroot}%{_bindir}/wxrc* %{buildroot}%{_libexecdir}/%{name} ln -s ../..%{_libexecdir}/%{name}/wxrc-%{wxapiver} %{buildroot}%{_bindir}/wxrc-%{wxapiver} touch %{buildroot}%{_bindir}/wxrc mkdir %{buildroot}%{_datadir}/bakefile/presets/wx33 mv %{buildroot}%{_datadir}/bakefile/presets/*.* %{buildroot}%{_datadir}/bakefile/presets/wx33 %find_lang wxstd-%{wxapiver} %check %if %{with tests} pushd %{gtk3dir}/tests make %{?_smp_mflags} export XDG_RUNTIME_DIR="$(mktemp -d)" export HOME="$(mktemp -d)" export GDK_BACKEND=x11 export WEBKIT_DISABLE_SANDBOX=1 python3 -m httpbin.core & _httpbin_pid=$! trap 'kill -9 $_httpbin_pid 2>/dev/null || :; wait $_httpbin_pid 2>/dev/null || :;' EXIT for i in $(seq 1 100); do (exec 3<>/dev/tcp/127.0.0.1/5000) 2>/dev/null && { exec 3>&- 3<&-; break; } sleep 0.1 done LD_LIBRARY_PATH=%{buildroot}%{_libdir} TZ=UTC wxUSE_XVFB=1 \ WX_TEST_WEBREQUEST_URL="http://localhost:5000" \ xvfb-run -a -s "-screen 0 1920x1080x24" \ ./test \ "~[.]" \ "~WebRequest::SSL::Ignore" \ "~LZMAStream::*" \ "~wxFileName::GetSizeSpecial" LD_LIBRARY_PATH=%{buildroot}%{_libdir} wxUSE_XVFB=1 \ xvfb-run -a -s "-screen 0 1920x1080x24" \ ./test_gui \ "~[.]" \ "~wxHtmlPrintout::Pagination" \ "~EventPropagationTestCase*" \ "~EnterLeaveEvents*" \ "~WebView*" \ "~ListCtrl::Visible" popd %endif # Priority below wxGTK 3.2's 25, so a plain wx-config stays 3.2 %post -n %{wxbasename}-devel /usr/sbin/update-alternatives --install %{_bindir}/wx-config \ wx-config %{_libexecdir}/%{name}/wx-config 20 /usr/sbin/update-alternatives --install %{_bindir}/wxrc \ wxrc %{_libexecdir}/%{name}/wxrc 20 %postun -n %{wxbasename}-devel if [ $1 -eq 0 ] ; then /usr/sbin/update-alternatives --remove wx-config %{_libexecdir}/%{name}/wx-config /usr/sbin/update-alternatives --remove wxrc %{_libexecdir}/%{name}/wxrc fi %files %doc docs/changes.txt docs/readme.txt %license docs/gpl.txt docs/lgpl.txt docs/licence.txt docs/licendoc.txt %license docs/preamble.txt %{_libdir}/libwx_gtk3u_adv-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_aui-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_core-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_html-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_propgrid-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_qa-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_ribbon-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_richtext-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_stc-%{wxapiver}.so.* %{_libdir}/libwx_gtk3u_xrc-%{wxapiver}.so.* %files -n %{wxbasename}-devel %ghost %{_bindir}/wx-config %ghost %{_bindir}/wxrc %{_bindir}/wxrc-%{wxapiver} %{_bindir}/wx-config-%{wxapiver} %{_includedir}/wx-%{wxapiver} %{_libdir}/libwx_baseu*-%{wxapiver}.so %dir %{_libdir}/wx %dir %{_libdir}/wx/config %dir %{_libdir}/wx/include %{_datadir}/aclocal/wxwin33.m4 %{_datadir}/bakefile/presets/wx33 %{_libexecdir}/%{name} %files devel %{_libdir}/libwx_gtk3u_*-%{wxapiver}.so %{_libdir}/wx/config/gtk3-unicode-%{wxapiver} %{_libdir}/wx/include/gtk3-unicode-%{wxapiver} %files gl %{_libdir}/libwx_gtk3u_gl-%{wxapiver}.so.* %files i18n -f wxstd-%{wxapiver}.lang %files media %{_libdir}/libwx_gtk3u_media-%{wxapiver}.so.* %files webview %{_libdir}/libwx_gtk3u_webview-%{wxapiver}.so.* %dir %{_libdir}/wx %dir %{_libdir}/wx/%{version} %dir %{_libdir}/wx/%{version}/web-extensions %{_libdir}/wx/%{version}/web-extensions/webkit2_extu-%{version}.so %files -n %{wxbasename} %doc docs/changes.txt docs/readme.txt %license docs/gpl.txt docs/lgpl.txt docs/licence.txt docs/licendoc.txt %license docs/preamble.txt %{_libdir}/libwx_baseu-%{wxapiver}.so.* %{_libdir}/libwx_baseu_net-%{wxapiver}.so.* %{_libdir}/libwx_baseu_xml-%{wxapiver}.so.* %files docs %doc html %changelog * Mon Oct 12 2026 Ilia Gradina - 3.3.4-1 - wxWidgets 3.3.4 as wxGTK3.3, installable next to Fedora's wxGTK 3.2; wxMaxima's AI chat needs 3.3.4 or newer - Link the system libwebp, nanosvg and pcre2 instead of the bundled copies - wx-config wrapper: point it at the 3.3 configuration, not 3.2 - Tests: the LZMA cases are now named LZMAStream::*, and GetSizeSpecial reads /proc/kcore, whose size is 0 in a build container