[bisho] readd GConf even though the ChangeLog says it was removed

Peter Robinson pbrobinson at fedoraproject.org
Mon Sep 27 11:44:28 UTC 2010


commit 2ad55dca3da2efc4942cf70497a7bd1570e9a75d
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Mon Sep 27 12:44:29 2010 +0100

    readd GConf even though the ChangeLog says it was removed

 bisho.spec |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/bisho.spec b/bisho.spec
index 217ad28..1574b79 100644
--- a/bisho.spec
+++ b/bisho.spec
@@ -28,6 +28,10 @@ BuildRequires: intltool
 BuildRequires: gettext
 BuildRequires: libtool
 
+Requires(pre): GConf2
+Requires(post): GConf2
+Requires(preun): GConf2
+
 Requires: gvfs
 
 %description
@@ -84,6 +88,16 @@ fi
 %post
 /sbin/ldconfig
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule \
+%{_sysconfdir}/gconf/schemas/bisho.schemas > /dev/null || :
+
+%preun
+if [ "$1" -eq 0 ] ; then
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-uninstall-rule \
+%{_sysconfdir}/gconf/schemas/bisho.schemas > /dev/null || :
+fi
 
 %postun
 /sbin/ldconfig


More information about the scm-commits mailing list