diff --git a/gcc.spec.in b/gcc.spec.in index b8370cc..ad1511c 100644 --- a/gcc.spec.in +++ b/gcc.spec.in @@ -114,7 +114,7 @@ %define build_jit 0 %endif -%if 0%{suse_version} >= 1599 || 0%{sle_version} >= 150300 +%if 0%{suse_version} >= 1599 || 0%{?sle_version:%sle_version} >= 150300 # FIXME: more once glibc 2.37 is released %define glibc_version %(rpm -q glibc --qf '%%{VERSION}') %define floatn_fixed_glibc %(case " %{glibc_version} " in (*9000*) echo 1;; (*) echo 0;; esac) diff --git a/gcc13-testresults.spec b/gcc13-testresults.spec index cf60a19..2f60b23 100644 --- a/gcc13-testresults.spec +++ b/gcc13-testresults.spec @@ -134,7 +134,7 @@ %define build_jit 0 %endif -%if 0%{suse_version} >= 1599 || 0%{sle_version} >= 150300 +%if 0%{suse_version} >= 1599 || 0%{?sle_version:%sle_version} >= 150300 # FIXME: more once glibc 2.37 is released %define glibc_version %(rpm -q glibc --qf '%%{VERSION}') %define floatn_fixed_glibc %(case " %{glibc_version} " in (*9000*) echo 1;; (*) echo 0;; esac) diff --git a/gcc13.spec b/gcc13.spec index e993dd9..1f02541 100644 --- a/gcc13.spec +++ b/gcc13.spec @@ -113,7 +113,7 @@ %define build_jit 0 %endif -%if 0%{suse_version} >= 1599 || 0%{sle_version} >= 150300 +%if 0%{suse_version} >= 1599 || 0%{?sle_version:%sle_version} >= 150300 # FIXME: more once glibc 2.37 is released %define glibc_version %(rpm -q glibc --qf '%%{VERSION}') %define floatn_fixed_glibc %(case " %{glibc_version} " in (*9000*) echo 1;; (*) echo 0;; esac)