rhughes pushed to ibus-input-pad (master). "Register as an AppStream component"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 09:47:06 UTC 2015
>From 7db1ba30ba4453e3bff8cd125c10e7a2dfab9c1c Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 09:46:08 +0000
Subject: Register as an AppStream component
diff --git a/ibus-input-pad.spec b/ibus-input-pad.spec
index d1d8c4a..cf4edd5 100644
--- a/ibus-input-pad.spec
+++ b/ibus-input-pad.spec
@@ -3,7 +3,7 @@
Name: ibus-input-pad
Version: 1.4.99.20140916
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Input Pad for IBus
License: GPLv2+
Group: System Environment/Libraries
@@ -37,6 +37,38 @@ 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/input-pad.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>input-pad.xml</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Input Pad</name>
+ <summary>Input Pad input method</summary>
+ <description>
+ <p>
+ The Input Pad input method is designed for entering special symbols.
+ </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
+
%find_lang %{name}
%check
@@ -55,10 +87,14 @@ desktop-file-validate \
%doc AUTHORS COPYING README
%{_libexecdir}/ibus-engine-input-pad
%{_libexecdir}/ibus-setup-input-pad
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/ibus-setup-input-pad.desktop
%{_datadir}/ibus/component/*
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.4.99.20140916-2
+- Register as an AppStream component.
+
* Tue Sep 16 2014 Takao Fujiwara <tfujiwar at redhat.com> - 1.4.99.20140916-1
- Bumped to 1.4.99.20140916
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-input-pad.git/commit/?h=master&id=7db1ba30ba4453e3bff8cd125c10e7a2dfab9c1c
More information about the scm-commits
mailing list