Update icon cache scriptlets

https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
This commit is contained in:
Kalev Lember 2014-03-22 14:14:47 +01:00
parent d2e3c37dbf
commit a9c00d4e93

View File

@ -198,7 +198,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/tracker-*.desktop
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%post ui-tools %post ui-tools
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun %postun
/sbin/ldconfig /sbin/ldconfig
@ -208,19 +208,15 @@ fi
%postun ui-tools %postun ui-tools
if [ $1 -eq 0 ] ; then if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor &>/dev/null
if [ -x %{_bindir}/gtk-update-icon-cache ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
fi fi
%posttrans %posttrans
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%posttrans ui-tools %posttrans ui-tools
if [ -x %{_bindir}/gtk-update-icon-cache ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files -f %{name}.lang %files -f %{name}.lang
%doc AUTHORS COPYING NEWS README %doc AUTHORS COPYING NEWS README
@ -286,6 +282,7 @@ fi
* Sat Mar 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.17.8-2 * Sat Mar 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.17.8-2
- Use desktop-file-validate instead of desktop-file-install - Use desktop-file-validate instead of desktop-file-install
- Remove ld.so.conf.d override - Remove ld.so.conf.d override
- Update icon cache scriptlets
* Fri Mar 21 2014 Kalev Lember <kalevlember@gmail.com> - 0.17.8-1 * Fri Mar 21 2014 Kalev Lember <kalevlember@gmail.com> - 0.17.8-1
- Update to 0.17.8 - Update to 0.17.8