diff options
author | 2021-11-06 09:21:20 +0100 | |
---|---|---|
committer | 2021-11-06 09:21:20 +0100 | |
commit | 2b5df4803154cc9a1da6a4177985e0ccf7a11024 (patch) | |
tree | 30a366725edbed911759290c1c7b5677f1bea04b | |
parent | 992c534b22403639a6945f614ddc9bd4175c9cf7 (diff) | |
download | flat-remix-2b5df4803154cc9a1da6a4177985e0ccf7a11024.tar.gz flat-remix-2b5df4803154cc9a1da6a4177985e0ccf7a11024.zip |
Improve fedora package spec file
-rw-r--r-- | flat-remix.spec | 11 |
1 files 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 |