From 3c93219df65050a4cb39e28dc4d6c6892f1dbd5d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 25 Mar 2015 22:14:52 +0000 Subject: [PATCH] Register as an AppStream component --- ibus-anthy.spec | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/ibus-anthy.spec b/ibus-anthy.spec index f363e60..4b67275 100644 --- a/ibus-anthy.spec +++ b/ibus-anthy.spec @@ -22,7 +22,7 @@ Name: ibus-anthy Version: 1.5.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Anthy engine for IBus input platform License: GPLv2+ Group: System Environment/Libraries @@ -129,6 +129,32 @@ make %{?_smp_mflags} make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la +# register as an AppStream component +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/anthy.metainfo.xml < + + anthy.xml + CC0-1.0 + Anthy + Japanese input method + +

+ The Anthy input method is designed for entering Japanese 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 + %find_lang %{name} %check @@ -167,6 +193,7 @@ touch --no-create %{_datadir}/icons/hicolor || : %{_datadir}/ibus-anthy %{_datadir}/ibus/component/* %endif +%{_datadir}/appdata/*.metainfo.xml %{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg %if %with_python_pkg @@ -184,6 +211,9 @@ touch --no-create %{_datadir}/icons/hicolor || : %{_libdir}/libanthygobject-%{sub_version}.so %changelog +* Wed Mar 25 2015 Richard Hughes - 1.5.6-3 +- Register as an AppStream component. + * Thu Nov 13 2014 Takao Fujiwara - 1.5.6-2 - Updated ibus-anthy-HEAD.patch to fix Enter key on setup dialog. - Use python2 for epel7.