File project.diff of Package ktextwidgets

--- ktextwidgets.spec.orig
+++ ktextwidgets.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package ktextwidgets
 #
-# Copyright (c) 2021 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
@@ -86,7 +86,12 @@ rich text as well as plain text. Develop
 
 %find_lang ktextwidgets5
 
+%if 0%{?suse_version}
+%post -n %{lname} -p /sbin/ldconfig
+%postun -n %{lname} -p /sbin/ldconfig
+%else
 %ldconfig_scriptlets -n %{lname}
+%endif
 
 %files -n %{lname}-lang -f ktextwidgets5.lang
 
openSUSE Build Service is sponsored by