public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ibus] autotool: Separate python files in f19 or later.
@ 2026-05-31 2:05 Takao Fujiwara
0 siblings, 0 replies; only message in thread
From: Takao Fujiwara @ 2026-05-31 2:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ibus
Branch : autotool
Commit : add36c8aee95d4f8ac1dd2d889da56a68370a680
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date : 2013-04-21T21:23:31+09:00
Stats : +39/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ibus/c/add36c8aee95d4f8ac1dd2d889da56a68370a680?branch=autotool
Log:
Separate python files in f19 or later.
---
diff --git a/ibus.spec b/ibus.spec
index be31d2c..7217916 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -17,6 +17,12 @@
%global with_gkbd 1
%endif
+%if (0%{?fedora} > 18 || 0%{?rhel} > 6)
+%global with_python_pkg 1
+%else
+%global with_python_pkg 0
+%endif
+
%global ibus_gjs_version 3.4.1.20130115
%global ibus_api_version 1.0
@@ -35,7 +41,7 @@
Name: ibus
Version: 1.5.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Intelligent Input Bus for Linux OS
License: LGPLv2+
Group: System Environment/Libraries
@@ -85,6 +91,7 @@ BuildRequires: desktop-file-utils
BuildRequires: gtk-doc
BuildRequires: dconf-devel
BuildRequires: dbus-x11
+BuildRequires: python2-devel
BuildRequires: vala
BuildRequires: vala-devel
BuildRequires: vala-tools
@@ -104,8 +111,10 @@ BuildRequires: gnome-shell
Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-gtk2 = %{version}-%{release}
Requires: %{name}-gtk3 = %{version}-%{release}
+%if %with_python_pkg
Requires: %{name}-setup = %{version}-%{release}
Requires: %{name}-pygtk2 = %{version}-%{release}
+%endif
Requires: iso-codes
Requires: dbus-python >= %{dbus_python_version}
@@ -128,6 +137,17 @@ Requires: gnome-icon-theme-symbolic
# The feature in ibus-gnome3 is provided by gnome-shell.
Obsoletes: ibus-gnome3 < %{version}-%{release}
%endif
+%if ! %with_python_pkg
+%if %with_pygobject3
+Requires: pygobject3
+BuildRequires: gobject-introspection-devel
+BuildRequires: pygobject3-devel
+%endif
+%if %with_pygobject2
+Requires: pygtk2
+Requires: pyxdg
+%endif
+%endif
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
@@ -175,6 +195,7 @@ Requires(post): glib2 >= %{glib_ver}
%description gtk3
This package contains ibus im module for gtk3
+%if %with_python_pkg
%if %with_pygobject3
%package setup
Summary: IBus setup utility
@@ -196,13 +217,13 @@ Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pygtk2
Requires: pyxdg
-BuildRequires: python2-devel
BuildArch: noarch
%description pygtk2
This is a pygtk2 library for IBus. Now major IBUs engines use pygobject3
and this package will be deprecated.
%endif
+%endif
%if %with_gjs
%package gnome3
@@ -444,6 +465,17 @@ fi
%{_sysconfdir}/dconf/profile/ibus
%python2_sitearch/gi/overrides/IBus.py*
%config %{_xinputconf}
+%if ! %with_python_pkg
+%if %with_pygobject3
+%{_bindir}/ibus-setup
+%{_datadir}/ibus/setup
+%{_datadir}/man/man1/ibus-setup.1.gz
+%endif
+%if %with_pygobject2
+%dir %{python2_sitelib}/ibus
+%{python2_sitelib}/ibus/*
+%endif
+%endif
%files libs
%{_libdir}/libibus-%{ibus_api_version}.so.*
@@ -455,6 +487,7 @@ fi
%files gtk3
%{_libdir}/gtk-3.0/%{gtk3_binary_version}/immodules/im-ibus.so
+%if %with_python_pkg
%if %with_pygobject3
%files setup
%{_bindir}/ibus-setup
@@ -467,6 +500,7 @@ fi
%dir %{python2_sitelib}/ibus
%{python2_sitelib}/ibus/*
%endif
+%endif
%if %with_gjs
%files gnome3
@@ -486,6 +520,9 @@ fi
%{_datadir}/gtk-doc/html/*
%changelog
+* Sun Apr 21 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.2-2
+- Separate python files in f19 or later.
+
* Thu Apr 18 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.2-1
- Bumped to 1.5.2
- Created noarch packages for python files due to .pyc and .pyo.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-31 2:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 2:05 [rpms/ibus] autotool: Separate python files in f19 or later Takao Fujiwara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox