From 5ae06d1c8a877f508bf83f39ccb728c83a4ad21e Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mar 21 2023 17:07:27 +0000 Subject: Disable tests on anything but Fedora CentOS at this moment lacks these packages: * python3-httpbin * xclock Signed-off-by: Peter Lemenkov --- diff --git a/wxGTK.spec b/wxGTK.spec index 6d2113d..4ae3d79 100644 --- a/wxGTK.spec +++ b/wxGTK.spec @@ -38,12 +38,14 @@ BuildRequires: graphviz BuildRequires: libsecret-devel BuildRequires: libcurl-devel # For Tests +%if 0%{?fedora} BuildRequires: glibc-langpack-en BuildRequires: mesa-dri-drivers BuildRequires: xclock BuildRequires: xorg-x11-server-Xvfb BuildRequires: python3-httpbin BuildRequires: vulkan-loader +%endif Provides: %{srcname} = %{version}-%{release} Provides: bundled(scintilla) = 3.7.2 @@ -219,6 +221,7 @@ mv %{buildroot}%{_datadir}/bakefile/presets/*.* %{buildroot}%{_datadir}/bakefile %find_lang wxstd-3.2 %check +%if 0%{?fedora} pushd %{gtk3dir}/tests make %{?_smp_mflags} python3 -m httpbin.core & @@ -238,6 +241,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} wxUSE_XVFB=1 xvfb-run -a \ %endif ~wxHtmlPrintout::Pagination popd +%endif %post -n %{wxbasename}-devel if [ -f %{_bindir}/wx-config ] && [ ! -h %{_bindir}/wx-config ] ; then