Hello,
So I gather as the result of this discussion would be:
---- %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi
%posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : ----
Initial install and upgrades are handled by %post and %posttrans, final erase by %postun. Anything more to tweak? If not, is this discussion (see also 1) in my initial mail [0]) and summary enough for the FPC so you can look into it in a near future meeting?
[0] https://www.redhat.com/archives/fedora-packaging/2009-January/msg00138.html