commit 1bf9941b22fd0b24084f8e1fe8ba2aa0c5061243
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Tue Jan 22 14:40:17 2019 +0300
Restore scriptlets.
gnome-mpv.spec | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
diff --git a/gnome-mpv.spec b/gnome-mpv.spec
index dae572c..465260a 100644
--- a/gnome-mpv.spec
+++ b/gnome-mpv.spec
@@ -39,6 +39,23 @@ allowing access to mpv's powerful playback capabilities.
appstream-util validate-relax --nonet
%{buildroot}%{_datadir}/metainfo/io.github.GnomeMpv.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/io.github.GnomeMpv.desktop
+%post
+/usr/bin/update-desktop-database &> /dev/null || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+
+%postun
+/usr/bin/update-desktop-database &> /dev/null || :
+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 || :
+ /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+
%files -f %{name}.lang
%doc AUTHORS README.md
%license COPYING