|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
|
|
|
|
|
Name: libchewing
|
|
|
|
|
Version: 0.3.2
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Intelligent phonetic input method library for Traditional Chinese
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
@ -18,6 +19,9 @@ Source: http://chewing.csie.net/download/libchewing/%{name}-%{version}.t
|
|
|
|
|
#Patch8: libchewing-0.3.0-11.bz195416.patch
|
|
|
|
|
Patch9: libchewing-0.3.2.bz477690.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}
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
|
@ -58,7 +62,8 @@ make LIBINSTDIR="\"%{_libdir}\""
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{libchewing_python_dir}
|
|
|
|
|
cp python/chewing.py $RPM_BUILD_ROOT%{libchewing_python_dir}
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libchewing.la
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
@ -75,6 +80,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{_datadir}/chewing/*
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
%{_libdir}/chewing
|
|
|
|
|
%{libchewing_python_dir}
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
@ -84,6 +90,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jan 14 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-3
|
|
|
|
|
- Add python binding by copy python/chewing.py to
|
|
|
|
|
<python_dir>/site_packages/libchewing
|
|
|
|
|
|
|
|
|
|
* Tue Dec 23 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-2
|
|
|
|
|
- [Bug 477690] libchewing multilib conflict
|
|
|
|
|
Move /usr/share/chewing/fonetree.dat to corresponding libdir.
|
|
|
|
|