rhughes pushed to ibus-hangul (master). "Register as an AppStream component"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 09:44:03 UTC 2015


>From 02fb2b1c7d3da352167721620f8a01da3bc7e4f6 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 08:59:29 +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 <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>hangul.xml</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Hangul</name>
+  <summary>Korean input method</summary>
+  <description>
+    <p>
+      The Hangul input method is designed for entering Korean text.
+    </p>
+    <p>
+      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.
+    </p>
+  </description>
+  <url type="homepage">http://code.google.com/p/ibus/</url>
+  <compulsory_for_desktop>GNOME</compulsory_for_desktop>
+  <project_group>GNOME</project_group>
+  <developer_name>The GNOME Project</developer_name>
+  <url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
+  <url type="donation">http://www.gnome.org/friends/</url>
+  <url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
+  <update_contact><!-- upstream-contact_at_email.com --></update_contact>
+</component>
+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 <rhughes at redhat.com> - 1.5.0-2
+- Register as an AppStream component.
+
 * Wed Nov 26 2014 Daiki Ueno <dueno at redhat.com> - 1.5.0-1
 - Update version to 1.5.0
 - Drop upstreamed patches: dconf-prefix.patch and setup-ui.patch
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ibus-hangul.git/commit/?h=master&id=02fb2b1c7d3da352167721620f8a01da3bc7e4f6


More information about the scm-commits mailing list