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 {} \+