Add file triggers for gtk-update-icon-cache
This commit is contained in:
parent
832f050085
commit
d5d11035bd
@ -1,7 +1,7 @@
|
||||
Summary: Basic requirement for icon themes
|
||||
Name: hicolor-icon-theme
|
||||
Version: 0.15
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: GPLv2+
|
||||
Group: User Interface/Desktops
|
||||
URL: http://icon-theme.freedesktop.org/wiki/HicolorTheme
|
||||
@ -27,17 +27,11 @@ make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
||||
|
||||
touch $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%transfiletriggerin -- %{_datadir}/icons/hicolor
|
||||
gtk-update-icon-cache --force %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%transfiletriggerpostun -- %{_datadir}/icons/hicolor
|
||||
gtk-update-icon-cache --force %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
@ -46,6 +40,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%ghost %{_datadir}/icons/hicolor/icon-theme.cache
|
||||
|
||||
%changelog
|
||||
* Thu Jun 22 2017 Kalev Lember <klember@redhat.com> - 0.15-5
|
||||
- Add file triggers for gtk-update-icon-cache
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user