From beb74fa21dbf78c071702a162228227a0c364958 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 31 Oct 2006 15:01:47 +0000 Subject: [PATCH] - Update desktop database (bug #213249). - Resolves: rhbz#213249 --- system-config-printer.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system-config-printer.spec b/system-config-printer.spec index 8544b15..f50e5a7 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -23,6 +23,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: pygtk2 >= 2.4.0, pygtk2-libglade Requires: pygobject2 Requires: usermode >= 1.37 +Requires: desktop-file-utils >= 0.2.92 PreReq: system-config-printer-libs = %{version}-%{release} Obsoletes: system-config-printer-gui <= 0.6.152 @@ -103,9 +104,18 @@ rm -rf $RPM_BUILD_ROOT %post /bin/rm -f /var/cache/foomatic/foomatic.pickle +/usr/bin/update-desktop-database &>/dev/null ||: exit 0 +%postun +if [ "$1" = "0" ]; then + /usr/bin/update-desktop-database &>/dev/null ||: +fi + %changelog +* Tue Oct 31 2006 Tim Waugh +- Update desktop database (bug #213249). + * Tue Oct 24 2006 Tim Waugh - Build requires Python 2.4.