From 6913b57dc6f8fcd78241076a8f6a22708f2e938a Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Aug 10 2008 13:26:20 +0000 Subject: Import ibus-pinyin --- diff --git a/.cvsignore b/.cvsignore index e69de29..373927e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +ibus-pinyin-0.1.0.20080810.tar.gz +pinyin-database-0.1.10.5.tar.bz2 diff --git a/ibus-pinyin.spec b/ibus-pinyin.spec new file mode 100644 index 0000000..a0a5688 --- /dev/null +++ b/ibus-pinyin.spec @@ -0,0 +1,55 @@ +Name: ibus-pinyin +Version: 0.1.0.20080810 +Release: 1%{?dist} +Summary: The PinYin engine for IBus platform +License: GPLv2+ +Group: System Environment/Libraries +URL: http://code.google.com/p/ibus/ +Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz +Source1: http://scim-python.googlecode.com/files/pinyin-database-0.1.10.5.tar.bz2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: gettext-devel + +Requires: ibus + +%description +PinYin engine for IBus platform. It provides a Chinese PinYin input method. + +%prep +%setup -q +cp %{SOURCE1} engine + +%build +%configure --disable-static +# make -C po update-gmo +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install + +# %find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +cd /usr/share/ibus-pinyin/engine +python -c "import pysqlitedb; db = pysqlitedb.PYSQLiteDB (); db.create_indexes ();" >/dev/null + +%files +# -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS COPYING README +%dir %{_datadir}/ibus-pinyin +%{_datadir}/ibus-pinyin/* +%{_datadir}/ibus/engine/pinyin.engine +%{_libexecdir}/ibus-engine-pinyin +%{_libexecdir}/ibus-setup-pinyin + +%changelog +* Wed Jun 25 2008 Huang Peng - 0.1.0.20080810-1 +- The first version. diff --git a/sources b/sources index e69de29..5211ff8 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +3974865318b1c849600ebb720f2963e7 ibus-pinyin-0.1.0.20080810.tar.gz +140a7dd821e8e74299bfb2089993838b pinyin-database-0.1.10.5.tar.bz2