[mate-media/f20] update rpm-scriptlets

Wolfgang Ulbrich raveit65 at fedoraproject.org
Sat Jul 26 15:17:13 UTC 2014


commit ba6331c790a531cec1472c5141b1ee6afe1837d1
Author: raveit65 <chat-to-me at raveit.de>
Date:   Sat Jul 26 17:16:55 2014 +0200

    update rpm-scriptlets

 mate-media.spec |   21 +++------------------
 1 files changed, 3 insertions(+), 18 deletions(-)
---
diff --git a/mate-media.spec b/mate-media.spec
index 09f12a4..c3facb4 100644
--- a/mate-media.spec
+++ b/mate-media.spec
@@ -42,28 +42,12 @@ desktop-file-install                                                    \
         --dir=%{buildroot}%{_datadir}/applications                      \
 %{buildroot}%{_datadir}/applications/mate-volume-control.desktop
 
-# remove needless gsettings convert file
-rm -f  %{buildroot}%{_datadir}/MateConf/gsettings/mate-volume-control.convert
-
 %find_lang %{name} --with-gnome --all-name
 
-%post
-/sbin/ldconfig
-/bin/touch --no-create %{_datadir}/icons/mate &> /dev/null || :
-/usr/bin/update-desktop-database &> /dev/null || :
 
-%postun
-/sbin/ldconfig
-/usr/bin/update-desktop-database &> /dev/null || :
-if [ $1 -eq 0 ] ; then
-    /bin/touch --no-create %{_datadir}/icons/mate &> /dev/null
-    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/mate &> /dev/null || :
-    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
-fi
+%post -p /sbin/ldconfig
 
-%posttrans
-/usr/bin/gtk-update-icon-cache %{_datadir}/icons/mate &> /dev/null || :
-/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+%postun -p /sbin/ldconfig
 
 
 %files -f %{name}.lang
@@ -94,6 +78,7 @@ fi
 - update configure flags
 - use modern 'make install' macro
 - add --with-gnome --all-name for find language
+- update rpm-scriptlets
 
 * Thu Jul 17 2014 Rex Dieter <rdieter at fedoraproject.org> 1.6.1-2
 - rebuild (for pulseaudio, #1117683)


More information about the scm-commits mailing list