diff --git a/ibus-chewing.spec b/ibus-chewing.spec index 72641df..04f161b 100644 --- a/ibus-chewing.spec +++ b/ibus-chewing.spec @@ -1,6 +1,6 @@ Name: ibus-chewing Version: 1.4.14 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Chewing engine for IBus input platform Summary(zh_TW): IBus新酷音輸入法 License: GPLv2+ @@ -62,6 +62,41 @@ make install DESTDIR=%{buildroot} # We install document using doc rm -fr %{buildroot}%{_docdir}/* +# Register as an AppStream component to be visible in the software center +# +# NOTE: It would be *awesome* if this file was 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/chewing.appdata.xml < + + chewing.xml + CC0-1.0 + Chewing + Traditional Chinese input method + +

+ The Chewing input method is designed for entering Traditional Chinese text. + Chewing helps you inputting Traditional Chinese by its pronunciation, in the + form of either Bopomofo/Zhuyin or Hanyu pinyin, as well as Chinese punctuation + marks and normal and full shape number and English alphabets. +

+

+ 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/wiki/ChewingUserGuide + https://code.google.com/p/ibus/issues/list + https://code.google.com/p/ibus/wiki/FAQ + +
+EOF + %find_lang %{name} @@ -84,6 +119,7 @@ fi %{_datadir}/%{name}/icons/%{name}-orig.png %{_datadir}/%{name}/icons/%{name}.png %{_datadir}/%{name}/icons/ibus-setup-chewing.png +%{_datadir}/appdata/*.appdata.xml %{_datadir}/applications/ibus-setup-chewing.desktop %{_datadir}/glib-2.0/schemas/org.freedesktop.IBus.Chewing.gschema.xml %{_datadir}/ibus/component/chewing.xml @@ -91,6 +127,9 @@ fi %{_libexecdir}/ibus-setup-chewing %changelog +* Wed Mar 25 2015 Richard Hughes - 1.4.14-3 +- Register as an AppStream component. + * Tue Dec 16 2014 Ding-Yi Chen - 1.4.14-2 - Version bump