Apply sip patch only on Fedora >= 26

This commit is contained in:
Daniele Viganò 2017-04-09 14:01:00 +02:00
parent 441611c62e
commit 66ec016fab

View File

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