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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 09:43:48 UTC 2015


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


diff --git a/ibus-bogo.spec b/ibus-bogo.spec
index 8863a28..a259050 100644
--- a/ibus-bogo.spec
+++ b/ibus-bogo.spec
@@ -4,7 +4,7 @@ Name:		ibus-bogo
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
 
 Version:	0.4
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	Vietnamese engine for IBus input platform
 
 Group:		User Interface/X
@@ -57,6 +57,37 @@ desktop-file-install \
 --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
 ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-bogo.desktop
 
+# 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/bogo.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+  <id>bogo.xml</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>BoGo</name>
+  <summary>Vietnamese input method</summary>
+  <description>
+    <p>
+      The BoGo input method is designed for entering Vietnamese 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://github.com/BoGoEngine/ibus-bogo-python</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
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -73,6 +104,7 @@ fi
 
 %files
 %doc README.md AUTHORS COPYING
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/ibus-setup-bogo.desktop
 %{_datadir}/ibus/component/bogo.xml
 %{_datadir}/%{name}/
@@ -89,6 +121,9 @@ fi
 
 
 %changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 0.4-5
+- Register as an AppStream component.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ibus-bogo.git/commit/?h=master&id=acf2d976a70fcdcf1628ec6024b97d515745562c


More information about the scm-commits mailing list