From 268ff9e9c06d1a75cc6f05535c2c90b3322389cd Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 09:12:13 +0000 Subject: [PATCH] Register as an AppStream component --- ibus-m17n.spec | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/ibus-m17n.spec b/ibus-m17n.spec index fa6192a..26ea323 100644 --- a/ibus-m17n.spec +++ b/ibus-m17n.spec @@ -1,7 +1,7 @@ %global require_ibus_version 1.4.0 Name: ibus-m17n Version: 1.3.4 -Release: 17%{?dist} +Release: 18%{?dist} Summary: The M17N engine for IBus platform License: GPLv2+ Group: System Environment/Libraries @@ -63,12 +63,50 @@ make %{?_smp_mflags} %install make DESTDIR=${RPM_BUILD_ROOT} install +# 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/m17n.appdata.xml < + + m17n.xml + CC0-1.0 + Multilingualization + Multilingualization input method + +

+ The multilingualization input method allows entering many languages using the + tables from the m17n library. +

+

+ 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://github.com/ibus/ibus-m17n + GNOME + GNOME + The GNOME Project + https://code.google.com/p/ibus/issues/list + http://www.gnome.org/friends/ + https://code.google.com/p/ibus/wiki/FAQ + +
+EOF + desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-m17n.desktop %find_lang %{name} %files -f %{name}.lang %doc AUTHORS COPYING README +%{_datadir}/appdata/*.appdata.xml %{_datadir}/ibus-m17n %{_libexecdir}/ibus-engine-m17n %{_libexecdir}/ibus-setup-m17n @@ -76,6 +114,9 @@ desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-m17n. %{_datadir}/applications/ibus-setup-m17n.desktop %changelog +* Wed Mar 25 2015 Richard Hughes - 1.3.4-18 +- Register as an AppStream component. + * Thu Nov 6 2014 Daiki Ueno - 1.3.4-17 - Add ibus-m17n-content-type.patch - Fix bug 1024071 - ibus-m17n is enabled in the password entry field