Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hujq
scim-python
scim-python.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scim-python.spec of Package scim-python
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define mod_path scim-0.1 Name: scim-python Version: 0.1.13rc1 Release: 1 Summary: Python language binding for Smart Common Input Method platform License: LGPLv2+ Group: System Environment/Libraries URL: http://code.google.com/p/scim-python/ Source0: http://scim-python.googlecode.com/files/%{name}-%{version}.tar.gz Source1: http://scim-python.googlecode.com/files/xingma-zhengma-0.1.10.1.tar.bz2 Source2: http://scim-python.googlecode.com/files/xingma-wubi86-0.1.10.1.tar.bz2 Source3: http://scim-python.googlecode.com/files/xingma-erbi-qingsong-0.1.10.1.tar.bz2 Source4: http://scim-python.googlecode.com/files/xingma-cangjie5-0.1.10.2.tar.bz2 Source5: http://scim-python.googlecode.com/files/xingma-compose-0.1.10.1.tar.bz2 Source6: http://scim-python.googlecode.com/files/pinyin-database-0.1.10.5.tar.bz2 Source7: README.pinyin Source8: install_pinyin_database.sh BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: scim-devel, gettext-devel, libtool, python-devel, python-curses, gtk2-devel, gcc-c++, python-gtk-devel, sqlite-devel %if 0%{?suse_version} > 1100 BuildRequires: python-enchant %endif Requires: scim, python-gtk %description Python wrapper for Smart Common Input Method platform. %if 0%{?suse_version} > 1100 %package english Summary: Python english IM engine Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} python-enchant %description english This package contains a python english IM engine. %endif %package pinyin Summary: Two python chinese pinyin IM engines Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} %description pinyin This package contains two python chinese pinyin IM engines. %package xingma Summary: Python XingMa IM engine Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} %description xingma This package contains a python XingMa IM engine. %package xingma-cangjie Summary: CangJie table for Python XingMa IM engine Group: System Environment/Libraries Requires: %{name}-xingma = %{version}-%{release} %description xingma-cangjie This package contains a CangJie table for python XingMa IM engine. %package xingma-erbi Summary: ErBi table for Python XingMa IM engine Group: System Environment/Libraries Requires: %{name}-xingma = %{version}-%{release} %description xingma-erbi This package contains an ErBi table for python XingMa IM engine. %package xingma-wubi Summary: WuBi table for Python XingMa IM engine Group: System Environment/Libraries Requires: %{name}-xingma = %{version}-%{release} %description xingma-wubi This package contains an ZhengMa table for python XingMa IM engine. %package xingma-zhengma Summary: ZhengMa table for Python XingMa IM engine Group: System Environment/Libraries Requires: %{name}-xingma = %{version}-%{release} %description xingma-zhengma This package contains an ZhengMa table for python XingMa IM engine. %package xingma-compose Summary: Compose Key Style input for Python XingMa IM engine Group: System Environment/Libraries Requires: %{name}-xingma = %{version}-%{release} %description xingma-compose This package contains a Compose Key Style input for python XingMa IM engine. %prep %setup -q -a1 -a2 -a3 -a4 -a5 cp %{SOURCE6} python/engine/PinYin/ #mv py.db python/engine/PinYin/ #touch python/engine/PinYin/py.db %build %if 0%{?suse_version} > 1100 %configure --prefix=/usr --disable-static --enable-english-writer=force --enable-pinyin %else %configure --prefix=/usr --disable-static --disable-english-writer --enable-pinyin %endif # make -C po update-gmo make NO_INDEX=true %{?_smp_mflags} python python/engine/XingMa/XMCreateDB.py -o -s cangjie5.txt.bz2 -p data/pinyin_table.txt python python/engine/XingMa/XMCreateDB.py -o -s erbi-qs.txt.bz2 -p data/pinyin_table.txt python python/engine/XingMa/XMCreateDB.py -o -s wubi.txt.bz2 -p data/pinyin_table.txt python python/engine/XingMa/XMCreateDB.py -o -s zhengma.txt.bz2 -p data/pinyin_table.txt python python/engine/XingMa/XMCreateDB.py -o -s compose.txt.bz2 -p data/pinyin_table.txt %install rm -rf $RPM_BUILD_ROOT make NO_INDEX=true DESTDIR=${RPM_BUILD_ROOT} install rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{mod_path}/scim/_scim.la rm -f $RPM_BUILD_ROOT%{_libdir}/scim-1.0/1.4.0/SetupUI/zhengjuui.la install -m 644 cangjie5.db $RPM_BUILD_ROOT%{_datadir}/scim-python/engine/XingMa/tables/ install -m 644 cangjie5.png $RPM_BUILD_ROOT%{_datadir}/scim/icons/ install -m 644 erbi-qs.db $RPM_BUILD_ROOT%{_datadir}/scim-python/engine/XingMa/tables/ install -m 644 erbi-qs.png $RPM_BUILD_ROOT%{_datadir}/scim/icons/ install -m 644 wubi.db $RPM_BUILD_ROOT%{_datadir}/scim-python/engine/XingMa/tables/ install -m 644 wubi.png $RPM_BUILD_ROOT%{_datadir}/scim/icons/ install -m 644 zhengma.db $RPM_BUILD_ROOT%{_datadir}/scim-python/engine/XingMa/tables/ install -m 644 zhengma.png $RPM_BUILD_ROOT%{_datadir}/scim/icons/ install -m 644 compose.db $RPM_BUILD_ROOT%{_datadir}/scim-python/engine/XingMa/tables/ install -m 644 compose.png $RPM_BUILD_ROOT%{_datadir}/scim/icons/ %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post pinyin cd /usr/share/scim-python/engine/PinYin #echo "Creating INDEX." python -c "import PYSQLiteDB; db = PYSQLiteDB.PYSQLiteDB (); db.create_indexes ();" >/dev/null #echo "Please see README.pinyin in /usr/share/doc/packages/scim-python/" %post xingma-cangjie XMCreateDB -i -n %{_datadir}/scim-python/engine/XingMa/tables/cangjie5.db > /dev/null %post xingma-erbi XMCreateDB -i -n %{_datadir}/scim-python/engine/XingMa/tables/erbi-qs.db > /dev/null %post xingma-wubi XMCreateDB -i -n %{_datadir}/scim-python/engine/XingMa/tables/wubi.db > /dev/null %post xingma-zhengma XMCreateDB -i -n %{_datadir}/scim-python/engine/XingMa/tables/zhengma.db > /dev/null %post xingma-compose XMCreateDB -i -n %{_datadir}/scim-python/engine/XingMa/tables/compose.db > /dev/null %files -f %{name}.lang %defattr(-,root,root,-) %doc $RPM_SOURCE_DIR/README.pinyin %doc $RPM_SOURCE_DIR/install_pinyin_database.sh %doc AUTHORS COPYING README TODO %{python_sitearch}/%{mod_path}/ %{python_sitearch}/scim.pth %{_libdir}/scim-1.0/1.4.0/IMEngine/python.so %{_libdir}/scim-1.0/1.4.0/Helper/python.so %{_libdir}/scim-1.0/1.4.0/SetupUI/python.so %dir %{_datadir}/scim-python/ %dir %{_datadir}/scim-python/engine %dir %{_datadir}/scim-python/setupui %dir %{_datadir}/scim-python/helper %{_datadir}/scim-python/engine/__init__.* %{_datadir}/scim-python/setupui/__init__.* %{_datadir}/scim-python/helper/__init__.* %{_datadir}/scim/icons/scim-python.png %if 0%{?suse_version} > 1100 %files english %defattr(-,root,root,-) %{_datadir}/scim-python/engine/EnglishWriter %{_datadir}/scim-python/setupui/EnglishWriter %endif %files pinyin %defattr(-,root,root,-) %dir %{_datadir}/scim-python/data %{_datadir}/scim-python/data/pinyin_table.txt %{_datadir}/scim-python/engine/PinYin %{_datadir}/scim-python/helper/PinYinSetup %{_datadir}/scim-python/helper/ZhengJuSetup %files xingma %defattr(-,root,root,-) %{_bindir}/XMCreateDB %dir %{_datadir}/scim-python/engine/XingMa %{_datadir}/scim-python/engine/XingMa/*.py %{_datadir}/scim-python/engine/XingMa/*.pyc %{_datadir}/scim-python/engine/XingMa/*.pyo %dir %{_datadir}/scim-python/engine/XingMa/tables %{_datadir}/scim-python/engine/XingMa/tables/.keep %{_datadir}/scim/icons/py-mode.png %{_datadir}/scim/icons/xm-mode.png %files xingma-cangjie %defattr(-,root,root,-) %{_datadir}/scim-python/engine/XingMa/tables/cangjie5.db %{_datadir}/scim/icons/cangjie5.png %files xingma-erbi %defattr(-,root,root,-) %{_datadir}/scim-python/engine/XingMa/tables/erbi-qs.db %{_datadir}/scim/icons/erbi-qs.png %files xingma-wubi %defattr(-,root,root,-) %{_datadir}/scim-python/engine/XingMa/tables/wubi.db %{_datadir}/scim/icons/wubi.png %files xingma-zhengma %defattr(-,root,root,-) %{_datadir}/scim-python/engine/XingMa/tables/zhengma.db %{_datadir}/scim/icons/zhengma.png %files xingma-compose %defattr(-,root,root,-) %{_datadir}/scim-python/engine/XingMa/tables/compose.db %{_datadir}/scim/icons/compose.png %changelog * Sat Dec 27 2008 Hu Jiaqi <bgn66922@163.com> - 0.1.13rc1 - openSUSE packages updated to 0.1.13rc1. * Wed Sep 26 2007 Huang Peng <shawn.p.huang@gmail.com> - 0.1.3-1 - Update to 0.1.3. * Wed Sep 26 2007 Huang Peng <shawn.p.huang@gmail.com> - 0.1.2-3 - Fix build warning. - Fix rpmlint checking warning. - Fix build failed in x86_64 platform. * Wed Sep 26 2007 Huang Peng <shawn.p.huang@gmail.com> - 0.1.2-2 - Change files: add %%dir %%{_datadir}/scim-python - Fix build failed in x86_64 platform. * Wed Sep 26 2007 Huang Peng <shawn.p.huang@gmail.com> - 0.1.2-1 - Update to 0.1.2 * Mon Sep 24 2007 Huang Peng <shawn.p.huang@gmail.com> - 0.0.2-1 - Update to 0.0.2 * Mon Sep 17 2007 Huang Peng <shawn.p.huang@gmail.com> - 0.0.1-1 - Init version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor