forked from pool/fcitx
Accepting request 151148 from M17N
* fix 32-bit immodule query * fix opencc Simplified <-> Traditional Chinese switch among input methods * Clean ups (forwarded request 151147 from MargueriteSu) OBS-URL: https://build.opensuse.org/request/show/151148 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fcitx?expand=0&rev=21
This commit is contained in:
commit
c10a6c150a
@ -1,4 +1,32 @@
|
|||||||
libfcitx-4_2_7
|
libfcitx-4_2_7
|
||||||
|
requires "fcitx = <version>"
|
||||||
|
obsoletes "libfcitx-<targettype> = <version>"
|
||||||
|
provides "libfcitx-<targettype> = <version>"
|
||||||
|
post "/sbin/ldconfig"
|
||||||
|
postun "/sbin/ldconfig"
|
||||||
fcitx-gtk2
|
fcitx-gtk2
|
||||||
|
requires "libfcitx-4_2_7-<targettype> = <version>"
|
||||||
|
post "%if "%_lib" == "lib64""
|
||||||
|
post "<prefix>%{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk-2.0/gtk64.immodules"
|
||||||
|
post "%else"
|
||||||
|
post "<prefix>%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules"
|
||||||
|
post "%endif"
|
||||||
|
postun "%if "%_lib" == "lib64""
|
||||||
|
postun "<prefix>%{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk-2.0/gtk64.immodules"
|
||||||
|
postun "%else"
|
||||||
|
postun "<prefix>%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules"
|
||||||
|
postun "%endif"
|
||||||
fcitx-gtk3
|
fcitx-gtk3
|
||||||
|
requires "libfcitx-4_2_7-<targettype> = <version>"
|
||||||
|
post "%if "%_lib" == "lib64""
|
||||||
|
post "<prefix>%{_bindir}/gtk-query-immodules-3.0-64 --update-cache"
|
||||||
|
post "%else"
|
||||||
|
post "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
||||||
|
post "%endif"
|
||||||
|
postun "%if "%_lib" == "lib64""
|
||||||
|
postun "<prefix>%{_bindir}/gtk-query-immodules-3.0-64 --update-cache"
|
||||||
|
postun "%else"
|
||||||
|
postun "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
||||||
|
postun "%endif"
|
||||||
fcitx-qt4
|
fcitx-qt4
|
||||||
|
requires "libfcitx-4_2_7-<targettype> = <version>"
|
@ -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
|
Wed Jan 30 18:24:37 UTC 2013 - i@marguerite.su
|
||||||
|
|
||||||
|
27
fcitx.spec
27
fcitx.spec
@ -72,7 +72,6 @@ BuildRequires: lua51-devel
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: intltool
|
|
||||||
BuildRequires: opencc-devel
|
BuildRequires: opencc-devel
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
@ -92,9 +91,20 @@ Requires: %{name}-qt4 = %{version}-%{release}
|
|||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Recommends: %{name}-pinyin = %{version}-%{release}
|
Recommends: %{name}-pinyin = %{version}-%{release}
|
||||||
Recommends: %{name}-table = %{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}
|
Requires: %{name}-branding = %{version}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?fedora_version}
|
%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(post): %{_sbindir}/alternatives
|
||||||
Requires(postun): %{_sbindir}/alternatives
|
Requires(postun): %{_sbindir}/alternatives
|
||||||
%endif
|
%endif
|
||||||
@ -375,7 +385,11 @@ You can either use this package for download from kde-look.org using knewstaff i
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
# fix dlopen-ed library name
|
||||||
cmake .. \
|
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}
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||||
-DENABLE_GTK3_IM_MODULE=On \
|
-DENABLE_GTK3_IM_MODULE=On \
|
||||||
%endif
|
%endif
|
||||||
@ -390,14 +404,6 @@ cmake .. \
|
|||||||
-DENABLE_DEBUG=On \
|
-DENABLE_DEBUG=On \
|
||||||
-DENABLE_LUA=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
|
# fix gobject-introspection build
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
make
|
make
|
||||||
@ -499,9 +505,6 @@ fdupes -n -q -r %{buildroot}
|
|||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||||
%{__strip} %{buildroot}%{_libdir}/gtk-3.0/*/immodules/im-%{name}.so
|
%{__strip} %{buildroot}%{_libdir}/gtk-3.0/*/immodules/im-%{name}.so
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1110 || 0%{?fedora_version}
|
|
||||||
#%{__strip} %{buildroot}%{_libdir}/qt4/plugins/inputmethods/qtim-%{name}.so
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Convenient define for the scriplets
|
# Convenient define for the scriplets
|
||||||
%if %{_lib} == lib64
|
%if %{_lib} == lib64
|
||||||
|
Loading…
Reference in New Issue
Block a user