From f0c4695639d85805bed12a988883a98a34f2ebaa Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 22 Aug 2006 15:27:30 +0000 Subject: [PATCH] add %%preun --- file-roller.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/file-roller.spec b/file-roller.spec index fc4f59a..2f67868 100644 --- a/file-roller.spec +++ b/file-roller.spec @@ -11,7 +11,7 @@ Summary: File Roller is a tool for viewing and creating archives Name: file-roller Version: 2.15.93 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL Group: Applications/Archiving @@ -90,15 +90,18 @@ rm -rf $RPM_BUILD_ROOT update-desktop-database -q scrollkeeper-update -q export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` -SCHEMAS="file-roller.schemas" -for S in $SCHEMAS; do - gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null -done +gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/file-roller.schemas 2>&1 >/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 +%preun +if [ "$1" -eq 0 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/file-roller.schemas 2>&1 >/dev/null +fi + %postun update-desktop-database -q scrollkeeper-update -q @@ -120,6 +123,10 @@ fi %{_libdir}/nautilus/extensions-1.0/libnautilus-fileroller.so %changelog +* Tue Aug 22 2006 Matthias Clasen - 2.15.93-2.fc6 +- Add a %%preun script +- Silence %%post and %%preun + * Mon Aug 21 2006 Matthias Clasen - 2.15.93-1.fc6 - Update to 2.15.93