[mousetweaks] Silence rpm scriptlet output
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 16:42:43 UTC 2012
commit 297aad988b973b00a37af658714c8493034f47c4
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 19:42:26 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
mousetweaks.spec | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/mousetweaks.spec b/mousetweaks.spec
index 5130a10..fac8522 100644
--- a/mousetweaks.spec
+++ b/mousetweaks.spec
@@ -1,6 +1,6 @@
Name: mousetweaks
Version: 3.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Mouse accessibility support for the GNOME desktop
Group: User Interface/Desktops
License: GPLv3 and GFDL
@@ -48,11 +48,11 @@ make install DESTDIR=$RPM_BUILD_ROOT
%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 mousetweaks.lang
%doc COPYING COPYING.FDL COPYING.GPL README NEWS
@@ -65,6 +65,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
%doc %{_mandir}/man1/*
%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