From 02fb2b1c7d3da352167721620f8a01da3bc7e4f6 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 2015 09:43:48 +0000 Subject: Register as an AppStream component --- diff --git a/ibus-hangul.spec b/ibus-hangul.spec index 506cc7b..9ffaf4d 100644 --- a/ibus-hangul.spec +++ b/ibus-hangul.spec @@ -3,7 +3,7 @@ Name: ibus-hangul Version: 1.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Hangul engine for IBus input platform License: GPLv2+ Group: System Environment/Libraries @@ -46,6 +46,42 @@ make %{?_smp_mflags} %install make DESTDIR=${RPM_BUILD_ROOT} install INSTALL="install -p" +# 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/hangul.appdata.xml < + + hangul.xml + CC0-1.0 + Hangul + Korean input method + +

+ The Hangul input method is designed for entering Korean 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/ + 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 + rm -f ${RPM_BUILD_ROOT}%{_bindir}/ibus-setup-hangul sed -i 's!^Exec=ibus-setup-hangul!Exec=%{_libexecdir}/ibus-setup-hangul!' ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangul.desktop @@ -73,12 +109,16 @@ fi %doc AUTHORS COPYING README %{_libexecdir}/ibus-engine-hangul %{_libexecdir}/ibus-setup-hangul +%{_datadir}/appdata/*.appdata.xml %{_datadir}/ibus-hangul %{_datadir}/ibus/component/* %{_datadir}/applications/ibus-setup-hangul.desktop %{_datadir}/icons/hicolor/*/apps/* %changelog +* Wed Mar 25 2015 Richard Hughes - 1.5.0-2 +- Register as an AppStream component. + * Wed Nov 26 2014 Daiki Ueno - 1.5.0-1 - Update version to 1.5.0 - Drop upstreamed patches: dconf-prefix.patch and setup-ui.patch