public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kalev Lember <kalevlember@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Update the dconf and icon cache rpm scriptlets
Date: Sun, 31 May 2026 02:05:39 GMT	[thread overview]
Message-ID: <178019313902.1.7000058328819449258.rpms-ibus-f7052d65f81d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ibus
            Branch : autotool
            Commit : f7052d65f81ddfff631e07dd097fc37d6229e285
            Author : Kalev Lember <kalevlember@gmail.com>
            Date   : 2012-04-24T19:34:27+03:00
            Stats  : +14/-16 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ibus/c/f7052d65f81ddfff631e07dd097fc37d6229e285?branch=autotool

            Log:
            Update the dconf and icon cache rpm scriptlets

Most importantly, make sure their output is redirected to /dev/null. End
users aren't supposed to see the numerous warnings generated by e.g.
glib-compile-schemas.

Also move gtk-update-icon-cache to %posttrans as per
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets

---
diff --git a/ibus.spec b/ibus.spec
index bf9145a..34eb043 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -30,7 +30,7 @@
 
 Name:       ibus
 Version:    1.4.99.20120317
-Release:    3%{?dist}
+Release:    4%{?dist}
 Summary:    Intelligent Input Bus for Linux OS
 License:    LGPLv2+
 Group:      System Environment/Libraries
@@ -321,9 +321,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 # recreate icon cache
-touch --no-create %{_datadir}/icons/hicolor || :
-[ -x %{_bindir}/gtk-update-icon-cache ] && \
-  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 83 || :
 
@@ -349,27 +347,24 @@ fi
 %endif
 
 %postun
-# recreate icon cache
-touch --no-create %{_datadir}/icons/hicolor || :
-[ -x %{_bindir}/gtk-update-icon-cache ] && \
-  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+if [ "$1" -eq 0 ]; then
+  # recreate icon cache
+  touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+  gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
-if [ "$1" = "0" ]; then
   %{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
   # if alternative was set to manual, reset to auto
   [ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
-fi
+
 %if %with_dconf
-if [ $1 -eq 0 ]; then
-  glib-compile-schemas %{_datadir}/glib-2.0/schemas
-fi
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 %endif
+fi
 
 %posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %if %with_dconf
-if [ $1 -eq 0 ]; then
-  glib-compile-schemas %{_datadir}/glib-2.0/schemas
-fi
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 %endif
 
 %post libs -p /sbin/ldconfig
@@ -464,6 +459,9 @@ fi
 %{_datadir}/gtk-doc/html/*
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.99.20120317-4
+- Update the dconf and icon cache rpm scriptlets
+
 * Wed Apr 18 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.4.99.20120317-3
 - Added a RHEL flag.
 

                 reply	other threads:[~2026-05-31  2:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178019313902.1.7000058328819449258.rpms-ibus-f7052d65f81d@fedoraproject.org \
    --to=kalevlember@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox