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

Pravin Satpute pravins at fedoraproject.org
Mon Oct 27 18:42:10 UTC 2014


commit bc475f76fd0fd98bb5282e6c0c5f1d1fcfc60ba9
Author: Pravin Satpute <psatpute at redhat.com>
Date:   Tue Oct 28 00:12:05 2014 +0530

    Added metainfo for gnome-software

 lohit-odia-fonts.spec   |   15 +++++++++++----
 lohit-odia.metainfo.xml |   14 ++++++++++++++
 2 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/lohit-odia-fonts.spec b/lohit-odia-fonts.spec
index 8931b27..d83ba2a 100644
--- a/lohit-odia-fonts.spec
+++ b/lohit-odia-fonts.spec
@@ -4,13 +4,14 @@
 
 Name:           %{fontname}-fonts
 Version:        2.5.5
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Free truetype font for Odia language
 
 License:        OFL
 URL:            https://fedorahosted.org/lohit/
 Source0:        https://fedorahosted.org/releases/l/o/lohit/%{fontname}-%{version}.tar.gz
 Source1:        %{name}.conf
+Source2:       %{fontname}.metainfo.xml
 BuildArch:      noarch
 BuildRequires:  fontforge >= 20080429
 BuildRequires:  fontpackages-devel
@@ -18,12 +19,9 @@ Requires:       fontpackages-filesystem
 Provides:       lohit-oriya-fonts = %{version}-%{release}
 Obsoletes:      lohit-oriya-fonts < 2.5.4.1-4
 
-
-
 %description
 This package provides a free truetype font for Odia language.
 
-
 %prep
 %setup -q -n %{fontname}-%{version} 
 # To make it default font for 'or' language.
@@ -51,12 +49,21 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf1} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf1}
 
+
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+       %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
 %_font_pkg -f *.conf *.ttf
 
 %doc ChangeLog COPYRIGHT OFL.txt AUTHORS README
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 
 %changelog
+* Tue Oct 28 2014 Pravin Satpute <psatpute at redhat.com> - 2.5.5-5
+- Added metainfo for gnome-software
+
 * Fri Sep 05 2014 Pravin Satpute <psatpute at redhat.com> - 2.5.5-4
 - Updated obsoletes version. rhbz#1138260
 
diff --git a/lohit-odia.metainfo.xml b/lohit-odia.metainfo.xml
new file mode 100644
index 0000000..12143e0
--- /dev/null
+++ b/lohit-odia.metainfo.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>lohit-odia</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 Odia 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