]> git.pld-linux.org Git - packages/ggv.git/blobdiff - ggv.spec
- run /usr/bin/update-desktop-database if present in %%post and %%postun
[packages/ggv.git] / ggv.spec
index 6b12144b7d5f794ba08b0cfeb0f61972d5ad365f..8cfe47643a655cf6d1c89621cca98f7a02d5d339 100644 (file)
--- a/ggv.spec
+++ b/ggv.spec
@@ -26,7 +26,7 @@ BuildRequires:        popt-devel
 BuildRequires: rpm-build >= 4.1-8.2
 BuildRequires: scrollkeeper
 Requires(post):        GConf2
-Requires(post):        scrollkeeper
+Requires(post,postun): scrollkeeper
 Requires:      ghostscript
 Requires:      libbonobo >= 2.6.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -77,10 +77,15 @@ rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
 rm -rf $RPM_BUILD_ROOT
 
 %post
+umask 022
 /usr/bin/scrollkeeper-update
 %gconf_schema_install
+[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
 
-%postun -p /usr/bin/scrollkeeper-update
+%postun
+umask 022
+/usr/bin/scrollkeeper-update
+[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
This page took 0.0742930000000001 seconds and 4 git commands to generate.