From c6864dd35868d3bb4be47642c9b779fcd32505b0 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 8 Oct 2014 15:36:04 +0000 Subject: [PATCH] don't run the tests with centos6, whose python2.6 is too old git-svn-id: https://xpra.org/svn/Xpra/trunk@7915 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- rpmbuild/xpra.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpmbuild/xpra.spec b/rpmbuild/xpra.spec index 2d06732e45..46e3a1fd92 100644 --- a/rpmbuild/xpra.spec +++ b/rpmbuild/xpra.spec @@ -32,6 +32,7 @@ %define libwebp libwebp %define libvpx libvpx +%define run_tests 1 # any centos / rhel supported: %if 0%{?el6}%{?el7} @@ -47,6 +48,8 @@ %endif %if 0%{?el6} +#can't run the tests with python 2.6 which is too old: +%define run_tests 0 #distro version is too old replace with our private libraries %define libvpx libvpx-xpra %define libwebp libwebp-xpra @@ -248,6 +251,7 @@ rm -rf $RPM_BUILD_ROOT /usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra_launcher.desktop /usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra.desktop +%if 0%{?run_tests} pushd xpra-%{version}-python2/tests PYTHONPATH=%{buildroot}%{python2_sitearch}:. %{__python2} unit/run.py popd @@ -258,6 +262,7 @@ pushd xpra-%{version}-python3/tests PYTHONPATH=%{buildroot}%{python3_sitearch}:. %{__python3} unit/run.py popd %endif +%endif %post