[gucharmap] Silence rpm scriptlet output
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 15:42:53 UTC 2012
commit 0c0ed22c8f44ce4f61168d80e2aa8a4374ac4219
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 18:42:33 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
gucharmap.spec | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gucharmap.spec b/gucharmap.spec
index 486a740..78ad54c 100644
--- a/gucharmap.spec
+++ b/gucharmap.spec
@@ -4,7 +4,7 @@
Name: gucharmap
Version: 3.4.1.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Unicode character picker and font browser
Group: Applications/System
@@ -76,12 +76,12 @@ update-desktop-database &> /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
%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 || :
%files -f gucharmap.lang
%doc AUTHORS COPYING NEWS README
@@ -102,6 +102,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
%changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.1.1-2
+- Silence rpm scriptlet output
+
* Tue Apr 17 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.1.1-1
- Update to 3.4.1.1
More information about the scm-commits
mailing list