public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Takao Fujiwara <tfujiwar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Resolves: #2418908 Delete Python2 and subpackage python3-ibus
Date: Sun, 31 May 2026 02:09:07 GMT	[thread overview]
Message-ID: <178019334733.1.12124736333290302180.rpms-ibus-cdf2a897c361@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ibus
Branch : autotool
Commit : cdf2a897c3617191eb4fe105c2091ed251818eba
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date   : 2025-12-21T22:58:26+09:00
Stats  : +21/-84 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ibus/c/cdf2a897c3617191eb4fe105c2091ed251818eba?branch=autotool

Log:
Resolves: #2418908 Delete Python2 and subpackage python3-ibus

---
diff --git a/ibus.spec b/ibus.spec
index f78a304..cb6d405 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -1,20 +1,10 @@
 %global source_version %%(echo "%version" | tr '~' '-')
 
-# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3
-%if (0%{?fedora} > 29 || 0%{?rhel} > 7)
-%global with_python2 0
-%else
-%global with_python2 1
-%endif
-
 %global with_pkg_config %(pkg-config --version >/dev/null 2>&1 && echo -n "1" || echo -n "0")
 
 %global ibus_api_version 1.0
 %global pkgcache /var/cache/%name
 
-# for bytecompile in %%{_datadir}/ibus/setup
-%global __python %{__python3}
-
 # No gtk2 in RHEL 10
 %if 0%{?rhel} > 9
 %bcond_with    gtk2
@@ -63,7 +53,7 @@
 Name:           ibus
 Version:        1.5.34~alpha1
 # https://github.com/fedora-infra/rpmautospec/issues/101
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Intelligent Input Bus for Linux OS
 License:        LGPL-2.1-or-later
 URL:            https://github.com/ibus/%name/wiki
@@ -94,15 +84,6 @@ BuildRequires:  gtk-doc
 BuildRequires:  dconf-devel
 BuildRequires:  dbus-x11
 BuildRequires:  python3-devel
-BuildRequires:  python3-gobject
-%if %with_python2
-# https://bugzilla.gnome.org/show_bug.cgi?id=759334
-# Need python2 for gsettings-schema-convert
-BuildRequires:  python2-devel
-# for AM_GCONF_SOURCE_2 in configure.ac
-BuildRequires:  GConf2-devel
-BuildRequires:  intltool
-%endif
 BuildRequires:  git
 BuildRequires:  vala
 BuildRequires:  iso-codes-devel
@@ -118,23 +99,20 @@ Requires:       %{name}-libs%{?_isa}   = %{version}-%{release}
 %if %{with gtk2}
 Requires:      (%{name}-gtk2%{?_isa}   = %{version}-%{release} if gtk2)
 %endif
-Requires:       %{name}-gtk3%{?_isa}   = %{version}-%{release}
-Requires:       %{name}-setup          = %{version}-%{release}
+Requires:      (%{name}-gtk3%{?_isa}   = %{version}-%{release} if gtk3)
 %if 0%{?fedora}
 Requires:      (%{name}-panel%{?_isa}  = %{version}-%{release} if %ibus_panel_condition)
 %endif
 %if %{with xinit}
 Requires:      (%{name}-xinit          = %{version}-%{release} if %ibus_xinit_condition)
 %endif
+Requires:       python3-ibus           = %{version}-%{release}
+Recommends:     %{name}-setup          = %{version}-%{release}
 
 Requires:       iso-codes
 Requires:       dconf
 # rpmlint asks to delete librsvg2
 #Requires:       librsvg2
-# Owner of %%python3_sitearch/gi/overrides
-Requires:       python3-gobject
-# https://bugzilla.redhat.com/show_bug.cgi?id=1161871
-%{?__python3:Requires: %{__python3}}
 
 Requires:               desktop-file-utils
 Requires(post):         desktop-file-utils
@@ -152,6 +130,16 @@ Requires(postun):       %{_sbindir}/alternatives
 %description
 IBus means Intelligent Input Bus. It is an input framework for Linux OS.
 
+%package -n python3-ibus
+Summary:        Python 3 GObject Introspection overrides for IBus
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       %{py3_dist pygobject}
+
+%description -n python3-ibus
+The python3-ibus package provides GObject Introspection overrides
+for IBus, allowing Python applications to use the IBus library
+for input method support.
+
 %package libs
 Summary:        IBus libraries
 
@@ -204,7 +192,6 @@ This package contains IBus IM module for GTK4
 %package setup
 Summary:        IBus setup utility
 Requires:       %{name} = %{version}-%{release}
-%{?__python3:Requires: %{__python3}}
 Requires:       python3-gobject
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  python3-gobject-devel
@@ -214,38 +201,6 @@ BuildArch:      noarch
 %description setup
 This is a setup utility for IBus.
 
