rhughes pushed to ibus-chewing (master). "Register as an AppStream component"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 09:43:56 UTC 2015
>From b0c3687e294e9eed2806e619e3c1ec67b1c004a4 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Wed, 25 Mar 2015 22:39:31 +0000
Subject: Register as an AppStream component
diff --git a/ibus-chewing.spec b/ibus-chewing.spec
index 72641df..04f161b 100644
--- a/ibus-chewing.spec
+++ b/ibus-chewing.spec
@@ -1,6 +1,6 @@
Name: ibus-chewing
Version: 1.4.14
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The Chewing engine for IBus input platform
Summary(zh_TW): IBus新酷音輸入法
License: GPLv2+
@@ -62,6 +62,41 @@ make install DESTDIR=%{buildroot}
# We install document using doc
rm -fr %{buildroot}%{_docdir}/*
+# 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/chewing.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>chewing.xml</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Chewing</name>
+ <summary>Traditional Chinese input method</summary>
+ <description>
+ <p>
+ The Chewing input method is designed for entering Traditional Chinese text.
+ Chewing helps you inputting Traditional Chinese by its pronunciation, in the
+ form of either Bopomofo/Zhuyin or Hanyu pinyin, as well as Chinese punctuation
+ marks and normal and full shape number and English 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>
+ </description>
+ <url type="homepage">https://code.google.com/p/ibus/wiki/ChewingUserGuide</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}
@@ -84,6 +119,7 @@ fi
%{_datadir}/%{name}/icons/%{name}-orig.png
%{_datadir}/%{name}/icons/%{name}.png
%{_datadir}/%{name}/icons/ibus-setup-chewing.png
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/ibus-setup-chewing.desktop
%{_datadir}/glib-2.0/schemas/org.freedesktop.IBus.Chewing.gschema.xml
%{_datadir}/ibus/component/chewing.xml
@@ -91,6 +127,9 @@ fi
%{_libexecdir}/ibus-setup-chewing
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.4.14-3
+- Register as an AppStream component.
+
* Tue Dec 16 2014 Ding-Yi Chen <dchen at redhat.com> - 1.4.14-2
- Version bump
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-chewing.git/commit/?h=master&id=b0c3687e294e9eed2806e619e3c1ec67b1c004a4
More information about the scm-commits
mailing list