From 66ec016fab1fc806897ad515c84902855e33ce47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 9 Apr 2017 14:01:00 +0200 Subject: [PATCH] Apply sip patch only on Fedora >= 26 --- qgis.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qgis.spec b/qgis.spec index f4d49dc..8fe926c 100644 --- a/qgis.spec +++ b/qgis.spec @@ -193,7 +193,10 @@ Please refer to %{name}-server-README.fedora for details! %prep %setup -q %patch0 -p1 -b .lib64 +# Only Fedora >= 26 needs this patch +%if 0%{?fedora} >= 26 %patch1 -p1 -b .sip +%endif # Remove executable permissions from source code files find . \( -name "*.cpp" -o -name "*.h" \) -type f -perm /111 -execdir chmod -x {} \+