[revelation] update desktop/icon/mime scriptlets

Rex Dieter rdieter at fedoraproject.org
Thu Oct 2 21:02:56 UTC 2014


commit 7b551e8de4aee5e8ffde9315e33aa4f645ccc933
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Oct 2 16:02:47 2014 -0500

    update desktop/icon/mime scriptlets

 revelation.spec |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/revelation.spec b/revelation.spec
index 33bb640..6be24c6 100644
--- a/revelation.spec
+++ b/revelation.spec
@@ -6,7 +6,7 @@
 Summary:	Password manager for GNOME 2
 Name:		revelation
 Version:	0.4.14
-Release: 	7%{?dist}
+Release: 	8%{?dist}
 License:	GPLv2+
 Group:		Applications/Productivity
 Source0: 	revelation-%{version}.tar.xz 
@@ -38,9 +38,8 @@ BuildRequires:	gnome-python2-gnome
 BuildRequires:  gnome-python2-extras gnome-python2-desktop
 BuildRequires:	intltool
 BuildRoot: 	%{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n)
-Requires(post):         GConf2 shared-mime-info desktop-file-utils
+Requires(post):         GConf2
 Requires(preun):        GConf2
-Requires(postun):       shared-mime-info desktop-file-utils
 
 %description
 Revelation is a password manager. It organizes accounts in
@@ -80,18 +79,25 @@ desktop-file-install \
 
 %post
 %gconf_schema_upgrade %{name}
-update-mime-database %{_datadir}/mime &> /dev/null || :
-update-desktop-database %{_datadir}/applications &> /dev/null || :
-gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
 
 
 %preun
 %gconf_schema_remove %{name}
 
 %postun
-update-mime-database %{_datadir}/mime &> /dev/null || :
-update-desktop-database %{_datadir}/applications &> /dev/null || :
-gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ]; then
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+fi
+
+%posttrans
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 
 %clean
@@ -111,6 +117,9 @@ gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &> /dev/null || :
 %{_datadir}/mime/packages/*
 
 %changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 0.4.14-8
+- update desktop/icon/mime scriptlets
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.14-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list