Add packaging snippets to update the icon cache
This commit is contained in:
parent
11e6d467d6
commit
c09eb7dfdc
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: gnome-clocks
|
Name: gnome-clocks
|
||||||
Version: 0.1.3
|
Version: 0.1.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Clock application designed for GNOME 3
|
Summary: Clock application designed for GNOME 3
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -32,7 +32,18 @@ rm -r $RPM_BUILD_ROOT/%{_datadir}/doc
|
|||||||
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desktop
|
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desktop
|
||||||
%find_lang gnome-clocks
|
%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
|
%files -f gnome-clocks.lang
|
||||||
%doc COPYING README NEWS
|
%doc COPYING README NEWS
|
||||||
%{_bindir}/gnome-clocks
|
%{_bindir}/gnome-clocks
|
||||||
@ -43,6 +54,9 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desk
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Sep 27 2012 Yanko Kaneti <yaneti@declera.com> - 0.1.3-1
|
||||||
- Update to 0.1.3
|
- Update to 0.1.3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user