[gnome-dictionary] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 14:54:50 UTC 2012


commit a1b9dad7b07fe36f3a6a51d50780cb87fc2aac36
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 17:54:25 2012 +0300

    Silence rpm scriptlet output
    
    Redirect it to /dev/null; end users aren't supposed to see the warnings
    generated by e.g. glib-compile-schemas.
    
    http://fedoraproject.org/wiki/Packaging:ScriptletSnippets

 gnome-dictionary.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gnome-dictionary.spec b/gnome-dictionary.spec
index 648c2ea..15647d0 100644
--- a/gnome-dictionary.spec
+++ b/gnome-dictionary.spec
@@ -1,7 +1,7 @@
 Summary: A dictionary application for GNOME
 Name:    gnome-dictionary
 Version: 3.4.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv3+ and LGPLv2+ and GFDL
 Group:   Applications/Text
 #VCS: git:git://git.gnome.org/gnome-dictionary
@@ -49,11 +49,11 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
 %postun
 /sbin/ldconfig
 if [ $1 -eq 0 ]; then
-  glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 fi
 
 %posttrans
-glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
 %files -f %{name}.lang
 %doc NEWS AUTHORS README COPYING COPYING.libs COPYING.docs
@@ -73,6 +73,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
 
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.0-2
+- Silence rpm scriptlet output
+
 * Tue Mar 27 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.0-1
 - Update to 3.4.0
 


More information about the scm-commits mailing list