!5 Update to 1.8.12
From: @wk333 Reviewed-by: @lyn1001 Signed-off-by: @lyn1001
This commit is contained in:
commit
7a05742302
BIN
1.8.2.tar.gz
BIN
1.8.2.tar.gz
Binary file not shown.
BIN
ibus-table-chinese-1.8.12.tar.gz
Normal file
BIN
ibus-table-chinese-1.8.12.tar.gz
Normal file
Binary file not shown.
@ -1,10 +1,12 @@
|
||||
%global ibus_tables_dir %{_datadir}/ibus-table/tables
|
||||
%global ibus_icons_dir %{_datadir}/ibus-table/icons
|
||||
Name: ibus-table-chinese
|
||||
Version: 1.8.2
|
||||
Release: 13
|
||||
Version: 1.8.12
|
||||
Release: 1
|
||||
Summary: IBus Chinese input tables
|
||||
License: GPLv3+
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/definite/ibus-table-chinese
|
||||
Source0: https://github.com/definite/ibus-table-chinese/archive/%{version}.tar.gz
|
||||
Source0: https://github.com/mike-fabian/ibus-table-chinese/releases/download/%{version}/ibus-table-chinese-%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake >= 2.6.2 ibus-table-devel >= 1.2.0
|
||||
Requires: ibus-table >= 1.2.0
|
||||
@ -37,7 +39,7 @@ Cangjie based input methodses.
|
||||
|
||||
%package cantonese
|
||||
Summary: Cantonese input methods
|
||||
License: GPLv2 and GPLv3+ and Freely redistributable without restriction
|
||||
License: GPL-2.0-only AND GPL-3.0-or-later AND MIT
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-cantonese = %{version}-%{release}
|
||||
Obsoletes: ibus-table-cantonese < 1.3
|
||||
@ -47,7 +49,7 @@ Cantonese includes Cantonese, Hong-Kong version of Cantonese and jyutping.
|
||||
|
||||
%package easy
|
||||
Summary: Easy input method
|
||||
License: GPLv2
|
||||
License: GPL-2.0-only
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-easy = %{version}-%{release}
|
||||
Obsoletes: ibus-table-easy < 1.3
|
||||
@ -57,7 +59,7 @@ Easy phrase-wise input method.
|
||||
|
||||
%package erbi
|
||||
Summary: Erbi input method
|
||||
License: GPLv2+
|
||||
License: GPL-2.0-or-later
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-erbi = %{version}-%{release}
|
||||
Obsoletes: ibus-table-erbi < 1.3
|
||||
@ -77,7 +79,7 @@ Quick is based on Cangjie input method.
|
||||
|
||||
%package scj
|
||||
Summary: Smart Cangjie
|
||||
License: GPLv3+
|
||||
License: GPL-3.0-or-later
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-cangjie = %{version}-%{release}
|
||||
Obsoletes: ibus-table-cangjie < 1.3
|
||||
@ -87,7 +89,7 @@ Smart Cangjie is an improved Cangjie base input method.
|
||||
|
||||
%package stroke5
|
||||
Summary: Stroke 5 input method
|
||||
License: GPLv3+
|
||||
License: GPL-3.0-or-later
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-stroke5 = %{version}-%{release}
|
||||
Obsoletes: ibus-table-stroke5 < 1.3 ibus-table-yinma < 1.3
|
||||
@ -97,7 +99,7 @@ Stroke5 input method.
|
||||
|
||||
%package wu
|
||||
Summary: Wu pronunciation input method
|
||||
License: GPLv2+
|
||||
License: GPL-2.0-or-later
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-wu = %{version}-%{release}
|
||||
Obsoletes: ibus-table-wu < 1.3
|
||||
@ -107,7 +109,7 @@ Wu pronunciation input method.
|
||||
|
||||
%package wubi-haifeng
|
||||
Summary: Haifeng Wubi input method
|
||||
License: BSD
|
||||
License: 0BSD
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-wubi = %{version}-%{release}
|
||||
Obsoletes: ibus-table-wubi < 1.3
|
||||
@ -127,7 +129,7 @@ Jidian Wubi current includes Wubi 86.
|
||||
|
||||
%package yong
|
||||
Summary: YongMa input method
|
||||
License: GPLv3
|
||||
License: GPL-3.0-only
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: ibus-table-yong = %{version}-%{release}
|
||||
Obsoletes: ibus-table-yong < 1.3
|
||||
@ -135,218 +137,119 @@ Obsoletes: ibus-table-yong < 1.3
|
||||
%description yong
|
||||
YongMa input method.
|
||||
|
||||
%package cantonyale
|
||||
Summary: Cantonese input method based on yale romanization
|
||||
License: GPL-2.0-only
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description cantonyale
|
||||
Cantonese input method based on yale romanization
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}-Source -p1
|
||||
%{__sed} -i 's/\r//' tables/wubi-haifeng/COPYING
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%cmake -DMANAGE_MESSAGE_LEVEL=6 .
|
||||
%make_build VERBOSE=1
|
||||
|
||||
%clean
|
||||
|
||||
%install
|
||||
%make_install
|
||||
install -d $RPM_BUILD_ROOT%{_datadir}/appdata
|
||||
cat << EOF > $RPM_BUILD_ROOT%{_datadir}/appdata/stroke5.appdata.xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="inputmethod">
|
||||
<id>stroke5.db</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<name>Stroke 5</name>
|
||||
<summary>Chinese input method</summary>
|
||||
<description>
|
||||
<p>
|
||||
Stroke 5 is a very simple stroke-based Chinese input method.
|
||||
It was designed specifically for people with limited hand mobility or computer
|
||||
literacy, like the elderly or disabled.
|
||||
</p>
|
||||
<p>
|
||||
Input methods are typing systems allowing users to input complex languages.
|
||||
They are necessary because these contain too many characters to simply be laid
|
||||
out on a traditional keyboard.
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">https://code.google.com/p/ibus/</url>
|
||||
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
||||
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
||||
<languages>
|
||||
<lang percentage="100">zh_CN</lang>
|
||||
<lang percentage="100">zh_HK</lang>
|
||||
<lang percentage="100">zh_SG</lang>
|
||||
<lang percentage="100">zh_TW</lang>
|
||||
</languages>
|
||||
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
||||
</component>
|
||||
EOF
|
||||
cat << EOF > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-haifeng86.appdata.xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="inputmethod">
|
||||
<id>wubi-haifeng86.db</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<name>HaiFeng Wubi 86</name>
|
||||
<summary>Simplified Chinese input method</summary>
|
||||
<description>
|
||||
<p>
|
||||
The HaiFeng Wubi 86 input method is designed for entering Simplified Chinese text.
|
||||
</p>
|
||||
<p>
|
||||
Input methods are typing systems allowing users to input complex languages.
|
||||
They are necessary because these contain too many characters to simply be laid
|
||||
out on a traditional keyboard.
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">http://code.google.com/p/ibus/</url>
|
||||
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
||||
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
||||
<languages>
|
||||
<lang percentage="100">zh_CN</lang>
|
||||
<lang percentage="100">zh_HK</lang>
|
||||
<lang percentage="100">zh_SG</lang>
|
||||
<lang percentage="100">zh_TW</lang>
|
||||
</languages>
|
||||
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
||||
</component>
|
||||
EOF
|
||||
cat << EOF > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-jidian86.appdata.xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="inputmethod">
|
||||
<id>wubi-jidian86.db</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<name>Jidian Wubi 86</name>
|
||||
<summary>Simplified Chinese input method</summary>
|
||||
<description>
|
||||
<p>
|
||||
The Jidian Wubi 86 input method is designed for entering Simplified Chinese text.
|
||||
</p>
|
||||
<p>
|
||||
Input methods are typing systems allowing users to input complex languages.
|
||||
They are necessary because these contain too many characters to simply be laid
|
||||
out on a traditional keyboard.
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">http://code.google.com/p/ibus/</url>
|
||||
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
|
||||
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
|
||||
<languages>
|
||||
<lang percentage="100">zh_CN</lang>
|
||||
<lang percentage="100">zh_HK</lang>
|
||||
<lang percentage="100">zh_SG</lang>
|
||||
<lang percentage="100">zh_TW</lang>
|
||||
</languages>
|
||||
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
|
||||
</component>
|
||||
EOF
|
||||
|
||||
# Register as AppStream components to be visible in the software center
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
|
||||
cp metainfo/*.appdata.xml $RPM_BUILD_ROOT%{_datadir}/metainfo
|
||||
|
||||
rm -fr %{buildroot}%{_docdir}/*
|
||||
|
||||
%post array
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/array30.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/array30-big.db
|
||||
|
||||
%post cangjie
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/cangjie3.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/cangjie5.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/cangjie-big.db
|
||||
|
||||
%post cantonese
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/cantonese.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/cantonhk.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/jyutping.db
|
||||
|
||||
%post easy
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/easy-big.db
|
||||
|
||||
%post erbi
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/erbi.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/erbi-qs.db
|
||||
|
||||
%post quick
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/quick3.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/quick5.db
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/quick-classic.db
|
||||
|
||||
%post scj
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/scj6.db
|
||||
|
||||
%post stroke5
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/stroke5.db
|
||||
|
||||
%post wu
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/wu.db
|
||||
|
||||
%post wubi-haifeng
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/wubi-haifeng86.db
|
||||
|
||||
%post wubi-jidian
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/wubi-jidian86.db
|
||||
|
||||
%post yong
|
||||
ibus-table-createdb -i -n %{_datadir}/ibus-table/tables/yong.db
|
||||
|
||||
%files
|
||||
%doc
|
||||
|
||||
%files array
|
||||
%{_datadir}/ibus-table/icons/{array30.*,array30-big.*}
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/array30.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/array30-big.db
|
||||
|
||||
%files cangjie
|
||||
%{_datadir}/ibus-table/icons/{cangjie3.*,cangjie5.*,cangjie-big.*}
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/cangjie3.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/cangjie5.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/cangjie-big.db
|
||||
|
||||
%files cantonese
|
||||
%{_datadir}/ibus-table/icons/{cantonese.*,cantonhk.*,jyutping.*}
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/cantonese.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/cantonhk.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/jyutping.db
|
||||
|
||||
%files easy
|
||||
%{_datadir}/ibus-table/icons/easy-big.*
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/easy-big.db
|
||||
|
||||
%files erbi
|
||||
%{_datadir}/ibus-table/icons/{erbi.*,erbi-qs.*}
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/erbi.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/erbi-qs.db
|
||||
|
||||
%files quick
|
||||
%{_datadir}/ibus-table/icons/{quick3.*,quick5.*,quick-classic.*}
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/quick3.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/quick5.db
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/quick-classic.db
|
||||
|
||||
%files scj
|
||||
%{_datadir}/ibus-table/icons/scj6.*
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/scj6.db
|
||||
|
||||
%files stroke5
|
||||
%{_datadir}/appdata/stroke5.appdata.xml
|
||||
%{_datadir}/ibus-table/icons/stroke5.*
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/stroke5.db
|
||||
|
||||
%files wu
|
||||
%{_datadir}/ibus-table/icons/wu.*
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/wu.db
|
||||
|
||||
%files wubi-haifeng
|
||||
%{_datadir}/appdata/wubi-haifeng86.appdata.xml
|
||||
%doc tables/wubi-haifeng/{COPYING,README}
|
||||
%{_datadir}/ibus-table/icons/wubi-haifeng86.*
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/wubi-haifeng86.db
|
||||
|
||||
%files wubi-jidian
|
||||
%{_datadir}/appdata/wubi-jidian86.appdata.xml
|
||||
%{_datadir}/ibus-table/icons/wubi-jidian86.*
|
||||
%verify(not size md5 mtime) %{_datadir}/ibus-table/tables/wubi-jidian86.db
|
||||
|
||||
%files yong
|
||||
%{_datadir}/ibus-table/icons/yong.*
|
||||
%{_datadir}/ibus-table/tables/yong.db
|
||||
%doc AUTHORS README ChangeLog COPYING
|
||||
|
||||
%files array
|
||||
%{_datadir}/metainfo/ibus-table-chinese-array.appdata.xml
|
||||
%{ibus_icons_dir}/array30.*
|
||||
%{ibus_tables_dir}/array30.db
|
||||
%{ibus_icons_dir}/array30-big.*
|
||||
%{ibus_tables_dir}/array30-big.db
|
||||
|
||||
%files cangjie
|
||||
%{_datadir}/metainfo/ibus-table-chinese-cangjie.appdata.xml
|
||||
%{ibus_icons_dir}/cangjie3.*
|
||||
%{ibus_tables_dir}/cangjie3.db
|
||||
%{ibus_icons_dir}/cangjie5.*
|
||||
%{ibus_tables_dir}/cangjie5.db
|
||||
%{ibus_icons_dir}/cangjie-big.*
|
||||
%{ibus_tables_dir}/cangjie-big.db
|
||||
|
||||
%files cantonese
|
||||
%{_datadir}/metainfo/ibus-table-chinese-cantonese.appdata.xml
|
||||
%{ibus_icons_dir}/cantonese.*
|
||||
%{ibus_tables_dir}/cantonese.db
|
||||
%{ibus_icons_dir}/cantonhk.*
|
||||
%{ibus_tables_dir}/cantonhk.db
|
||||
%{ibus_icons_dir}/jyutping.*
|
||||
%{ibus_tables_dir}/jyutping.db
|
||||
|
||||
%files easy
|
||||
%{_datadir}/metainfo/ibus-table-chinese-easy.appdata.xml
|
||||
%{ibus_icons_dir}/easy-big.*
|
||||
%{ibus_tables_dir}/easy-big.db
|
||||
|
||||
%files erbi
|
||||
%{_datadir}/metainfo/ibus-table-chinese-erbi.appdata.xml
|
||||
%{ibus_icons_dir}/erbi.*
|
||||
%{ibus_tables_dir}/erbi.db
|
||||
%{ibus_icons_dir}/erbi-qs.*
|
||||
%{ibus_tables_dir}/erbi-qs.db
|
||||
|
||||
%files quick
|
||||
%{_datadir}/metainfo/ibus-table-chinese-quick.appdata.xml
|
||||
%{ibus_icons_dir}/quick3.*
|
||||
%{ibus_tables_dir}/quick3.db
|
||||
%{ibus_icons_dir}/quick5.*
|
||||
%{ibus_tables_dir}/quick5.db
|
||||
%{ibus_icons_dir}/quick-classic.*
|
||||
%{ibus_tables_dir}/quick-classic.db
|
||||
|
||||
%files scj
|
||||
%{_datadir}/metainfo/ibus-table-chinese-scj.appdata.xml
|
||||
%{ibus_icons_dir}/scj6.*
|
||||
%{ibus_tables_dir}/scj6.db
|
||||
|
||||
%files stroke5
|
||||
%{_datadir}/metainfo/ibus-table-chinese-stroke5.appdata.xml
|
||||
%{ibus_icons_dir}/stroke5.*
|
||||
%{ibus_tables_dir}/stroke5.db
|
||||
|
||||
%files wu
|
||||
%{_datadir}/metainfo/ibus-table-chinese-wu.appdata.xml
|
||||
%{ibus_icons_dir}/wu.*
|
||||
%{ibus_tables_dir}/wu.db
|
||||
|
||||
%files wubi-haifeng
|
||||
%{_datadir}/metainfo/ibus-table-chinese-wubi-haifeng86.appdata.xml
|
||||
%doc tables/wubi-haifeng/COPYING tables/wubi-haifeng/README
|
||||
%{ibus_icons_dir}/wubi-haifeng86.*
|
||||
%{ibus_tables_dir}/wubi-haifeng86.db
|
||||
|
||||
%files wubi-jidian
|
||||
%{_datadir}/metainfo/ibus-table-chinese-wubi-jidian86.appdata.xml
|
||||
%{ibus_icons_dir}/wubi-jidian86.*
|
||||
%{ibus_tables_dir}/wubi-jidian86.db
|
||||
|
||||
%files yong
|
||||
%{_datadir}/metainfo/ibus-table-chinese-yong.appdata.xml
|
||||
%{ibus_icons_dir}/yong.*
|
||||
%{ibus_tables_dir}/yong.db
|
||||
|
||||
%files cantonyale
|
||||
%{_datadir}/metainfo/ibus-table-chinese-cantonyale.appdata.xml
|
||||
%{ibus_icons_dir}/cantonyale.*
|
||||
%{ibus_tables_dir}/cantonyale.db
|
||||
|
||||
%changelog
|
||||
* Wed Sep 06 2023 wangkai <13474090681@163.com> - 1.8.12-1
|
||||
- Update to 1.8.12
|
||||
- Change source url to github.com/mike-fabian/ibus-table-chinese
|
||||
|
||||
* Mon Apr 20 2020 lizhenhua <lizhenhua21@huawei.com> - 1.8.2-13
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user