From f5a5d43298aa5d0930e2a1b06927214863aa2a61c4e8f51b088fc032141df292 Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Mon, 4 Feb 2013 16:10:20 +0000 Subject: [PATCH] Accepting request 151147 from home:MargueriteSu:branches:M17N * fix 32-bit immodule query * fix opencc Simplified <-> Traditional Chinese switch among input methods * Clean ups OBS-URL: https://build.opensuse.org/request/show/151147 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=59 --- baselibs.conf | 30 +++++++++++++++++++++++++++++- fcitx.changes | 9 +++++++++ fcitx.spec | 27 +++++++++++++++------------ 3 files changed, 53 insertions(+), 13 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 2f98dd2..a6afa06 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,4 +1,32 @@ libfcitx-4_2_7 + requires "fcitx = " + obsoletes "libfcitx- = " + provides "libfcitx- = " + post "/sbin/ldconfig" + postun "/sbin/ldconfig" fcitx-gtk2 + requires "libfcitx-4_2_7- = " + 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" fcitx-gtk3 -fcitx-qt4 \ No newline at end of file + requires "libfcitx-4_2_7- = " + 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" +fcitx-qt4 + requires "libfcitx-4_2_7- = " \ No newline at end of file diff --git a/fcitx.changes b/fcitx.changes index 3eaabeb..5d61f08 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Feb 4 08:45:33 UTC 2013 - i@marguerite.su + +- remove BuildRequires: intltool, fcitx no longer use intltool + to parse translations. +- query immodules for gtk*-32bit subpackages. +- explicitly add enchant, presage, opencc requirements, fcitx use + dlopen to detect them, ld can't fulfill its needs. + ------------------------------------------------------------------- Wed Jan 30 18:24:37 UTC 2013 - i@marguerite.su diff --git a/fcitx.spec b/fcitx.spec index 71c3fe4..4723095 100644 --- a/fcitx.spec +++ b/fcitx.spec @@ -72,7 +72,6 @@ BuildRequires: lua51-devel %endif BuildRequires: cmake BuildRequires: gtk2-devel -BuildRequires: intltool BuildRequires: opencc-devel %if 0%{?suse_version} >= 1140 || 0%{?fedora_version} BuildRequires: gobject-introspection-devel @@ -92,9 +91,20 @@ Requires: %{name}-qt4 = %{version}-%{release} %if 0%{?suse_version} Recommends: %{name}-pinyin = %{version}-%{release} Recommends: %{name}-table = %{version}-%{release} +# These libraries are dlopen-ed in fcitx at runtime +# for spell-checking for keyboard users. ld can't find +# them, so explicitly recommends. +Recommends: libopencc1 +Recommends: libpresage1 +Recommends: libenchant1 Requires: %{name}-branding = %{version} %endif %if 0%{?fedora_version} +Requires: %{name}-pinyin = %{version}-%{release} +Requires: %{name}-table = %{version}-%{release} +Requires: opencc +Requires: libpresage1 +Requires: enchant Requires(post): %{_sbindir}/alternatives Requires(postun): %{_sbindir}/alternatives %endif @@ -375,7 +385,11 @@ You can either use this package for download from kde-look.org using knewstaff i mkdir build cd build +# fix dlopen-ed library name cmake .. \ + -DOPENCC_LIBRARY_FILENAME=libopencc.so.1 \ + -DENCHANT_LIBRARY_FILENAME=libenchant.so.1 \ + -DPRESAGE_LIBRARY_FILENAME=libpresage.so.1 \ %if 0%{?suse_version} >= 1140 || 0%{?fedora_version} -DENABLE_GTK3_IM_MODULE=On \ %endif @@ -390,14 +404,6 @@ cmake .. \ -DENABLE_DEBUG=On \ -DENABLE_LUA=On -# copy external data -#pushd ../data -#cp -r %{S:5} ./ -#popd -#pushd ../data/table -#cp -r %{S:6} ./ -#popd - # fix gobject-introspection build export SUSE_ASNEEDED=0 make @@ -499,9 +505,6 @@ fdupes -n -q -r %{buildroot} %if 0%{?suse_version} >= 1140 || 0%{?fedora_version} %{__strip} %{buildroot}%{_libdir}/gtk-3.0/*/immodules/im-%{name}.so %endif -%if 0%{?suse_version} > 1110 || 0%{?fedora_version} -#%{__strip} %{buildroot}%{_libdir}/qt4/plugins/inputmethods/qtim-%{name}.so -%endif # Convenient define for the scriplets %if %{_lib} == lib64