[ns-bola-fonts/f21] Add a MetaInfo file for the software center

Richard Hughes rhughes at fedoraproject.org
Fri Oct 17 16:12:30 UTC 2014


commit f1da285b4e829e6a2a129288e27c398354f420ac
Author: Richard Hughes <richard at hughsie.com>
Date:   Fri Oct 17 16:58:50 2014 +0100

    Add a MetaInfo file for the software center

 ns-bola-fonts.spec   |   10 +++++++++-
 ns-bola.metainfo.xml |    8 ++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/ns-bola-fonts.spec b/ns-bola-fonts.spec
index 1db0746..2aef243 100644
--- a/ns-bola-fonts.spec
+++ b/ns-bola-fonts.spec
@@ -4,7 +4,7 @@
 
 Name:           %{fontname}-fonts
 Version:        20080203
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Chunky Geometric Fonts
 
 Group:          User Interface/X
@@ -12,6 +12,7 @@ License:        OFL
 URL:            http://www.nuevostudio.com/project/bola/
 Source0:        http://www.nuevostudio.com/files/downloads/bola.zip
 Source1:        %{name}-fontconfig.conf
+Source2:        %{fontname}.metainfo.xml
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:      noarch
@@ -53,17 +54,24 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %clean
 rm -fr %{buildroot}
 
 
 %_font_pkg -f %{fontconf} *.ttf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %doc
 
 
 %changelog
+* Fri Oct 17 2014 Richard Hughes <richard at hughsie.com> - 20080203-9
+- Add a MetaInfo file for the software center; this is a font we want to show.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20080203-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/ns-bola.metainfo.xml b/ns-bola.metainfo.xml
new file mode 100644
index 0000000..9d38c92
--- /dev/null
+++ b/ns-bola.metainfo.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+  <id>ns-bola</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <name>Bola</name>
+  <summary>Chunky geometric fonts</summary>
+</component>


More information about the fonts-bugs mailing list