rpms/bug-buddy/devel bug-buddy.spec,1.62,1.63

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Oct 18 17:55:24 UTC 2006


Author: mclasen

Update of /cvs/dist/rpms/bug-buddy/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv27588

Modified Files:
	bug-buddy.spec 
Log Message:
fix scripts



Index: bug-buddy.spec
===================================================================
RCS file: /cvs/dist/rpms/bug-buddy/devel/bug-buddy.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- bug-buddy.spec	5 Sep 2006 02:11:33 -0000	1.62
+++ bug-buddy.spec	18 Oct 2006 17:55:22 -0000	1.63
@@ -2,6 +2,7 @@
 %define gtk2_version 2.3.0
 %define desktop_file_utils_version 0.9
 %define gnome_doc_utils_version 0.2.0
+%define gconf_version 2.14
 
 Name: bug-buddy
 Version: 2.16.0
@@ -42,6 +43,10 @@
 BuildRequires: libgtop2-devel >= 2.13.3
 BuildRequires: evolution-data-server-devel >= 1.3.0
 
+Requires(pre): GConf2 >= %{gconf_version}
+Requires(post): GConf2 >= %{gconf_version}
+Requires(preun): GConf2 >= %{gconf_version}
+
 %description
 Bug-buddy is a bug reporting utility for the GNOME desktop GUI
 environment. Bug-buddy can obtain a stack trace from a core file or
@@ -84,12 +89,19 @@
 %post
 update-desktop-database %{_datadir}/applications
 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/bug-buddy.schemas > /dev/null
+gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/bug-buddy.schemas > /dev/null || :
 touch --no-create %{_datadir}/icons/hicolor
 if [ -x /usr/bin/gtk-update-icon-cache ]; then
     gtk-update-icon-cache -q %{_datadir}/icons/hicolor
 fi
 
+%pre
+if [ "$1" -gt 1 ]; then
+    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    gconftool-2 --makefile-uninstall-rule \
+      %{_sysconfdir}/gconf/schemas/bug-buddy.schemas > /dev/null || :
+fi
+
 %preun
 if [ "$1" -eq 0 ]; then
     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
@@ -115,6 +127,9 @@
 %{_sysconfdir}/gconf/schemas/*
 
 %changelog
+* Wed Oct 18 2006 Matthias Clasen <mclasen at redhat.com> - 1:2.16.0-2
+- Fix scripts according to the packaging guidelines
+
 * Mon Sep  4 2006 Matthias Clasen <mclasen at redhat.com> - 1:2.16.0-1.fc6
 - Update to 2.16.0
 




More information about the fedora-cvs-commits mailing list