File project.diff of Package kio

--- kio.spec.orig
+++ kio.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package kio
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -39,8 +39,11 @@ BuildRequires:  extra-cmake-modules >= %
 BuildRequires:  fdupes
 # gcc7 is too old for std::transform_reduce
 %if 0%{?suse_version} == 1500
-BuildRequires:  gcc13-c++
-BuildRequires:  gcc13-PIE
+%if %{?sle_version} < 150300
+BuildRequires:  gcc9-c++
+%else
+BuildRequires:  gcc10-c++
+%endif
 %endif
 BuildRequires:  krb5-devel
 BuildRequires:  libacl-devel
@@ -81,8 +84,8 @@ BuildRequires:  cmake(Qt5Xml) >= %{qt5_v
 BuildRequires:  pkgconfig(mount)
 BuildRequires:  pkgconfig(openssl)
 BuildRequires:  pkgconfig(x11)
-Requires:       kio-core = %{version}
 Requires:       kded >= %{_kf5_version}
+Requires:       kio-core = %{version}
 # KIO/FileDialog uses klauncher directly, but we can't add Requires, as that would introduce dep cycle
 Recommends:     kinit
 # Only useful for laptops with hybrid GPU
@@ -139,7 +142,11 @@ Development files.
 %endif
 
 %if 0%{?suse_version} == 1500
-export CXX=g++-13
+%if %{?sle_version} < 150300
+export CXX=g++-9
+%else
+export CXX=g++-10
+%endif
 %endif
 
 %cmake_kf5 -d build
@@ -158,8 +165,15 @@ rm %{buildroot}%{_kf5_plugindir}/kcm_tra
 %find_lang kio --with-man --all-name
 %{kf5_find_htmldocs}
 
+%if 0%{?suse_version}
+%post core -p /sbin/ldconfig
+%postun core -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+%else
 %ldconfig_scriptlets core
 %ldconfig_scriptlets
+%endif
 
 %files lang -f kio.lang
 
openSUSE Build Service is sponsored by