[webkitgtk3] Update gsettings rpm scriptlets
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 21:25:05 UTC 2012
commit 530f799174b9b2ec208a44843eae642a2ac8e1c0
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 21:17:04 2012 +0300
Update gsettings rpm scriptlets
Most importantly, redirect glib-compile-schemas output to /dev/null to
make sure end users don't see its developer-oriented warning messages
with each yum update. Also move the 2nd glib-compile-schemas invocation
to %posttrans as per
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema
webkitgtk3.spec | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/webkitgtk3.spec b/webkitgtk3.spec
index f39f32b..79f2d8d 100644
--- a/webkitgtk3.spec
+++ b/webkitgtk3.spec
@@ -140,11 +140,15 @@ chrpath --delete %{buildroot}%{_libexecdir}/%{name}/GtkLauncher
%post
/sbin/ldconfig
-glib-compile-schemas %{_datadir}/glib-2.0/schemas
%postun
/sbin/ldconfig
-glib-compile-schemas %{_datadir}/glib-2.0/schemas
+if [ $1 -eq 0 ] ; then
+ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
+fi
+
+%posttrans
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%files -f webkit-3.0.lang
@@ -180,6 +184,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
- Update to 1.8.1
- Dropped the backported patches
- Remove lib64 rpaths with chrpath
+- Update gsettings rpm scriptlets
* Wed Apr 18 2012 Peter Robinson <pbrobinson at fedoraproject.org> - 1.8.0-3
- Add upstream patch to fix crash when SSE2 isn't present
More information about the scm-commits
mailing list