Update icon cache on install/update/erase
This commit is contained in:
parent
53d05de85e
commit
cf7e1f3164
12
abiword.spec
12
abiword.spec
|
@ -140,11 +140,20 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
||||||
%post
|
%post
|
||||||
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
||||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||||
|
/usr/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
||||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||||
|
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
/usr/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/abiword
|
%{_bindir}/abiword
|
||||||
%{_datadir}/applications/*.desktop
|
%{_datadir}/applications/*.desktop
|
||||||
|
@ -176,6 +185,9 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 25 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-3
|
||||||
|
- Update icon cache on install/update/erase
|
||||||
|
|
||||||
* Wed Oct 16 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-2
|
* Wed Oct 16 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-2
|
||||||
- Enable gobject-introspection and python bindings
|
- Enable gobject-introspection and python bindings
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue