From e87b19debf7fade9f38651f0ad34ae56776abf0d Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Thu, 17 Nov 2016 11:06:26 -0500 Subject: [PATCH] packaging: update icon cache on fedora The icon cache needs to be updated because we install the ring icon in the hicolor theme. https://fedoraproject.org/wiki/Packaging:Scriptlets#Icon_Cache Change-Id: I9a70265845c88d577782d420451fb3c9e70507f5 Tuleap: #1319 --- packaging/rules/fedora/ring.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packaging/rules/fedora/ring.spec b/packaging/rules/fedora/ring.spec index 7ef01fa8..9258ff8c 100644 --- a/packaging/rules/fedora/ring.spec +++ b/packaging/rules/fedora/ring.spec @@ -204,7 +204,9 @@ DESTDIR=%{buildroot} make -C client-gnome/build install %{_datadir}/dbus-1/services/* %{_datadir}/dbus-1/interfaces/* -%post -p /sbin/ldconfig +%post +-p /sbin/ldconfig +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun -p /sbin/ldconfig @@ -216,11 +218,17 @@ DESTDIR=%{buildroot} make -C client-gnome/build install fi %endif +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + %posttrans #for < f24 we have to update the schema explicitly %if 0%{?fedora} < 24 /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %endif +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog -- GitLab