[lohit-kannada-fonts] Added metainfo for gnome-software

Pravin Satpute pravins at fedoraproject.org
Mon Oct 27 17:15:44 UTC 2014


commit 6ba069ee67bc8ff15ce0b014f385b227a97ff2cd
Author: Pravin Satpute <psatpute at redhat.com>
Date:   Mon Oct 27 22:45:43 2014 +0530

    Added metainfo for gnome-software

 lohit-kannada-fonts.spec   |   11 ++++++++++-
 lohit-kannada.metainfo.xml |   14 ++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/lohit-kannada-fonts.spec b/lohit-kannada-fonts.spec
index a24f88d..f353f80 100644
--- a/lohit-kannada-fonts.spec
+++ b/lohit-kannada-fonts.spec
@@ -3,13 +3,14 @@
 
 Name:           %{fontname}-fonts
 Version:        2.5.3
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Free Kannada font
 
 Group:          User Interface/X
 License:        OFL
 URL:            https://fedorahosted.org/lohit/
 Source0:        https://fedorahosted.org/releases/l/o/lohit/%{fontname}-%{version}.tar.gz
+Source1:       %{fontname}.metainfo.xml
 BuildArch:      noarch
 BuildRequires: fontforge >= 20080429
 BuildRequires:  fontpackages-devel
@@ -44,13 +45,21 @@ install -m 0644 -p %{fontconf} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE1} \
+       %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
 
 %_font_pkg -f %{fontconf} *.ttf
 
 %doc ChangeLog COPYRIGHT OFL.txt AUTHORS README ChangeLog.old
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 
 %changelog
+* Mon Oct 20 2014 Pravin Satpute <psatpute at redhat.com> - 2.5.3-6
+- Added metainfo for gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.5.3-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/lohit-kannada.metainfo.xml b/lohit-kannada.metainfo.xml
new file mode 100644
index 0000000..83d8bb3
--- /dev/null
+++ b/lohit-kannada.metainfo.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>lohit-kannada</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <name>Lohit</name>
+  <summary>A set of Indian language fonts</summary>
+  <description>
+    <p>
+      This package provides a free Kannada truetype/opentype font.
+    </p>
+  </description>
+  <updatecontact>psatpute_at_redhat_dot_com</updatecontact>
+  <url type="homepage">https://fedorahosted.org/lohit/</url>
+</component>


More information about the fonts-bugs mailing list