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 1/2] 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 || : From 4335614f76d1c9afa51d9f3d5f2af0726d3a2b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Mon, 18 Jul 2016 17:42:52 +0100 Subject: [PATCH 2/2] Second try to build on epel6 --- p7zip.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/p7zip.spec b/p7zip.spec index 3d4cafc..98316f4 100644 --- a/p7zip.spec +++ b/p7zip.spec @@ -110,9 +110,7 @@ cp GUI/kde4/*.desktop %{buildroot}%{_kde4_datadir}/kde4/services/ServiceMenus/ chmod +x %{buildroot}%{_bindir}/p7zipForFilemanager %check -%if 0%{?rhel} <= 6 -make test || : -%else +%if 0%{?rhel} != 6 make test %endif # Next test fails, because we don't have X11 envoirment ...