rhughes pushed to ibus-sayura (master). "Register as an AppStream component"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 09:44:29 UTC 2015
>From 378f80fd010c4702eb4bbf3d1b1ed9f1fd343e85 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 09:17:23 +0000
Subject: Register as an AppStream component
diff --git a/ibus-sayura.spec b/ibus-sayura.spec
index c767342..ca15102 100644
--- a/ibus-sayura.spec
+++ b/ibus-sayura.spec
@@ -1,6 +1,6 @@
Name: ibus-sayura
Version: 1.3.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: The Sinhala engine for IBus input platform
License: GPLv2+
Group: System Environment/Libraries
@@ -26,16 +26,52 @@ 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/sayura.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="inputmethod">
+ <id>sayura.xml</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Sayura</name>
+ <summary>Sihali input method</summary>
+ <description>
+ <p>
+ The Sayura input method is designed for entering Sinhala 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">https://fedorahosted.org/ibus-sayura/</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}
%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_libexecdir}/ibus-engine-sayura
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/ibus-sayura
%{_datadir}/ibus/component/*
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.3.2-5
+- Register as an AppStream component.
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ibus-sayura.git/commit/?h=master&id=378f80fd010c4702eb4bbf3d1b1ed9f1fd343e85
More information about the scm-commits
mailing list