[vym] update desktop/icon/mime scriptlets
Rex Dieter
rdieter at fedoraproject.org
Thu Oct 2 22:24:52 UTC 2014
commit 2f5d48f67ee32807615b366224051dda6c565eca
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Thu Oct 2 17:24:45 2014 -0500
update desktop/icon/mime scriptlets
vym.spec | 29 +++++++++++++++++------------
1 files changed, 17 insertions(+), 12 deletions(-)
---
diff --git a/vym.spec b/vym.spec
index 840f9c2..0754843 100644
--- a/vym.spec
+++ b/vym.spec
@@ -2,7 +2,7 @@
Name: vym
Version: 2.3.24
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: View your mind
Group: Applications/Productivity
@@ -92,22 +92,24 @@ install -p -m a+r,u+w %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/vym.xml
mv %{buildroot}%{?docval}/vym.pdf .
-%post
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
-
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+touch --no-create %{_datadir}/mime/packages &> /dev/null || :
update-desktop-database &> /dev/null || :
-
+
%postun
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
+ touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
fi
-
update-desktop-database &> /dev/null || :
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+
%files
%doc LICENSE.txt README.txt INSTALL.txt demos/* doc/* vym.pdf
%{_bindir}/%{name}
@@ -123,6 +125,9 @@ update-desktop-database &> /dev/null || :
%changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 2.3.24-3
+- update desktop/icon/mime scriptlets
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.24-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
More information about the scm-commits
mailing list