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