[lohit-assamese-fonts/f21] Added metainfo for gnome-software

Pravin Satpute pravins at fedoraproject.org
Fri Oct 17 09:09:05 UTC 2014


commit c57907ed036e2a06e2c2df282dd97e0d454c2e70
Author: Pravin Satpute <psatpute at redhat.com>
Date:   Fri Oct 17 14:38:56 2014 +0530

    Added metainfo for gnome-software

 lohit-assamese-fonts.spec   |   11 ++++++++++-
 lohit-assamese.metainfo.xml |   14 ++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/lohit-assamese-fonts.spec b/lohit-assamese-fonts.spec
index a7a3931..6262e11 100644
--- a/lohit-assamese-fonts.spec
+++ b/lohit-assamese-fonts.spec
@@ -3,13 +3,14 @@
 
 Name:           %{fontname}-fonts
 Version:        2.91.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Free Assamese 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
@@ -40,12 +41,20 @@ 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 test-assamese.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Fri Oct 17 2014 Pravin Satpute <psatpute at redhat.com> - 2.91.0-2
+- Added metainfo for gnome-software
+
 * Mon Oct 13 2014 Pravin Satpute <psatpute at redhat.com> - 2.91.0-1
 - Upstream release 2.91.0
 - Rewritten all GSUB rules.
diff --git a/lohit-assamese.metainfo.xml b/lohit-assamese.metainfo.xml
new file mode 100644
index 0000000..da5bfd0
--- /dev/null
+++ b/lohit-assamese.metainfo.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>lohit-assamese</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 Assamese 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