Add packaging snippets to update the icon cache

This commit is contained in:
Yanko Kaneti 2012-10-01 13:24:22 +03:00
parent 11e6d467d6
commit c09eb7dfdc

View File

@ -2,7 +2,7 @@
Name: gnome-clocks
Version: 0.1.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Clock application designed for GNOME 3
License: GPLv2+
@ -32,7 +32,18 @@ rm -r $RPM_BUILD_ROOT/%{_datadir}/doc
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desktop
%find_lang gnome-clocks
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
%files -f gnome-clocks.lang
%doc COPYING README NEWS
%{_bindir}/gnome-clocks
@ -43,6 +54,9 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desk
%changelog
* Mon Oct 1 2012 Yanko Kaneti <yaneti@declera.com> - 0.1.3-2
- Add packaging snippets to update the icon cache
* Thu Sep 27 2012 Yanko Kaneti <yaneti@declera.com> - 0.1.3-1
- Update to 0.1.3