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

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


>From 268ff9e9c06d1a75cc6f05535c2c90b3322389cd Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 09:12:13 +0000
Subject: Register as an AppStream component


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 <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>m17n.xml</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Multilingualization</name>
+  <summary>Multilingualization input method</summary>
+  <description>
+    <p>
+      The multilingualization input method allows entering many languages using the
+      tables from the m17n library.
+    </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">https://github.com/ibus/ibus-m17n</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
+
 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 <rhughes at redhat.com> - 1.3.4-18
+- Register as an AppStream component.
+
 * Thu Nov  6 2014 Daiki Ueno <dueno at redhat.com> - 1.3.4-17
 - Add ibus-m17n-content-type.patch
 - Fix bug 1024071 - ibus-m17n is enabled in the password entry field
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ibus-m17n.git/commit/?h=master&id=268ff9e9c06d1a75cc6f05535c2c90b3322389cd


More information about the scm-commits mailing list