Skip to content
Snippets Groups Projects
Commit e87b19de authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

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
parent b1c229fd
No related branches found
No related tags found
No related merge requests found
...@@ -204,7 +204,9 @@ DESTDIR=%{buildroot} make -C client-gnome/build install ...@@ -204,7 +204,9 @@ DESTDIR=%{buildroot} make -C client-gnome/build install
%{_datadir}/dbus-1/services/* %{_datadir}/dbus-1/services/*
%{_datadir}/dbus-1/interfaces/* %{_datadir}/dbus-1/interfaces/*
%post -p /sbin/ldconfig %post
-p /sbin/ldconfig
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun %postun
-p /sbin/ldconfig -p /sbin/ldconfig
...@@ -216,11 +218,17 @@ DESTDIR=%{buildroot} make -C client-gnome/build install ...@@ -216,11 +218,17 @@ DESTDIR=%{buildroot} make -C client-gnome/build install
fi fi
%endif %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 %posttrans
#for < f24 we have to update the schema explicitly #for < f24 we have to update the schema explicitly
%if 0%{?fedora} < 24 %if 0%{?fedora} < 24
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%endif %endif
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog %changelog
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment