Don’t index the databases in the post install (Resolves: rhbz#2047954)

This commit is contained in:
Mike FABIAN 2022-02-03 13:52:48 +01:00 committed by Stepan Oksanichenko
parent e18b969e91
commit 52021a4ddc
2 changed files with 26 additions and 75 deletions

View File

@ -0,0 +1 @@
34e254febe9609c8a65a08afe11b9d1b997972b2 ibus-table-chinese-1.8.3.tar.gz

View File

@ -1,10 +1,9 @@
%global message_level 6
%global ibus_tables_dir %{_datadir}/ibus-table/tables
%global ibus_icons_dir %{_datadir}/ibus-table/icons
%global createdb ibus-table-createdb
Name: ibus-table-chinese
Version: 1.8.3
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Chinese input tables for IBus
Summary(zh_CN): 中文码表输入法
Summary(zh_TW): 中文碼表輸入法
@ -30,8 +29,6 @@ Input tables themselves are in subpackages.
ibus-table-chinese 提供了中文碼表輸入法的基礎架構。
輸入法本身則在子套件裡。
%package array
Summary: Array input methods
Summary(zh_CN): 行列输入法
@ -135,7 +132,6 @@ and Erbi Qin-Song (erbi-qs)
小林子二筆 (erbi)
以及青松二筆 (erbi-qs)
%package quick
Summary: Quick-to-learn input methods
Summary(zh_CN): 速成输入法
@ -258,7 +254,6 @@ Haifeng Wubi 86.
%description -l zh_TW wubi-haifeng
海峰五筆輸入法。包含海峰五筆86。
%package wubi-jidian
Summary: Jidian Wubi 86 input method, JiShuang 6.0
Summary(zh_CN): 极点五笔86输入法 极爽词库 6.0
@ -448,121 +443,72 @@ EOF
# We install document using doc
rm -fr %{buildroot}%{_docdir}/*
%post array
%{createdb} -i -n %{ibus_tables_dir}/array30.db
%{createdb} -i -n %{ibus_tables_dir}/array30-big.db
%post cangjie
%{createdb} -i -n %{ibus_tables_dir}/cangjie3.db
%{createdb} -i -n %{ibus_tables_dir}/cangjie5.db
%{createdb} -i -n %{ibus_tables_dir}/cangjie-big.db
%post cantonese
%{createdb} -i -n %{ibus_tables_dir}/cantonese.db
%{createdb} -i -n %{ibus_tables_dir}/cantonhk.db
%{createdb} -i -n %{ibus_tables_dir}/jyutping.db
%post easy
%{createdb} -i -n %{ibus_tables_dir}/easy-big.db
%post erbi
%{createdb} -i -n %{ibus_tables_dir}/erbi.db
%{createdb} -i -n %{ibus_tables_dir}/erbi-qs.db
%post quick
%{createdb} -i -n %{ibus_tables_dir}/quick3.db
%{createdb} -i -n %{ibus_tables_dir}/quick5.db
%{createdb} -i -n %{ibus_tables_dir}/quick-classic.db
%post scj
%{createdb} -i -n %{ibus_tables_dir}/scj6.db
%post stroke5
%{createdb} -i -n %{ibus_tables_dir}/stroke5.db
%post wu
%{createdb} -i -n %{ibus_tables_dir}/wu.db
%post wubi-haifeng
%{createdb} -i -n %{ibus_tables_dir}/wubi-haifeng86.db
%post wubi-jidian
%{createdb} -i -n %{ibus_tables_dir}/wubi-jidian86.db
%post yong
%{createdb} -i -n %{ibus_tables_dir}/yong.db
%post cantonyale
%{createdb} -i -n %{ibus_tables_dir}/cantonyale.db
%files
%doc AUTHORS README ChangeLog COPYING
%files array
%{ibus_icons_dir}/array30.*
%verify(not size md5 mtime) %{ibus_tables_dir}/array30.db
%{ibus_tables_dir}/array30.db
%{ibus_icons_dir}/array30-big.*
%verify(not size md5 mtime) %{ibus_tables_dir}/array30-big.db
%{ibus_tables_dir}/array30-big.db
%files cangjie
%{ibus_icons_dir}/cangjie3.*
%verify(not size md5 mtime) %{ibus_tables_dir}/cangjie3.db
%{ibus_tables_dir}/cangjie3.db
%{ibus_icons_dir}/cangjie5.*
%verify(not size md5 mtime) %{ibus_tables_dir}/cangjie5.db
%{ibus_tables_dir}/cangjie5.db
%{ibus_icons_dir}/cangjie-big.*
%verify(not size md5 mtime) %{ibus_tables_dir}/cangjie-big.db
%{ibus_tables_dir}/cangjie-big.db
%files cantonese
%{ibus_icons_dir}/cantonese.*
%verify(not size md5 mtime) %{ibus_tables_dir}/cantonese.db
%{ibus_tables_dir}/cantonese.db
%{ibus_icons_dir}/cantonhk.*
%verify(not size md5 mtime) %{ibus_tables_dir}/cantonhk.db
%{ibus_tables_dir}/cantonhk.db
%{ibus_icons_dir}/jyutping.*
%verify(not size md5 mtime) %{ibus_tables_dir}/jyutping.db
%{ibus_tables_dir}/jyutping.db
%files easy
%{ibus_icons_dir}/easy-big.*
%verify(not size md5 mtime) %{ibus_tables_dir}/easy-big.db
%{ibus_tables_dir}/easy-big.db
%files erbi
%{ibus_icons_dir}/erbi.*
%verify(not size md5 mtime) %{ibus_tables_dir}/erbi.db
%{ibus_tables_dir}/erbi.db
%{ibus_icons_dir}/erbi-qs.*
%verify(not size md5 mtime) %{ibus_tables_dir}/erbi-qs.db
%{ibus_tables_dir}/erbi-qs.db
%files quick
%{ibus_icons_dir}/quick3.*
%verify(not size md5 mtime) %{ibus_tables_dir}/quick3.db
%{ibus_tables_dir}/quick3.db
%{ibus_icons_dir}/quick5.*
%verify(not size md5 mtime) %{ibus_tables_dir}/quick5.db
%{ibus_tables_dir}/quick5.db
%{ibus_icons_dir}/quick-classic.*
%verify(not size md5 mtime) %{ibus_tables_dir}/quick-classic.db
%{ibus_tables_dir}/quick-classic.db
%files scj
%{ibus_icons_dir}/scj6.*
%verify(not size md5 mtime) %{ibus_tables_dir}/scj6.db
%{ibus_tables_dir}/scj6.db
%files stroke5
%{_datadir}/appdata/stroke5.appdata.xml
%{ibus_icons_dir}/stroke5.*
%verify(not size md5 mtime) %{ibus_tables_dir}/stroke5.db
%{ibus_tables_dir}/stroke5.db
%files wu
%{ibus_icons_dir}/wu.*
%verify(not size md5 mtime) %{ibus_tables_dir}/wu.db
%{ibus_tables_dir}/wu.db
%files wubi-haifeng
%{_datadir}/appdata/wubi-haifeng86.appdata.xml
%doc tables/wubi-haifeng/COPYING tables/wubi-haifeng/README
%{ibus_icons_dir}/wubi-haifeng86.*
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-haifeng86.db
%{ibus_tables_dir}/wubi-haifeng86.db
%files wubi-jidian
%{_datadir}/appdata/wubi-jidian86.appdata.xml
%{ibus_icons_dir}/wubi-jidian86.*
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-jidian86.db
%{ibus_tables_dir}/wubi-jidian86.db
%files yong
%{ibus_icons_dir}/yong.*
@ -571,9 +517,13 @@ rm -fr %{buildroot}%{_docdir}/*
%files cantonyale
%{_datadir}/appdata/cantonyale.appdata.xml
%{ibus_icons_dir}/cantonyale.*
%verify(not size md5 mtime) %{ibus_tables_dir}/cantonyale.db
%{ibus_tables_dir}/cantonyale.db
%changelog
* Thu Feb 03 2022 Mike FABIAN <mfabian@redhat.com> - 1.8.3-10
- Dont index the databases in the post install
- Resolves: rhbz#2047954
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.3-9
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688