rpms/libchewing/F-10 import.log,1.5,1.6 libchewing.spec,1.25,1.26

Ding-Yi Chen dchen at fedoraproject.org
Wed Jan 14 08:16:39 UTC 2009


Author: dchen

Update of /cvs/pkgs/rpms/libchewing/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2573/F-10

Modified Files:
	import.log libchewing.spec 
Log Message:
Add python support


Index: import.log
===================================================================
RCS file: /cvs/pkgs/rpms/libchewing/F-10/import.log,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- import.log	23 Dec 2008 05:43:13 -0000	1.5
+++ import.log	14 Jan 2009 08:16:09 -0000	1.6
@@ -3,3 +3,4 @@
 libchewing-0_3_2-0_fc9:F-10:libchewing-0.3.2-0.fc9.src.rpm:1228283261
 libchewing-0_3_2-1_fc10:F-10:libchewing-0.3.2-1.fc10.src.rpm:1229994672
 libchewing-0_3_2-2_fc10:F-10:libchewing-0.3.2-2.fc10.src.rpm:1230010931
+libchewing-0_3_2-3_fc10:F-10:libchewing-0.3.2-3.fc10.src.rpm:1231920830


Index: libchewing.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libchewing/F-10/libchewing.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- libchewing.spec	23 Dec 2008 05:43:13 -0000	1.25
+++ libchewing.spec	14 Jan 2009 08:16:09 -0000	1.26
@@ -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 @@
 #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 @@
 %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 @@
 %{_datadir}/chewing/*
 %{_libdir}/*.so.*
 %{_libdir}/chewing
+%{libchewing_python_dir} 
 
 %files devel
 %defattr(-, root, root)
@@ -84,6 +90,10 @@
 %{_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.




More information about the fedora-extras-commits mailing list