From 8a9f9bac166e91b91b6bd41b1ffed15506227b471477261e4c4d4f625f143c20 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Mon, 30 Nov 2020 15:00:07 +0000 Subject: [PATCH] refix build on sle15/leap15 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1012 --- Mesa-drivers.spec | 12 ++++++++++-- Mesa.spec | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Mesa-drivers.spec b/Mesa-drivers.spec index 8cb0247..05f94e7 100644 --- a/Mesa-drivers.spec +++ b/Mesa-drivers.spec @@ -209,19 +209,27 @@ BuildRequires: pkgconfig(wayland-client) >= 1.11 BuildRequires: pkgconfig(wayland-protocols) >= 1.8 BuildRequires: pkgconfig(wayland-server) >= 1.11 %if 0%{with_llvm} -%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150300 +%if 0%{?suse_version} >= 1550 BuildRequires: llvm-devel >= 11.0.0 %else +%if 0%{?sle_version} >= 150300 +BuildRequires: llvm11-devel +%else BuildRequires: llvm9-devel %endif %endif +%endif %if 0%{with_opencl} %if 0%{?suse_version} >= 1550 -BuildRequires: clang-devel >= 10.0.0 +BuildRequires: clang-devel >= 11.0.0 +%else +%if 0%{?sle_version} >= 150300 +BuildRequires: clang11-devel %else BuildRequires: clang9-devel %endif +%endif BuildRequires: libclc %endif diff --git a/Mesa.spec b/Mesa.spec index eb55b79..e9288d1 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -208,19 +208,27 @@ BuildRequires: pkgconfig(wayland-client) >= 1.11 BuildRequires: pkgconfig(wayland-protocols) >= 1.8 BuildRequires: pkgconfig(wayland-server) >= 1.11 %if 0%{with_llvm} -%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150300 +%if 0%{?suse_version} >= 1550 BuildRequires: llvm-devel >= 11.0.0 %else +%if 0%{?sle_version} >= 150300 +BuildRequires: llvm11-devel +%else BuildRequires: llvm9-devel %endif %endif +%endif %if 0%{with_opencl} %if 0%{?suse_version} >= 1550 -BuildRequires: clang-devel >= 10.0.0 +BuildRequires: clang-devel >= 11.0.0 +%else +%if 0%{?sle_version} >= 150300 +BuildRequires: clang11-devel %else BuildRequires: clang9-devel %endif +%endif BuildRequires: libclc %endif