[lato-fonts] Add a MetaInfo file for the software center

Richard Hughes rhughes at fedoraproject.org
Wed Oct 15 16:03:11 UTC 2014


commit 315f126a72715fcf1a18f4c125ad4395e1ef5249
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Oct 15 17:02:55 2014 +0100

    Add a MetaInfo file for the software center

 lato-fonts.spec |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/lato-fonts.spec b/lato-fonts.spec
index 0eb3837..ddffbf6 100644
--- a/lato-fonts.spec
+++ b/lato-fonts.spec
@@ -3,7 +3,7 @@
 
 Name:           %{fontname}-fonts
 Version:        2.010
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A sanserif typeface family
 
 Group:          User Interface/X
@@ -64,12 +64,36 @@ install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_f
 install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
 ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
 
+# Add AppStream metadata
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/Lato.metainfo.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+  <id>Lato</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Lato</name>
+  <summary>A classical sans-serif font family</summary>
+  <description>
+    <p>
+      The semi-rounded details of the letters give Lato a feeling of warmth,
+      while the strong structure provides stability and seriousness.
+    </p>
+  </description>
+  <updatecontact>richard_at_hughsie_dot_com</updatecontact>
+  <url type="homepage">http://www.latofonts.com/</url>
+</component>
+EOF
 
 %_font_pkg -f %{fontconf} *.ttf
 %doc Lato2OFL/{OFL.txt,README.txt}
+%{_datadir}/appdata/Lato.metainfo.xml
 
 
 %changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 2.010-2
+- Add a MetaInfo file for the software center; this is a font we want to show.
+
 * Thu Sep 04 2014 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.010-1
 - Update to 2.010
 


More information about the fonts-bugs mailing list