-%if %with_python2
-%package pygtk2
-Summary:        IBus PyGTK2 library
-%if (0%{?fedora} && 0%{?fedora} <= 27) || (0%{?rhel} && 0%{?rhel} <= 7)
-Requires:       dbus-python >= %{dbus_python_version}
-%else
-Requires:       python2-dbus >= %{dbus_python_version}
-%endif
-Requires:       python2
-Requires:       pygtk2
-BuildArch:      noarch
-
-%description pygtk2
-This is a PyGTK2 library for IBus. Now major IBus engines use PyGObject3
-and this package will be deprecated.
-%endif
-
-%package py2override
-Summary:        IBus Python2 override library
-Requires:       %{name}-libs%{?_isa}   = %{version}-%{release}
-# Owner of %%python2_sitearch/gi/overrides
-%if (0%{?fedora} && 0%{?fedora} <= 27) || (0%{?rhel} && 0%{?rhel} <= 7)
-Requires:       pygobject3-base
-%else
-Requires:       python2-gobject-base
-%endif
-Requires:       python2
-
-%description py2override
-This is a Python2 override library for IBus. The Python files override
-some functions in GObject-Introspection.
-
 %package wayland
 Summary:        IBus IM module for Wayland
 Requires:       %{name}-libs%{?_isa}   = %{version}-%{release}
@@ -375,11 +330,7 @@ fi
     --enable-gtk-doc \
     --enable-surrounding-text \
     --with-python=python3 \
-%if ! %with_python2
     --disable-python2 \
-%else
-    --enable-python-library \
-%endif
     --with-python-overrides-dir=%{python3_sitearch}/gi/overrides \
     --enable-wayland \
     --enable-introspection \
@@ -424,11 +375,7 @@ install -m 755 -d $RPM_BUILD_ROOT%pkgcache/bus
 touch $RPM_BUILD_ROOT%pkgcache/bus/registry
 
 # install .desktop files
-%if %with_python2
-echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup.desktop
-%else
 echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/org.freedesktop.IBus.Setup.desktop
-%endif
 #echo "X-GNOME-Autostart-enabled=false" >> $RPM_BUILD_ROOT%%{_sysconfdir}/xdg/autostart/ibus.desktop
 
 mkdir -p $RPM_BUILD_ROOT%{_libdir}/ibus
@@ -540,13 +487,15 @@ dconf update || :
 %dir %{_prefix}/lib/systemd/user/gnome-session.target.wants
 %{_prefix}/lib/systemd/user/gnome-session.target.wants/*.service
 %{_prefix}/lib/systemd/user/org.freedesktop.IBus.session.*.service
-%python3_sitearch/gi/overrides/__pycache__/*.py*
-%python3_sitearch/gi/overrides/IBus.py
 %verify(not mtime) %dir %pkgcache
 %verify(not mtime) %dir %pkgcache/bus
 # 'ibus write-cache --system' updates the system cache.
 %ghost %pkgcache/bus/registry
 
+%files -n python3-ibus
+%{python3_sitearch}/gi/overrides/__pycache__/*.py*
+%{python3_sitearch}/gi/overrides/IBus.py
+
 %files libs
 %{_libdir}/libibus-*%{ibus_api_version}.so.*
 %dir %{_libdir}/girepository-1.0
@@ -570,25 +519,10 @@ dconf update || :
 # gtk-update-icon-cache is executed in the main package only one time.
 %files setup
 %{_bindir}/ibus-setup
-%if %with_python2
-%{_datadir}/applications/ibus-setup.desktop
-%else
 %{_datadir}/applications/org.freedesktop.IBus.Setup.desktop
-%endif
 %{_datadir}/ibus/setup
 %{_datadir}/man/man1/ibus-setup.1.gz
 
-%if %with_python2
-%files pygtk2
-%dir %{python2_sitelib}/ibus
-%{python2_sitelib}/ibus/*
-%endif
-
-%if %with_python2
-%files py2override
-%python2_sitearch/gi/overrides/IBus.py*
-%endif
-
 %files wayland
 %{_libexecdir}/ibus-wayland
 
@@ -639,6 +573,9 @@ dconf update || :
 %{_datadir}/installed-tests/ibus
 
 %changelog
+* Sun Dec 21 2025 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.34~alpha1-3
+- Resolves: #2418908 Delete Python2 and subpackage python3-ibus
+
 * Wed Nov 26 2025 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.34~alpha1-2
 - Resolves: #2237664 Fix mouse position in Emojier category list
 - Resolves: #2326455 Free IBusInputContext in input_method_activate()

                 reply	other threads:[~2026-05-31  2:09 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=178019334733.1.12124736333290302180.rpms-ibus-cdf2a897c361@fedoraproject.org \
    --to=tfujiwar@redhat.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