[gnome-system-monitor] Silence rpm scriptlet output
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 15:40:31 UTC 2012
commit 3332e7a95667daf9e05dcfd2d365d5aa3b8a496e
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 18:40:08 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-system-monitor.spec | 9 ++++++---
1 files 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 <kalevlember at gmail.com> - 3.4.1-2
+- Silence rpm scriptlet output
+
* Tue Apr 17 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.1-1
- Update to 3.4.1
More information about the scm-commits
mailing list