From 45ef95bfe409d6dad9be111985597ec83741ff1b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Oct 18 2006 14:08:59 +0000 Subject: fix scripts --- diff --git a/xchat.spec b/xchat.spec index 4b3eb19..a71b30e 100644 --- a/xchat.spec +++ b/xchat.spec @@ -3,10 +3,11 @@ %define build_fc2 1 %define gconf_version 2.14 + Summary: A popular and easy to use graphical IRC (chat) client Name: xchat Version: 2.6.6 -Release: 6%{?dist} +Release: 7%{?dist} Epoch: 1 Group: Applications/Internet License: GPL @@ -106,13 +107,17 @@ done # Install schema export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas > /dev/null || : -unset GCONF_CONFIG_SOURCE + +%pre +if [ "$1" -gt 1 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas > /dev/null || : +fi %preun -if [ "$1" -gt 0 ]; then +if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas > /dev/null || : - unset GCONF_CONFIG_SOURCE fi %clean @@ -130,6 +135,9 @@ fi %{_sysconfdir}/gconf/schemas/apps_xchat_url_handler.schemas %changelog +* Wed Oct 18 2006 Matthias Clasen - 1.2.6.6-7 +- Fix scripts according to packaging guidelines + * Tue Oct 17 2006 Matthias Clasen - 1.2.6.6-6 - Tighten up Requires (#203813)