Accepting request 744798 from home:aaronpuchert:branches:X11:XOrg

- Use %pkg_vcmp macro instead of llvm-config to detect LLVM 9.

OBS-URL: https://build.opensuse.org/request/show/744798
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=891
This commit is contained in:
2019-11-01 19:00:41 +00:00
committed by Git OBS Bridge
parent b961348b3b
commit 8e8c121fa3
4 changed files with 14 additions and 4 deletions

View File

@@ -729,9 +729,9 @@ programs against the XA state tracker.
rm -rf docs/README.{VMS,WIN32,OS2}
%if 0%{with_llvm}
if test $(llvm-config --version | cut -d "." -f1) -ge 9; then
%if %{pkg_vcmp llvm-devel >= 9.0}
%patch1 -p1
fi
%endif
%endif
%patch2 -p1
%patch54 -p1