[kde-runtime] move drkonqi-related scriptlet to -drkonqi subpkg

Rex Dieter rdieter at fedoraproject.org
Mon Apr 29 16:16:28 UTC 2013


commit 321feb95ecb869d626797a2a6531c85d882ea14e
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Mon Apr 29 11:16:29 2013 -0500

    move drkonqi-related scriptlet to -drkonqi subpkg

 kde-runtime.spec |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)
---
diff --git a/kde-runtime.spec b/kde-runtime.spec
index 9dc8fad..33618ec 100644
--- a/kde-runtime.spec
+++ b/kde-runtime.spec
@@ -6,7 +6,7 @@
 Name:    kde-runtime
 Summary: KDE Runtime
 Version: 4.10.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 # http://techbase.kde.org/Policies/Licensing_Policy
 License: LGPLv2+ and GPLv2+
@@ -257,17 +257,6 @@ done
 
 %post
 touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
-%if 0%{?fedora} > 16 || 0%{?rhel} > 6
-# make DrKonqi work by default by taming SELinux enough (suggested by dwalsh)
-# if KDE_DEBUG is set, DrKonqi is disabled, so do nothing
-# if it is unset (or empty), check if deny_ptrace is already disabled
-# if not, disable it
-if [ -z "$KDE_DEBUG" ] ; then
-  if [ "`getsebool deny_ptrace 2>/dev/null`" == 'deny_ptrace --> on' ] ; then
-    setsebool -P deny_ptrace off &> /dev/null || :
-  fi
-fi
-%endif
 
 %posttrans
 gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
@@ -374,6 +363,19 @@ fi
 %{_kde4_includedir}/*
 %{_kde4_appsdir}/cmake/modules/*.cmake
 
+%if 0%{?fedora} > 16 || 0%{?rhel} > 6
+%post drkonqi
+# make DrKonqi work by default by taming SELinux enough (suggested by dwalsh)
+# if KDE_DEBUG is set, DrKonqi is disabled, so do nothing
+# if it is unset (or empty), check if deny_ptrace is already disabled
+# if not, disable it
+if [ -z "$KDE_DEBUG" ] ; then
+  if [ "`getsebool deny_ptrace 2>/dev/null`" == 'deny_ptrace --> on' ] ; then
+    setsebool -P deny_ptrace off &> /dev/null || :
+  fi
+fi
+%endif
+
 %files drkonqi
 %{_kde4_libexecdir}/drkonqi
 %{_kde4_libexecdir}/installdbgsymbols.sh
@@ -402,6 +404,9 @@ fi
 
 
 %changelog
+* Mon Apr 29 2013 Rex Dieter <rdieter at fedoraproject.org> 4.10.2-3
+- move drkonqi-related scriptlet to -drkonqi subpkg
+
 * Mon Apr 29 2013 Than Ngo <than at redhat.com> - 4.10.2-2
 - fix multilib issue
 


More information about the scm-commits mailing list