From 4b5d27a8e3af173de009f1996892c5d8b31fd20c Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 17 Apr 2007 08:50:36 +0000 Subject: [PATCH] - Update desktop database on %postun as well (bug #236163). - Resolves: rhbz#236163 --- hplip.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hplip.spec b/hplip.spec index c903862..f0413b3 100644 --- a/hplip.spec +++ b/hplip.spec @@ -1,7 +1,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 1.7.2 -Release: 7%{?dist} +Release: 8%{?dist} License: GPL/MIT/BSD Group: System Environment/Daemons Conflicts: system-config-printer < 0.6.132 @@ -50,7 +50,8 @@ Summary: HPLIP graphical tools Group: Applications/System License: BSD Requires: PyQt -Requires: desktop-file-utils >= 0.2.92 +Requires(post): desktop-file-utils >= 0.2.92 +Requires(postun): desktop-file-utils >= 0.2.92 Requires: %{name} = %{version}-%{release} %description gui @@ -270,6 +271,9 @@ exit 0 %post gui /usr/bin/update-desktop-database &>/dev/null ||: +%postun gui +/usr/bin/update-desktop-database &>/dev/null ||: + %post -n libsane-hpaio /sbin/ldconfig if [ -f /etc/sane.d/dll.conf ] && \ @@ -279,6 +283,9 @@ fi exit 0 %changelog +* Tue Apr 17 2007 Tim Waugh 1.7.2-8 +- Update desktop database on %%postun as well (bug #236163). + * Mon Apr 16 2007 Tim Waugh 1.7.2-7 - Some parts can run without GUI support after all (bug #236161). - Added /sbin/service and /sbin/chkconfig requirements for the scriptlets