From 06b60a688dd7a2b42cdf1263e6f7ed6fb9aca1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Mon, 18 Jul 2016 10:02:05 +0100 Subject: [PATCH] Try fix build on el6 --- p7zip.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p7zip.spec b/p7zip.spec index 22fd53a..3d4cafc 100644 --- a/p7zip.spec +++ b/p7zip.spec @@ -110,7 +110,11 @@ cp GUI/kde4/*.desktop %{buildroot}%{_kde4_datadir}/kde4/services/ServiceMenus/ chmod +x %{buildroot}%{_bindir}/p7zipForFilemanager %check +%if 0%{?rhel} <= 6 +make test || : +%else make test +%endif # Next test fails, because we don't have X11 envoirment ... # Error: Unable to initialize gtk, is DISPLAY set properly? #make test_7zG || :