Add file triggers for gtk-update-icon-cache

epel9
Kalev Lember 8 years ago
parent 5b89149a03
commit 345f240673

@ -3,7 +3,7 @@ Name: gnome-icon-theme
Version: 3.12.0 Version: 3.12.0
License: LGPLv3+ License: LGPLv3+
Group: User Interface/Desktops Group: User Interface/Desktops
Release: 5%{?dist} Release: 6%{?dist}
URL: http://www.gnome.org URL: http://www.gnome.org
#VCS: git:git://git.gnome.org/gnome-icon-theme #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" find icons/gnome \( -type l -and -not -name *-rtl.png -and -not -name *-ltr.png \) -printf "%%%%{_datadir}/%%p\n"
) > legacy.txt ) > legacy.txt
%post %transfiletriggerin -- %{_datadir}/icons/gnome
touch --no-create %{_datadir}/icons/gnome &>/dev/null || : gtk-update-icon-cache --force %{_datadir}/icons/gnome &>/dev/null || :
%postun %transfiletriggerpostun -- %{_datadir}/icons/gnome
if [ $1 -eq 0 ] ; then gtk-update-icon-cache --force %{_datadir}/icons/gnome &>/dev/null || :
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 || :
%files -f files.txt %files -f files.txt
%doc COPYING AUTHORS %doc COPYING AUTHORS
@ -125,6 +107,9 @@ gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || :
%{_datadir}/pkgconfig/gnome-icon-theme.pc %{_datadir}/pkgconfig/gnome-icon-theme.pc
%changelog %changelog
* Thu Jun 22 2017 Kalev Lember <klember@redhat.com> - 3.12.0-6
- Add file triggers for gtk-update-icon-cache
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-5 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Loading…
Cancel
Save