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
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 <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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Loading…
Cancel
Save