[gap] optimize/update icon scriptlets
Rex Dieter
rdieter at fedoraproject.org
Fri Dec 21 13:40:49 UTC 2012
commit cdad95668edc5197e09ed5fe153b536ba20a3259
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Fri Dec 21 07:41:13 2012 -0600
optimize/update icon scriptlets
gap.spec | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/gap.spec b/gap.spec
index cf95b3c..a379c74 100644
--- a/gap.spec
+++ b/gap.spec
@@ -6,7 +6,7 @@
Name: gap
Version: %(echo %upstreamver | sed -r "s/r|p/./g")
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Computational discrete algebra
Group: Applications/Engineering
@@ -311,17 +311,21 @@ sed "s|@VERSION@|%{version}|" %{SOURCE7} > $RPM_BUILD_ROOT%{_mandir}/man1/gac.1
cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man1
%post core
+update-desktop-database %{_datadir}/applications &>/dev/null ||:
update-mime-database %{_datadir}/mime &>/dev/null ||:
touch --no-create %{icondir} >&/dev/null ||:
-%{_bindir}/gtk-update-icon-cache %{icondir} >&/dev/null ||:
-update-desktop-database %{_datadir}/applications &>/dev/null ||:
%{_bindir}/update-gap-workspace ||:
+%posttrans
+%{_bindir}/gtk-update-icon-cache %{icondir} >&/dev/null ||:
+
%postun core
+update-desktop-database %{_datadir}/applications &>/dev/null ||:
update-mime-database %{_datadir}/mime &>/dev/null ||:
+if [ $1 -eq 0 ] ; then
touch --no-create %{icondir} >&/dev/null ||:
%{_bindir}/gtk-update-icon-cache %{icondir} >&/dev/null ||:
-update-desktop-database %{_datadir}/applications &>/dev/null ||:
+fi
%check
sed -e "s|^GAP_DIR=.*|GAP_DIR=$PWD|" \
@@ -390,6 +394,9 @@ make testinstall
%{_xemacs_sitelispdir}/gap*.el
%changelog
+* Fri Dec 21 2012 Rex Dieter <rdieter at fedoraproject.org> 4.5.7-2
+- optimize/update icon scriptlets
+
* Mon Dec 17 2012 Jerry James <loganjerry at gmail.com> - 4.5.7-1
- New upstream release
More information about the scm-commits
mailing list