From 345f24067366d31ec99f8d4f7c211273d94f2a9e Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Jun 22 2017 12:14:14 +0000 Subject: Add file triggers for gtk-update-icon-cache --- diff --git a/gnome-icon-theme.spec b/gnome-icon-theme.spec index cdfd174..c8a810b 100644 --- a/gnome-icon-theme.spec +++ b/gnome-icon-theme.spec @@ -3,7 +3,7 @@ Name: gnome-icon-theme Version: 3.12.0 License: LGPLv3+ Group: User Interface/Desktops -Release: 5%{?dist} +Release: 6%{?dist} URL: http://www.gnome.org #VCS: git:git://git.gnome.org/gnome-icon-theme @@ -91,29 +91,11 @@ touch files.txt find icons/gnome \( -type l -and -not -name *-rtl.png -and -not -name *-ltr.png \) -printf "%%%%{_datadir}/%%p\n" ) > legacy.txt -%post -touch --no-create %{_datadir}/icons/gnome &>/dev/null || : +%transfiletriggerin -- %{_datadir}/icons/gnome +gtk-update-icon-cache --force %{_datadir}/icons/gnome &>/dev/null || : -%postun -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/gnome &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : -fi - -%posttrans -gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : - -%post legacy -touch --no-create %{_datadir}/icons/gnome &>/dev/null || : - -%postun legacy -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/gnome &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : -fi - -%posttrans legacy -gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : +%transfiletriggerpostun -- %{_datadir}/icons/gnome +gtk-update-icon-cache --force %{_datadir}/icons/gnome &>/dev/null || : %files -f files.txt %doc COPYING AUTHORS @@ -125,6 +107,9 @@ gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : %{_datadir}/pkgconfig/gnome-icon-theme.pc %changelog +* Thu Jun 22 2017 Kalev Lember - 3.12.0-6 +- Add file triggers for gtk-update-icon-cache + * Fri Feb 10 2017 Fedora Release Engineering - 3.12.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild