diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2009-12-13 08:35:10 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2009-12-13 08:35:10 +0800 |
commit | 4728ea9371fd8db91d971f1bfaf404c0437081c2 (patch) | |
tree | 8126deefb9181dd37cbcc33f4ebe886352c1c6d6 | |
parent | 34a762ae03bf4840f98aed803ca71ad870072ca4 (diff) | |
download | ibus-libpinyin-4728ea9371fd8db91d971f1bfaf404c0437081c2.tar.gz ibus-libpinyin-4728ea9371fd8db91d971f1bfaf404c0437081c2.tar.xz ibus-libpinyin-4728ea9371fd8db91d971f1bfaf404c0437081c2.zip |
Create databases' indexes in build time.
-rw-r--r-- | ibus-pinyin.spec.in | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ibus-pinyin.spec.in b/ibus-pinyin.spec.in index 0366c20..edf95c7 100644 --- a/ibus-pinyin.spec.in +++ b/ibus-pinyin.spec.in @@ -17,7 +17,7 @@ BuildRequires: sqlite-devel BuildRequires: libuuid-devel BuildRequires: ibus-devel >= 1.2.0 -Requires(post): sqlite +# Requires(post): sqlite Requires: ibus >= 1.2.0 @@ -43,7 +43,8 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install +# make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install +make DESTDIR=${RPM_BUILD_ROOT} install %find_lang %{name} @@ -51,12 +52,12 @@ make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install rm -rf $RPM_BUILD_ROOT %post -cd %{_datadir}/ibus-pinyin/db -sqlite3 android.db ".read create_index.sql" +# cd %{_datadir}/ibus-pinyin/db +# sqlite3 android.db ".read create_index.sql" %post open-phrase -cd %{_datadir}/ibus-pinyin/db -sqlite3 open-phrase.db ".read create_index.sql" +# cd %{_datadir}/ibus-pinyin/db +# sqlite3 open-phrase.db ".read create_index.sql" %files -f %{name}.lang %defattr(-,root,root,-) |