|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
%define name_zh_TW %{im_name_zh_TW}函式庫
|
|
|
|
|
Name: libchewing
|
|
|
|
|
Version: 0.3.2
|
|
|
|
|
Release: 22%{?dist}
|
|
|
|
|
Release: 25%{?dist}
|
|
|
|
|
Summary: Intelligent phonetic input method library for Traditional Chinese
|
|
|
|
|
Summary(zh_TW): %{name_zh_TW}
|
|
|
|
|
|
|
|
|
@ -23,6 +23,8 @@ Patch9: libchewing-0.3.2.bz477690.patch
|
|
|
|
|
Patch10: libchewing-0.3.2.phraseChoiceRearward.2.patch
|
|
|
|
|
Patch11: libchewing-0.3.2.chewing_zuin.patch
|
|
|
|
|
Patch12: libchewing-0.3.2.hsu.patch
|
|
|
|
|
Patch13: libchewing-0.3.2.hsu.2.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
%define libchewing_python_dir %{python_sitearch}/%{name}
|
|
|
|
@ -87,6 +89,7 @@ Python binding of libchewing.
|
|
|
|
|
%patch10 -p0 -b .phraseChoiceRearward
|
|
|
|
|
%patch11 -p0 -b .chewing_zuin
|
|
|
|
|
%patch12 -p0 -b .hsu
|
|
|
|
|
%patch13 -p0 -b .hsu.2
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS=-DLIBINSTDIR='\"%{_libdir}\" -g'
|
|
|
|
@ -95,13 +98,13 @@ 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}
|
|
|
|
|
cp python/chewing.py $RPM_BUILD_ROOT%{libchewing_python_dir}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/chewing
|
|
|
|
|
cp data/fonetree.dat $RPM_BUILD_ROOT%{_libdir}/chewing
|
|
|
|
|
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libchewing.la
|
|
|
|
|
%{__mkdir} -p $RPM_BUILD_ROOT%{libchewing_python_dir}
|
|
|
|
|
%{__cp} python/chewing.py $RPM_BUILD_ROOT%{libchewing_python_dir}
|
|
|
|
|
%{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}/chewing
|
|
|
|
|
%{__cp} data/fonetree.dat $RPM_BUILD_ROOT%{_libdir}/chewing
|
|
|
|
|
touch $RPM_BUILD_ROOT%{libchewing_python_dir}/__init__.py
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
@ -109,7 +112,7 @@ touch $RPM_BUILD_ROOT%{libchewing_python_dir}/__init__.py
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
@ -132,6 +135,21 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Mar 04 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-25
|
|
|
|
|
- Fix Dvorak Hsu 4th tone key (ibus google issue 755 comment 11,
|
|
|
|
|
chewing google issue 10)
|
|
|
|
|
- Resolves: #555192
|
|
|
|
|
|
|
|
|
|
* Mon Feb 15 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-24
|
|
|
|
|
- Fix Hsu and Dvorak Hsu input (ibus google issue 755,
|
|
|
|
|
chewing google issue 10)
|
|
|
|
|
- Resolves: #555192
|
|
|
|
|
|
|
|
|
|
* Mon Feb 15 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-23
|
|
|
|
|
- Fix Hsu and Dvorak Hsu input (ibus google issue 755,
|
|
|
|
|
chewing google issue 10)
|
|
|
|
|
- Resolves: #555192
|
|
|
|
|
|
|
|
|
|
* Wed Feb 10 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-22
|
|
|
|
|
- Fix Hsu and Dvorak Hsu input (ibus google issue 755)
|
|
|
|
|
- Resolves: #555192
|
|
|
|
|