rhughes pushed to ibus-table-chinese (master). "Register as an AppStream component"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 09:44:39 UTC 2015
>From 5a16322f2f610bc067c47d968add5d3c33e800d2 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 09:21:43 +0000
Subject: Register as an AppStream component
diff --git a/ibus-table-chinese.spec b/ibus-table-chinese.spec
index 1a3d841..522bc3d 100644
--- a/ibus-table-chinese.spec
+++ b/ibus-table-chinese.spec
@@ -4,7 +4,7 @@
%global createdb ibus-table-createdb
Name: ibus-table-chinese
Version: 1.8.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Chinese input tables for IBus
Summary(zh_CN): 中文码表输入法
Summary(zh_TW): 中文碼表輸入法
@@ -322,6 +322,86 @@ YongMa input method.
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
+# 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/stroke5.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>stroke5.db</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Stroke 5</name>
+ <summary>Chinese input method</summary>
+ <description>
+ <p>
+ Stroke 5 is a very simple stroke-based Chinese input method.
+ It was designed specifically for people with limited hand mobility or computer
+ literacy, like the elderly or disabled.
+ </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
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-haifeng86.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>wubi-haifeng86.db</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>HaiFeng Wubi 86</name>
+ <summary>Simplified Chinese input method</summary>
+ <description>
+ <p>
+ The HaiFeng Wubi 86 input method is designed for entering Simplified Chinese 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
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/wubi-jidian86.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>wubi-jidian86.db</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Jidian Wubi 86</name>
+ <summary>Simplified Chinese input method</summary>
+ <description>
+ <p>
+ The Jidian Wubi 86 input method is designed for entering Simplified Chinese 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
+
# We install document using doc
rm -fr %{buildroot}%{_docdir}/*
@@ -419,6 +499,7 @@ rm -fr %{buildroot}%{_docdir}/*
%verify(not size md5 mtime) %{ibus_tables_dir}/scj6.db
%files stroke5
+%{_datadir}/appdata/stroke5.appdata.xml
%{ibus_icons_dir}/stroke5.*
%verify(not size md5 mtime) %{ibus_tables_dir}/stroke5.db
@@ -427,11 +508,13 @@ rm -fr %{buildroot}%{_docdir}/*
%verify(not size md5 mtime) %{ibus_tables_dir}/wu.db
%files wubi-haifeng
+%{_datadir}/appdata/wubi-haifeng86.appdata.xml
%doc tables/wubi-haifeng/COPYING tables/wubi-haifeng/README
%{ibus_icons_dir}/wubi-haifeng86.*
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-haifeng86.db
%files wubi-jidian
+%{_datadir}/appdata/wubi-jidian86.appdata.xml
%{ibus_icons_dir}/wubi-jidian86.*
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-jidian86.db
@@ -440,6 +523,9 @@ rm -fr %{buildroot}%{_docdir}/*
%{ibus_tables_dir}/yong.db
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.8.2-2
+- Register as AppStream components.
+
* Tue Jun 10 2014 Ding-Yi Chen <dchen at redhat.com> - 1.8.2-1
- Built for ibus-table-1.8.1
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-table-chinese.git/commit/?h=master&id=5a16322f2f610bc067c47d968add5d3c33e800d2
More information about the scm-commits
mailing list