rhughes pushed to ibus-skk (master). "Register as an AppStream component"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 09:44:31 UTC 2015
>From 123ede30e85bc03fd94f07868123ba871c5b6a09 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 09:19:10 +0000
Subject: Register as an AppStream component
diff --git a/ibus-skk.spec b/ibus-skk.spec
index 9e4dd28..32d824a 100644
--- a/ibus-skk.spec
+++ b/ibus-skk.spec
@@ -1,6 +1,6 @@
Name: ibus-skk
Version: 1.4.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Japanese SKK input method for ibus
Group: System Environment/Libraries
@@ -33,6 +33,46 @@ make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+# 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/skk.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>skk.xml</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Simple Kana-Kanji</name>
+ <summary>Japanese input method</summary>
+ <description>
+ <p>
+ The SKK input method is designed for entering Japanese text.
+ The input method was originally invented by Masahiko Sato in 1987 and it is
+ quite different from other Japanese input methods in the way it handles input.
+ </p>
+ <p>
+ While other Japanese input methods treat input as a sentence, SKK treats it as a
+ word and leaves control of sentence construction to users.
+ Though it is not what normal users expect, advanced users can input Japanese
+ with SKK more efficiently.
+ </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/ueno/ibus-skk/</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
+
desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-skk.desktop
%find_lang %{name}
@@ -49,6 +89,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-skk.deskt
%files -f %{name}.lang
%doc AUTHORS COPYING README ChangeLog
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/ibus-skk
%{_libexecdir}/ibus-*-skk
%{_datadir}/ibus/component/skk.xml
@@ -56,6 +97,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-skk.deskt
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.4.2-2
+- Register as an AppStream component.
+
* Tue Nov 25 2014 Daiki Ueno <dueno at redhat.com> - 1.4.2-1
- new upstream release
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-skk.git/commit/?h=master&id=123ede30e85bc03fd94f07868123ba871c5b6a09
More information about the scm-commits
mailing list