diff --git a/rust.spec b/rust.spec index e4aa812..435bac9 100644 --- a/rust.spec +++ b/rust.spec @@ -54,13 +54,21 @@ # Will build with distro LLVM by default, but the following # versions do not have a version new enough, >= 6.0 -%if 0%{?suse_version} <= 1315 && 0%{?is_opensuse} +# add --without bundled_llvm option, i.e. enable bundled_llvm by default +# Leap 15.0 +%if 0%{?sle_version} == 150000 && 0%{?is_opensuse} %bcond_without bundled_llvm %endif -%if 0%{?sle_version} < 120400 && 0%{?is_backports} +# Leap 42.3 +%if 0%{?sle_version} == 120300 && 0%{?is_opensuse} %bcond_without bundled_llvm %endif -%if 0%{?sle_version} <= 150000 && 0%{?is_opensuse} +# Leap 42.2 +%if 0%{?sle_version} == 120200 && 0%{?is_opensuse} +%bcond_without bundled_llvm +%endif +# SLE Backports SP3 or less +%if 0%{?sle_version} <= 120300 && 0%{?is_backports} %bcond_without bundled_llvm %endif