[datovka] add missing icon cache updates
jvcelak
jvcelak at fedoraproject.org
Tue Feb 3 14:17:15 UTC 2015
commit aa4919d64d46ca87e86ff65d18ca34d4f8d2b1ca
Author: Jan Vcelak <jvcelak at fedoraproject.org>
Date: Tue Feb 3 15:16:45 2015 +0100
add missing icon cache updates
datovka.spec | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/datovka.spec b/datovka.spec
index fee404e..256741c 100644
--- a/datovka.spec
+++ b/datovka.spec
@@ -40,6 +40,18 @@ make install INSTALL_ROOT=%{buildroot}
%find_lang %{name} --with-qt
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+%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 %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
%files -f %{name}.lang
%doc %{_pkgdocdir}
%{_bindir}/datovka
@@ -48,6 +60,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/datovka.png
%changelog
+* Tue Feb 03 2015 Jan Vcelak <jvcelak at fedoraproject.org> 4.1.0-2
+- Add missing icon cache updates on package installation and removal.
+
* Mon Feb 02 2015 Jan Vcelak <jvcelak at fedoraproject.org> 4.1.0-1
- Rebase to new upstream release
- Project switched from Python to C/C++
More information about the scm-commits
mailing list