[phatch] update icon/mime scriptlets
Rex Dieter
rdieter at fedoraproject.org
Thu Oct 2 19:54:43 UTC 2014
commit 8eb9dc4338ee77070819b54651cb8f48e1ca7aae
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Thu Oct 2 14:54:36 2014 -0500
update icon/mime scriptlets
phatch.spec | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/phatch.spec b/phatch.spec
index ba64bf6..887fd4c 100644
--- a/phatch.spec
+++ b/phatch.spec
@@ -3,7 +3,7 @@
Name: phatch
Version: 0.2.7
-Release: 16%{?dist}
+Release: 17%{?dist}
Summary: Photo batch processor
Group: Applications/Multimedia
License: GPLv3+
@@ -99,22 +99,23 @@ desktop-file-install --vendor="" \
chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/{%{name}.py,lib/pyWx/dialogsInspector.py,lib/metadataTest.py,other/surd.py,other/EXIF.py,other/pep8.py}
-%post -n %{name}
-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 || :
-update-mime-database %{_datadir}/mime &> /dev/null || :
-
-%postun -n %{name}
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+%postun
+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 || :
-update-mime-database %{_datadir}/mime &> /dev/null || :
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%files
@@ -147,6 +148,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 0.2.7-17
+- update icon/mime scriptlets
+
* Mon Jun 30 2014 Toshio Kuratomi <toshio at fedoraproject.org> - 0.2.7-16
- Replace python-setuptools-devel BR with python-setuptools
More information about the scm-commits
mailing list