File project.diff of Package knewstuff
--- knewstuff.spec.orig
+++ knewstuff.spec
@@ -1,7 +1,7 @@
#
# spec file for package knewstuff
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -154,9 +154,18 @@ specification. Development files.
%find_lang knewstuff5
+%if 0%{?suse_version}
+%post -n %{lname} -p /sbin/ldconfig
+%postun -n %{lname} -p /sbin/ldconfig
+%post -n libKF5NewStuffCore5 -p /sbin/ldconfig
+%postun -n libKF5NewStuffCore5 -p /sbin/ldconfig
+%post -n libKF5NewStuffWidgets5 -p /sbin/ldconfig
+%postun -n libKF5NewStuffWidgets5 -p /sbin/ldconfig
+%else
%ldconfig_scriptlets -n %{lname}
%ldconfig_scriptlets -n libKF5NewStuffCore5
%ldconfig_scriptlets -n libKF5NewStuffWidgets5
+%endif
%files -n %{lname}-lang -f knewstuff5.lang