Disable tests on anything but Fedora

CentOS at this moment lacks these packages:

* python3-httpbin
* xclock

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
Peter Lemenkov 2023-03-21 18:07:22 +01:00
parent d12c6c69a5
commit 5ae06d1c8a
1 changed files with 4 additions and 0 deletions

View File

@ -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