rhughes pushed to mozc (master). "Register as an AppStream component"

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


>From 44cd24e3eaf46466e6074dd818f94e337a747f83 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 09:15:06 +0000
Subject: Register as an AppStream component


diff --git a/mozc.spec b/mozc.spec
index b0fe84c..0081f03 100644
--- a/mozc.spec
+++ b/mozc.spec
@@ -2,7 +2,7 @@
 
 Name:		mozc
 Version:	1.15.1814.102
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	A Japanese Input Method Editor (IME) designed for multi-platform
 
 Group:		System Environment/Libraries
@@ -189,6 +189,38 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
 
 xemacs -batch -f batch-byte-compile $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}/mozc.el
 
+# 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/mozc.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>mozc.xml</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Mozc</name>
+  <summary>Japanese input method</summary>
+  <description>
+    <p>
+      The Mozc input method is designed for entering Japanese text.
+      It is multi-platform and is available on Chromium OS, Windows, Mac and Linux.
+    </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://code.google.com/p/ibus/</url>
+  <url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
+  <url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
+  <update_contact><!-- upstream-contact_at_email.com --></update_contact>
+</component>
+EOF
 
 %post -n ibus-mozc
 [ -x %{_bindir}/ibus ] && %{_bindir}/ibus write-cache --system >& /dev/null || :
@@ -206,6 +238,7 @@ xemacs -batch -f batch-byte-compile $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}
 %dir %{_datadir}/ibus-mozc
 %{_libexecdir}/ibus-engine-mozc
 %{_libexecdir}/mozc/mozc_renderer
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/ibus-setup-mozc-jp.desktop
 %{_datadir}/ibus/component/mozc.xml
 %{_datadir}/ibus-mozc/*.png
@@ -230,6 +263,9 @@ xemacs -batch -f batch-byte-compile $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}
 %{_xemacs_sitelispdir}/%{pkg}/*.el
 
 %changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.15.1814.102-4
+- Register as an AppStream component.
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.15.1814.102-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/mozc.git/commit/?h=master&id=44cd24e3eaf46466e6074dd818f94e337a747f83


More information about the scm-commits mailing list