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

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Mar 25 22:15:15 UTC 2015


>From 3c93219df65050a4cb39e28dc4d6c6892f1dbd5d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Wed, 25 Mar 2015 22:14:52 +0000
Subject: Register as an AppStream component


diff --git a/ibus-anthy.spec b/ibus-anthy.spec
index f363e60..4b67275 100644
--- a/ibus-anthy.spec
+++ b/ibus-anthy.spec
@@ -22,7 +22,7 @@
 
 Name:           ibus-anthy
 Version:        1.5.6
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        The Anthy engine for IBus input platform
 License:        GPLv2+
 Group:          System Environment/Libraries
@@ -129,6 +129,32 @@ make %{?_smp_mflags}
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
 rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la
 
+# register as an AppStream component
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/anthy.metainfo.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>anthy.xml</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Anthy</name>
+  <summary>Japanese input method</summary>
+  <description>
+    <p>
+      The Anthy input method is designed for entering Japanese 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>
+  <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
+
 %find_lang %{name}
 
 %check
@@ -167,6 +193,7 @@ touch --no-create %{_datadir}/icons/hicolor || :
 %{_datadir}/ibus-anthy
 %{_datadir}/ibus/component/*
 %endif
+%{_datadir}/appdata/*.metainfo.xml
 %{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg 
 
 %if %with_python_pkg
@@ -184,6 +211,9 @@ touch --no-create %{_datadir}/icons/hicolor || :
 %{_libdir}/libanthygobject-%{sub_version}.so
 
 %changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.5.6-3
+- Register as an AppStream component.
+
 * Thu Nov 13 2014 Takao Fujiwara <tfujiwar at redhat.com> - 1.5.6-2
 - Updated ibus-anthy-HEAD.patch to fix Enter key on setup dialog.
 - Use python2 for epel7.
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ibus-anthy.git/commit/?h=master&id=3c93219df65050a4cb39e28dc4d6c6892f1dbd5d


More information about the scm-commits mailing list