[gnome-games/f17] Silence rpm scriptlet output
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 15:13:50 UTC 2012
commit 353f9a528eb7088b67530bbb5c2d6f081dd80b90
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 18:12:58 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-games.spec | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gnome-games.spec b/gnome-games.spec
index 23a5ca0..a919ecc 100644
--- a/gnome-games.spec
+++ b/gnome-games.spec
@@ -31,7 +31,7 @@
Summary: Games for the GNOME desktop
Name: gnome-games
Version: 3.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
License: GPLv2+ and GPLv3 and GFDL
Group: Amusements/Games
@@ -165,23 +165,23 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor &> /dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
- glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
+ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
%postun extra
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor &> /dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
- glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
+ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%posttrans extra
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%files help -f help.lang
@@ -368,6 +368,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
%{_datadir}/help/*/lightsoff
%changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 1:3.4.1-2
+- Silence rpm scriptlet output
+
* Tue Apr 17 2012 Richard Hughes <hughsient at gmail.com> - 1:3.4.1-1
- Update to 3.4.1
More information about the scm-commits
mailing list