|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
|
|
|
|
|
%define im_name_zh_TW 新酷音輸入法
|
|
|
|
|
%define name_zh_TW %{im_name_zh_TW}函式庫
|
|
|
|
|
Name: libchewing
|
|
|
|
|
Version: 0.3.2
|
|
|
|
|
Release: 16%{?dist}
|
|
|
|
|
Release: 17%{?dist}
|
|
|
|
|
Summary: Intelligent phonetic input method library for Traditional Chinese
|
|
|
|
|
Summary(zh_TW): %{name_zh_TW}
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: LGPLv2+
|
|
|
|
@ -26,7 +28,6 @@ Patch11: libchewing-0.3.2.chewing_zuin.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
BuildRequires: autoconf automake libtool pkgconfig
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
libchewing is an intelligent phonetic input method library for Chinese.
|
|
|
|
@ -35,16 +36,41 @@ It provides the core algorithm and logic that can be used by various
|
|
|
|
|
input methods. The Chewing input method is a smart bopomofo phonetics
|
|
|
|
|
input method that is useful for inputting Mandarin Chinese.
|
|
|
|
|
|
|
|
|
|
%description -l zh_TW
|
|
|
|
|
%{name_zh_TW}提供實做了核心選字演算法,以便輸入法程式調用。
|
|
|
|
|
|
|
|
|
|
%{im_name_zh_TW}是一種智慧型注音/拼音猜字輸入法,透過智慧型的字庫分析、習慣記錄學習與預測分析,
|
|
|
|
|
使拼字輸入的人為選字機率降至最低,進而提升中文輸入、打字的效率。
|
|
|
|
|
|
|
|
|
|
%package -n %{name}-devel
|
|
|
|
|
Summary: Development files for libchewing
|
|
|
|
|
Summary(zh_TW): %{name_zh_TW}開發者套件
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name} = %{version}-%{release}, pkgconfig
|
|
|
|
|
|
|
|
|
|
%description -n %{name}-devel
|
|
|
|
|
Headers and other files needed to develop applications using the %name
|
|
|
|
|
Headers and other files needed to develop applications using the %{name}
|
|
|
|
|
library.
|
|
|
|
|
|
|
|
|
|
%description -l zh_TW -n %{name}-devel
|
|
|
|
|
%{name_zh_TW}開發者套件提供了開發%{im_name_zh_TW}相關程式所需的檔案,
|
|
|
|
|
像是標頭檔(header files),以及函式庫。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}-python
|
|
|
|
|
Summary: libchewing python binding
|
|
|
|
|
Summary(zh_TW): %{name_zh_TW} python 綁定
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: python
|
|
|
|
|
|
|
|
|
|
%description -n %{name}-python
|
|
|
|
|
Python binding of libchewing.
|
|
|
|
|
|
|
|
|
|
%description -l zh_TW -n %{name}-python
|
|
|
|
|
%{name_zh_TW} python 綁定
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
#%patch0 -p1 -b .1-bz199353
|
|
|
|
@ -67,7 +93,7 @@ autoreconf -ivf
|
|
|
|
|
%{__make} RPM_CFLAGS="%{optflags}" %{_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
#rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{__make} DESTDIR=%{buildroot} install
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libchewing.la
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{libchewing_python_dir}
|
|
|
|
@ -90,7 +116,6 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{_datadir}/chewing/*
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
%{_libdir}/chewing
|
|
|
|
|
%{libchewing_python_dir}
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
@ -99,7 +124,17 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{_libdir}/pkgconfig/chewing.pc
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
|
|
%files python
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%{libchewing_python_dir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jan 05 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-17
|
|
|
|
|
- Add zh_TW summary and description
|
|
|
|
|
- Split out python binding into a subpackage.
|
|
|
|
|
- Fix for package wrangler.
|
|
|
|
|
|
|
|
|
|
* Wed Sep 30 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-16
|
|
|
|
|
- Fix chewing Google issue 352:
|
|
|
|
|
zuin_count in chewing_zuin_String( ChewingContext *ctx, int *zuin_count )
|
|
|
|
|