[gargi-fonts] Added metainfo for gnome-software

Pravin Satpute pravins at fedoraproject.org
Thu Nov 6 05:41:32 UTC 2014


commit 012db4e84cb0b653361b4b23af360c28bf6468de
Author: Pravin Satpute <psatpute at redhat.com>
Date:   Thu Nov 6 11:11:09 2014 +0530

     Added metainfo for gnome-software

 gargi-fonts.spec   |   16 ++++++++++------
 gargi.metainfo.xml |   14 ++++++++++++++
 2 files changed, 24 insertions(+), 6 deletions(-)
---
diff --git a/gargi-fonts.spec b/gargi-fonts.spec
index 77505e6..e9b7bdf 100644
--- a/gargi-fonts.spec
+++ b/gargi-fonts.spec
@@ -3,7 +3,7 @@
 
 Name:           %{fontname}-fonts
 Version:        1.9
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        A Devanagari font
 
 Group:          User Interface/X
@@ -11,7 +11,7 @@ License:        GPLv2+
 URL:            http://savannah.nongnu.org/projects/gargi
 Source0:        http://mirror.vocabbuilder.net/savannah/gargi/%{fontname}-%{version}.tar.gz
 Source1:        %{name}-fontconfig.conf
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source2:       %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel fontforge
@@ -56,16 +56,20 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
-
-%clean
-rm -fr %{buildroot}
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+       %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %_font_pkg -f %{fontconf} *.ttf
 
 %doc Changelog COPYING
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Thu Nov 06 2014 Pravin Satpute <psatpute at redhat.com> - 1.9-11
+- Added metainfo for gnome-software
+- Removed buildroot and clean section
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.9-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/gargi.metainfo.xml b/gargi.metainfo.xml
new file mode 100644
index 0000000..129ab20
--- /dev/null
+++ b/gargi.metainfo.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>gargi</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <name>Gargi</name>
+  <summary>A Devanagari script font</summary>
+  <description>
+    <p>
+      This package provides a Free Unicode OpenType Font.
+    </p>
+  </description>
+  <updatecontact>psatpute_at_redhat_dot_com</updatecontact>
+  <url type="homepage">http://savannah.nongnu.org/projects/gargi/</url>
+</component>


More information about the fonts-bugs mailing list