From 27cc15f496b8f7e6d91e1758f2e76323a11f6d17 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 09:45:19 +0000 Subject: [PATCH] Register as an AppStream component --- ibus-typing-booster.spec | 41 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/ibus-typing-booster.spec b/ibus-typing-booster.spec index c291381..00a63f7 100644 --- a/ibus-typing-booster.spec +++ b/ibus-typing-booster.spec @@ -1,6 +1,6 @@ Name: ibus-typing-booster Version: 1.2.11 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A typing booster engine for the IBus platform License: GPLv3+ Group: System Environment/Libraries @@ -31,6 +31,41 @@ make %{?_smp_mflags} export PYTHON=%{__python3} make install DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true INSTALL="install -p" pkgconfigdir=%{_datadir}/pkgconfig +# 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/typing-booster.appdata.xml < + + typing-booster.xml + CC0-1.0 + Typing Booster + Predictive input method + +

+ Ibus-Typing Booster is a predictive input method and predicts complete words + based on partial input. + One can then simply select the desired word from a list of suggestions and + improve one's typing speed and spelling. +

+

+ 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 + %find_lang %{name} %check @@ -48,6 +83,7 @@ desktop-file-validate \ %files -f %{name}.lang %doc AUTHORS COPYING README %{_datadir}/%{name} +%{_datadir}/appdata/*.appdata.xml %{_datadir}/ibus/component/typing-booster.xml %{_libexecdir}/ibus-engine-typing-booster %{_libexecdir}/ibus-setup-typing-booster @@ -55,6 +91,9 @@ desktop-file-validate \ %{_datadir}/applications/ibus-setup-typing-booster.desktop %changelog +* Wed Mar 25 2015 Richard Hughes - 1.2.11-2 +- Register as an AppStream component. + * Wed Sep 24 2014 Mike FABIAN - 1.2.11-1 - Require Python >= 3.3 - Always write xml output in UTF-8 encoding, not in the encoding of the current locale