rhughes pushed to ibus-kkc (master). "Register as an AppStream component"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 09:44:04 UTC 2015
>From 269c78abaf73c12e5b44e347b5146185e2cb8ff4 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 09:05:22 +0000
Subject: Register as an AppStream component
diff --git a/ibus-kkc.spec b/ibus-kkc.spec
index 5617945..2b15d19 100644
--- a/ibus-kkc.spec
+++ b/ibus-kkc.spec
@@ -1,6 +1,6 @@
Name: ibus-kkc
Version: 1.5.22
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Japanese Kana Kanji input method for ibus
Group: System Environment/Libraries
@@ -38,6 +38,44 @@ make %{?_smp_mflags}
%install
%make_install 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/kkc.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>kkc.xml</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Kana Kanji</name>
+ <summary>Japanese input method</summary>
+ <description>
+ <p>
+ The Kana Kanji input method is designed for entering Japanese text.
+ It uses the Kana Kanji conversion library as backend, whose algorithm is based
+ on 3-gram statistical language model generated from Wikipedia data.
+ </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://bitbucket.org/libkkc/libkkc/</url>
+ <compulsory_for_desktop>GNOME</compulsory_for_desktop>
+ <project_group>GNOME</project_group>
+ <developer_name>The GNOME Project</developer_name>
+ <url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
+ <url type="donation">http://www.gnome.org/friends/</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-kkc.desktop
%find_lang %{name}
@@ -54,6 +92,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-kkc.deskt
%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/ibus-kkc
%{_libexecdir}/ibus-*-kkc
%{_datadir}/ibus/component/kkc.xml
@@ -61,6 +100,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-kkc.deskt
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.5.22-2
+- Register as an AppStream component.
+
* Fri Dec 19 2014 Daiki Ueno <dueno at redhat.com> - 1.5.22-1
- new upstream release
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-kkc.git/commit/?h=master&id=269c78abaf73c12e5b44e347b5146185e2cb8ff4
More information about the scm-commits
mailing list