public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Revert "Back up scriptlets to sync Fedoras"
Date: Sun, 31 May 2026 02:06:41 GMT	[thread overview]
Message-ID: <178019320183.1.11920150596416057391.rpms-ibus-71ed75cb5acf@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ibus
            Branch : autotool
            Commit : 71ed75cb5acf12778b59b5fc1fc9b21e1ae5c3e7
            Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
            Date   : 2018-01-18T19:37:29+01:00
            Stats  : +0/-55 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ibus/c/71ed75cb5acf12778b59b5fc1fc9b21e1ae5c3e7?branch=autotool

            Log:
            Revert "Back up scriptlets to sync Fedoras"

None of scriptlets are needed since F24 (or even earlier).

This reverts commit 03f1724cae2b69a348f97e00c6ddecc93e13cc8d.

---
diff --git a/ibus.spec b/ibus.spec
index 47bf127..43f91cb 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -9,12 +9,6 @@
 %global with_kde5 0
 %endif
 
-%if (0%{?fedora} > 27 || 0%{?rhel} > 7)
-%global with_gtk_script 0
-%else
-%global with_gtk_script 1
-%endif
-
 %global with_emoji_harfbuzz 1
 
 %global ibus_api_version 1.0
@@ -320,28 +314,14 @@ desktop-file-install --delete-original          \
 %find_lang %{name}10
 
 %post
-%if %with_gtk_script
-# recreate icon cache
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-%endif
-
 %{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 83 || :
 
 %postun
 if [ "$1" -eq 0 ]; then
-%if %with_gtk_script
-  # recreate icon cache
-  touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-  gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-%endif
-
   %{_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 || :
 
-%if %with_gtk_script
-  glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
-%endif
   # 'dconf update' sometimes does not update the db...
   dconf update || :
   [ -f %{_sysconfdir}/dconf/db/ibus ] && \
@@ -352,10 +332,6 @@ if [ "$1" -eq 0 ]; then
 fi
 
 %posttrans
-%if %with_gtk_script
-gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
-%endif
 dconf update || :
 [ -x %{_bindir}/ibus ] && \
   %{_bindir}/ibus write-cache --system &>/dev/null || :
@@ -364,37 +340,6 @@ dconf update || :
 
 %postun libs -p /sbin/ldconfig
 
-%if %with_gtk_script
-%post gtk2
-if [ $1 -eq 1 ] ; then
-    # For upgrades, the cache will be regenerated by the new package's %%postun
-    gtk-query-immodules-2.0-%{__isa_bits} --update-cache &> /dev/null || :
-fi
-
-%endif
-
-%if %with_gtk_script
-%postun gtk2
-gtk-query-immodules-2.0-%{__isa_bits} --update-cache &> /dev/null || :
-
-%endif
-
-%if %with_gtk_script
-%post gtk3
-if [ $1 -eq 1 ] ; then
-    # For upgrades, the cache will be regenerated by the new package's %%postun
-    gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
-fi
-
-%endif
-
-%if %with_gtk_script
-%postun gtk3
-gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
-
-%endif
-
-
 # FIXME: no version number
 %files -f %{name}10.lang
 %doc AUTHORS COPYING README

                 reply	other threads:[~2026-05-31  2:06 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=178019320183.1.11920150596416057391.rpms-ibus-71ed75cb5acf@fedoraproject.org \
    --to=ignatenkobrain@fedoraproject.org \
    --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