[kde-workspace] add fedora-plasma-cache kconf_update script

Rex Dieter rdieter at fedoraproject.org
Fri Jan 25 18:07:55 UTC 2013


commit ba0e7fd167caa4df886d003864347699c9d69c61
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Fri Jan 25 12:07:50 2013 -0600

    add fedora-plasma-cache kconf_update script

 fedora-plasma-cache.sh  |    4 ++++
 fedora-plasma-cache.upd |    2 ++
 kde-workspace.spec      |   13 ++++++++++++-
 3 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/fedora-plasma-cache.sh b/fedora-plasma-cache.sh
new file mode 100755
index 0000000..1c47bfe
--- /dev/null
+++ b/fedora-plasma-cache.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+rm -fv "`kde4-config --path cache`/"*.kcache
+exit 0
diff --git a/fedora-plasma-cache.upd b/fedora-plasma-cache.upd
new file mode 100644
index 0000000..c0adcfc
--- /dev/null
+++ b/fedora-plasma-cache.upd
@@ -0,0 +1,2 @@
+Id=4.10fedora-plasma-cache
+Script=fedora-plasma-cache.sh
diff --git a/kde-workspace.spec b/kde-workspace.spec
index 84beb46..b2dde14 100644
--- a/kde-workspace.spec
+++ b/kde-workspace.spec
@@ -5,7 +5,7 @@
 Summary: KDE Workspace
 Name:    kde-workspace
 Version: 4.9.98
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 License: GPLv2
 URL:     https://projects.kde.org/projects/kde/kde-workspace
@@ -17,6 +17,10 @@ URL:     https://projects.kde.org/projects/kde/kde-workspace
 %endif
 Source0: http://download.kde.org/%{stable}/%{version}/src/kde-workspace-%{version}.tar.xz
 
+# hack/workaround to invalidate (delete) plasma pixmap cache on upgrade
+Source10: fedora-plasma-cache.upd
+Source11: fedora-plasma-cache.sh
+
 # RH/Fedora-specific startkde changes
 Patch1: kde-workspace-4.9.90-redhat_startkde.patch
 
@@ -493,6 +497,10 @@ pushd %{buildroot}%{_kde4_appsdir}/kdm/faces
 ln -sf ../pics/users/%{default_face_icon} .default.face.icon
 popd
 
+# kconf_update scripts
+install -m644 -p %{SOURCE10} %{buildroot}%{_kde4_appsdir}/kconf_update/
+install -m755 -p %{SOURCE11} %{buildroot}%{_kde4_appsdir}/kconf_update/
+
 # unpackaged files
 rm -rfv %{buildroot}%{_kde4_appsdir}/ksplash/Themes/Default/
 
@@ -976,6 +984,9 @@ fi
 
 
 %changelog
+* Fri Jan 25 2013 Rex Dieter <rdieter at fedoraproject.org> 4.9.98-3
+- add fedora-plasma-cache kconf_update script
+
 * Tue Jan 22 2013 Rex Dieter <rdieter at fedoraproject.org> 4.9.98-2
 - respin systemd_login1 patch
 


More information about the scm-commits mailing list