[arduino] optimize mimeinfo scriptlet
Rex Dieter
rdieter at fedoraproject.org
Tue Jul 8 19:20:14 UTC 2014
commit e318105767475d99e609ad961a36a0a591654455
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Tue Jul 8 14:20:30 2014 -0500
optimize mimeinfo scriptlet
arduino.spec | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/arduino.spec b/arduino.spec
index 5d1f613..16541c3 100644
--- a/arduino.spec
+++ b/arduino.spec
@@ -1,7 +1,7 @@
Name: arduino
Epoch: 1
Version: 1.0.5
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: An IDE for Arduino-compatible electronics prototyping platforms
Group: Development/Tools
License: GPLv2+ and LGPLv2+ and CC-BY-SA
@@ -199,19 +199,21 @@ rm -rf $RPM_BUILD_ROOT
%post
/usr/bin/update-desktop-database &> /dev/null || :
-/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || :
%postun
/usr/bin/update-desktop-database &> /dev/null || :
-/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || :
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+ /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%files -n %{name}-core
@@ -237,6 +239,9 @@ fi
%changelog
+* Tue Jul 08 2014 Rex Dieter <rdieter at fedoraproject.org> 1:1.0.5-8
+- optimize mimeinfo scriptlet
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:1.0.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list