From 5729f44470c7cf02f1c1fffe25abbe32ce5f6a644f593d1e677ae907ddd03f19 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 8 Aug 2023 00:19:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1095 --- libreoffice.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index ba4b4a5..50f207e 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -319,7 +319,7 @@ BuildConflicts: java-headless < 9 BuildRequires: pkgconfig(libopenjp2) %endif # Dragonbox requires gcc11 -%if 0%{?suse_version} > 1550 +%if 0%{?is_opensuse} || 0%{?sle_version} >= 150000 BuildRequires: gcc >= 11 BuildRequires: gcc-c++ >= 11 %else @@ -1098,7 +1098,7 @@ CFLAGS="$ARCH_FLAGS" CXXFLAGS="$ARCH_FLAGS" export ARCH_FLAGS CFLAGS CXXFLAGS -%if 0%{?suse_version} < 1550 +%if !0%{?is_opensuse} && 0%{?sle_version} < 150000 export CC=gcc-11 export CXX=g++-11 %endif