From 5a16322f2f610bc067c47d968add5d3c33e800d2 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 09:21:43 +0000 Subject: [PATCH] Register as an AppStream component --- ibus-table-chinese.spec | 88 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/ibus-table-chinese.spec b/ibus-table-chinese.spec index 1a3d841..522bc3d 100644 --- a/ibus-table-chinese.spec +++ b/ibus-table-chinese.spec @@ -4,7 +4,7 @@ %global createdb ibus-table-createdb Name: ibus-table-chinese Version: 1.8.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Chinese input tables for IBus Summary(zh_CN): 中文码表输入法 Summary(zh_TW): 中文碼表輸入法 @@ -322,6 +322,86 @@ YongMa input method. rm -rf %{buildroot} make install DESTDIR=%{buildroot} +# Register as AppStream components to be visible in the software center +# +# NOTE: It would be *awesome* if these files were maintained by the upstream +# project, translated and installed into the right place during `make install`. +# +# See http://www.freedesktop.org/software/appstream/docs/ for more details. +# +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/stroke5.appdata.xml < + + stroke5.db + CC0-1.0 + Stroke 5 + Chinese input method + +

+ 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. +

+

+ 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. +

+
+ https://code.google.com/p/ibus/ + https://code.google.com/p/ibus/issues/list + https://code.google.com/p/ibus/wiki/FAQ + +
+EOF +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-haifeng86.appdata.xml < + + wubi-haifeng86.db + CC0-1.0 + HaiFeng Wubi 86 + Simplified Chinese input method + +

+ The HaiFeng Wubi 86 input method is designed for entering Simplified Chinese text. +

+

+ 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. +

+
+ http://code.google.com/p/ibus/ + https://code.google.com/p/ibus/issues/list + https://code.google.com/p/ibus/wiki/FAQ + +
+EOF +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-jidian86.appdata.xml < + + wubi-jidian86.db + CC0-1.0 + Jidian Wubi 86 + Simplified Chinese input method + +

+ The Jidian Wubi 86 input method is designed for entering Simplified Chinese text. +

+

+ 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. +

+
+ http://code.google.com/p/ibus/ + https://code.google.com/p/ibus/issues/list + https://code.google.com/p/ibus/wiki/FAQ + +
+EOF + # We install document using doc rm -fr %{buildroot}%{_docdir}/* @@ -419,6 +499,7 @@ rm -fr %{buildroot}%{_docdir}/* %verify(not size md5 mtime) %{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 @@ -427,11 +508,13 @@ rm -fr %{buildroot}%{_docdir}/* %verify(not size md5 mtime) %{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 %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 @@ -440,6 +523,9 @@ rm -fr %{buildroot}%{_docdir}/* %{ibus_tables_dir}/yong.db %changelog +* Wed Mar 25 2015 Richard Hughes - 1.8.2-2 +- Register as AppStream components. + * Tue Jun 10 2014 Ding-Yi Chen - 1.8.2-1 - Built for ibus-table-1.8.1