From 14afd4cc8bb92baf650fa82d0c09e0b1f9a4c9fabd424daea6e50ce18875741f Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 8 Aug 2011 15:14:02 +0000 Subject: [PATCH] Accepting request 78313 from home:tiwai:branches:M17N - Fix baselibs.conf to update GTK immodule cache properly for ibus-gtk-32bit and ibus-gtk3-32bit packages, too - Clean up spec file OBS-URL: https://build.opensuse.org/request/show/78313 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=24 --- baselibs.conf | 24 +++++++++++++++++++++++- ibus.changes | 7 +++++++ ibus.spec | 12 ++++-------- 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 06e6ab6..ac38139 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,3 +1,25 @@ ibus-gtk + post "%if "%_lib" == "lib64"" + post "%{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk-2.0/gtk64.immodules" + post "%else" + post "%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules" + post "%endif" + postun "%if "%_lib" == "lib64"" + postun "%{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk-2.0/gtk64.immodules" + postun "%else" + postun "%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules" + postun "%endif" + supplements "packageand(ibus:gtk2-)" ibus-gtk3 -libibus2 \ No newline at end of file + post "%if "%_lib" == "lib64"" + post "%{_bindir}/gtk-query-immodules-3.0-64 --update-cache" + post "%else" + post "%{_bindir}/gtk-query-immodules-3.0 --update-cache" + post "%endif" + postun "%if "%_lib" == "lib64"" + postun "%{_bindir}/gtk-query-immodules-3.0-64 --update-cache" + postun "%else" + postun "%{_bindir}/gtk-query-immodules-3.0 --update-cache" + postun "%endif" + supplements "packageand(ibus:gtk3-)" +libibus2 diff --git a/ibus.changes b/ibus.changes index 5513554..c6352fe 100644 --- a/ibus.changes +++ b/ibus.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Aug 8 16:34:13 CEST 2011 - tiwai@suse.de + +- Fix baselibs.conf to update GTK immodule cache properly for + ibus-gtk-32bit and ibus-gtk3-32bit packages, too +- Clean up spec file + ------------------------------------------------------------------- Mon Jun 27 14:21:46 CEST 2011 - tiwai@suse.de diff --git a/ibus.spec b/ibus.spec index 4b89e33..6b9db7a 100644 --- a/ibus.spec +++ b/ibus.spec @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - +%define build_gtk3 (0%{suse_version} >= 1140) Name: ibus Version: 1.3.9 @@ -69,11 +69,8 @@ Supplements: packageand(ibus:gtk2) %description gtk This package contains ibus im module for gtk2 -%if %suse_version >= 1140 - +%if %{build_gtk3} %package gtk3 - - Summary: IBus im module for gtk3 Group: System/I18n/Chinese Requires: %{name} = %{version} @@ -109,7 +106,7 @@ docs for ibus. autoreconf -fi intltoolize -f %configure --disable-static \ -%if %suse_version >= 1140 +%if %{build_gtk3} --enable-gtk3 \ %endif --disable-iso-codes-check \ @@ -172,8 +169,7 @@ rm -rf %buildroot %postun -n libibus2 -p /sbin/ldconfig -%if %suse_version >= 1140 - +%if %{build_gtk3} %post gtk3 %gtk3_immodule_post