rhughes pushed to ibus-handwrite (master). "Register as AppStream components"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 09:44:02 UTC 2015
>From d196616cecf87c0a49bdb08fa61c15c320d1c11a Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 08:55:14 +0000
Subject: Register as AppStream components
diff --git a/ibus-handwrite.spec b/ibus-handwrite.spec
index 30ed6fe..81b383b 100644
--- a/ibus-handwrite.spec
+++ b/ibus-handwrite.spec
@@ -1,6 +1,6 @@
Name: ibus-handwrite
Version: 3.0.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: IBus handwrite project
License: GPLv2+
Group: System Environment/Libraries
@@ -53,6 +53,61 @@ make %{?_smp_mflags}
%install
make DESTDIR=${RPM_BUILD_ROOT} install
+# 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/handwrite-jp.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>handwrite-jp.xml</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Japanese Handwriting</name>
+ <summary>Japanese handwriting input method</summary>
+ <description>
+ <p>
+ The handwriting 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-handwrite/</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/handwrite-zh.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>handwrite-zh.xml</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Simplified Chinese Handwriting</name>
+ <summary>Simplified Chinese handwriting input method</summary>
+ <description>
+ <p>
+ The handwriting 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-handwrite/</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}
%clean
@@ -65,12 +120,17 @@ rm -rf $RPM_BUILD_ROOT
%{_libexecdir}/ibus-engine-handwrite
%files ja
+%{_datadir}/appdata/handwrite-jp.appdata.xml
%{_datadir}/ibus/component/handwrite-jp.xml
%files zh_CN
+%{_datadir}/appdata/handwrite-zh.appdata.xml
%{_datadir}/ibus/component/handwrite-zh.xml
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 3.0.0-2
+- Register as AppStream components.
+
* Thu Aug 21 2014 Peng Wu <pwu at redhat.com> - 3.0.0-1
- Update to 3.0.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-handwrite.git/commit/?h=master&id=d196616cecf87c0a49bdb08fa61c15c320d1c11a
More information about the scm-commits
mailing list