rhughes pushed to ibus-table-others (master). "Register as AppStream components"

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


>From 237a4b59db8455d42bfb23c7b055f3137d020567 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 08:51:14 +0000
Subject: Register as AppStream components


diff --git a/ibus-table-others.spec b/ibus-table-others.spec
index 8a9247b..11ed20e 100644
--- a/ibus-table-others.spec
+++ b/ibus-table-others.spec
@@ -2,7 +2,7 @@
 
 Name:       ibus-table-others
 Version:    1.3.7
-Release:    1%{?dist}
+Release:    2%{?dist}
 Summary:    Various tables for IBus-Table
 License:    GPLv3
 Group:      System Environment/Libraries
@@ -85,10 +85,105 @@ cd ${RPM_BUILD_ROOT}/%{_datadir}/ibus-table/tables/
 %{_bindir}/ibus-table-createdb -i -n yawerty.db
 %{_bindir}/ibus-table-createdb -i -n mathwriter-ibus.db
 
+# Register as AppStream components to be visible in the software center
+#
+# NOTE: It would be *awesome* if these files were 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/emoji-table.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>emoji-table.db</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Emoji</name>
+  <summary>Emoji input method</summary>
+  <description>
+    <p>
+      Emoji is an input method that allows the user to enter pictographs that are used
+      like emoticons.
+      Some emoji strings are specific to Japanese culture.
+    </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-table-emoji/</url>
+  <screenshots>
+    <!-- FIXME: Needs an official up to date screenshot -->
+    <screenshot type="default">
+      <image>http://ibus-table-emoji.googlecode.com/hg/screenshot.png</image>
+      <caption><!-- Describe this screenshot in less than ~10 words --></caption>
+    </screenshot>
+  </screenshots>  <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
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/ipa-x-sampa.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>ipa-x-sampa.db</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>International Phonetic Alphabet</name>
+  <summary>IPA X-SAMPA input method</summary>
+  <description>
+    <p>
+      International Phonetic Alphabet X-SAMPA is an input method.
+      The Extended Speech Assessment Methods Phonetic Alphabet is a type of SAMPA
+      developed by John C. Wells.
+      It was designed to unify the individual SAMPA alphabets.
+    </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>
+    <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/mike-fabian/ibus-table-others</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
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/mathwriter-ibus.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>mathwriter-ibus.db</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Mathwriter</name>
+  <summary>Math symbols input method</summary>
+  <description>
+    <p>
+      The input method is designed for entering mathematical symbols.
+    </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/mike-fabian/ibus-table-others</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
+
 %files
 %doc AUTHORS COPYING README
 
 %files -n ibus-table-code
+%{_datadir}/appdata/emoji-table.appdata.xml
 %{_datadir}/ibus-table/tables/latex.db
 %{_datadir}/ibus-table/tables/cns11643.db
 %{_datadir}/ibus-table/tables/emoji-table.db
@@ -105,6 +200,7 @@ cd ${RPM_BUILD_ROOT}/%{_datadir}/ibus-table/tables/
 %{_datadir}/ibus-table/icons/yawerty.png
 
 %files -n ibus-table-latin
+%{_datadir}/appdata/ipa-x-sampa.appdata.xml
 %{_datadir}/ibus-table/tables/compose.db
 %{_datadir}/ibus-table/tables/ipa-x-sampa.db
 %{_datadir}/ibus-table/icons/compose.svg
@@ -123,10 +219,14 @@ cd ${RPM_BUILD_ROOT}/%{_datadir}/ibus-table/tables/
 %{_datadir}/ibus-table/icons/viqr.png
 
 %files -n ibus-table-mathwriter
+%{_datadir}/appdata/mathwriter-ibus.appdata.xml
 %{_datadir}/ibus-table/tables/mathwriter-ibus.db
 %{_datadir}/ibus-table/icons/mathwriter.png
 
 %changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.3.7-2
+- Register as AppStream components.
+
 * Tue Jan 13 2015 Mike FABIAN <mfabian at redhat.com> - 1.3.7-1
 - update to latest upstream 1.3.7
 - Use F1,F2,F3,F4,F5,F6,F7,F8,F9 as select keys for the latex table
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ibus-table-others.git/commit/?h=master&id=237a4b59db8455d42bfb23c7b055f3137d020567


More information about the scm-commits mailing list