From 3332e7a95667daf9e05dcfd2d365d5aa3b8a496e Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 24 Apr 2012 18:40:08 +0300 Subject: [PATCH] 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-system-monitor.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnome-system-monitor.spec b/gnome-system-monitor.spec index 2a64d9a..7f62210 100644 --- a/gnome-system-monitor.spec +++ b/gnome-system-monitor.spec @@ -11,7 +11,7 @@ Summary: Process and resource monitor Name: gnome-system-monitor Version: 3.4.1 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: http://www.gnome.org/ @@ -64,11 +64,11 @@ rm -rf $RPM_BUILD_ROOT/var/scrollkeeper %postun 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 AUTHORS NEWS COPYING README @@ -81,6 +81,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || : %changelog +* Tue Apr 24 2012 Kalev Lember - 3.4.1-2 +- Silence rpm scriptlet output + * Tue Apr 17 2012 Kalev Lember - 3.4.1-1 - Update to 3.4.1