From 2b5df4803154cc9a1da6a4177985e0ccf7a11024 Mon Sep 17 00:00:00 2001 From: Daniel Ruiz de Alegría Date: Sat, 6 Nov 2021 09:21:20 +0100 Subject: Improve fedora package spec file --- flat-remix.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/flat-remix.spec b/flat-remix.spec index 4be966a66..5a8f10163 100644 --- a/flat-remix.spec +++ b/flat-remix.spec @@ -22,23 +22,24 @@ Flat Remix is an icon theme inspired by material design. It is mostly flat using %build %post -for theme in /usr/share/icons/Flat-Remix* +for theme in %{_datadir}/icons/Flat-Remix* do - gtk-update-icon-cache --force /usr/share/icons/${theme} || : + touch --no-create %{_datadir}/icons/${theme} &> /dev/null || : + gtk-update-icon-cache --force %{_datadir}/icons/${theme} &> /dev/null || : done %postun if [ $1 -eq 0 ]; then - for theme in /usr/share/icons/Flat-Remix* + for theme in %{_datadir}/icons/Flat-Remix* do - gtk-update-icon-cache --force /usr/share/icons/${theme} || : + touch --no-create %{_datadir}/icons/${theme} &> /dev/null || : + gtk-update-icon-cache --force %{_datadir}/icons/${theme} &> /dev/null || : done fi %files %license LICENSE %doc README.md AUTHORS -%dir %{_datadir}/icons/Flat-Remix-*/ %{_datadir}/icons/Flat-Remix-*/ %ghost %{_datadir}/icons/Flat-Remix-*/icon-theme.cache -- cgit v1.2.3