[libcryptui] Silence rpm scriptlet output
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 16:40:35 UTC 2012
commit 561152be1bb0374bd844fee37763168608c01ec2
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 19:40:14 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
libcryptui.spec | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libcryptui.spec b/libcryptui.spec
index 7c58447..939d940 100644
--- a/libcryptui.spec
+++ b/libcryptui.spec
@@ -1,6 +1,6 @@
Name: libcryptui
Version: 3.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Interface components for OpenPGP
Group: System Environment/Libraries
@@ -51,11 +51,11 @@ find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
%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 cryptui.lang
%doc AUTHORS COPYING-LIBCRYPTUI NEWS README
@@ -77,6 +77,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
%{_datadir}/gir-1.0/*
%changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.1-2
+- Silence rpm scriptlet output
+
* Mon Apr 16 2012 Richard Hughes <hughsient at gmail.com> - 3.4.1-1
- Update to 3.4.1
More information about the scm-commits
mailing list