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

Richard Hughes rhughes at fedoraproject.org
Thu Oct 16 09:01:39 UTC 2014


commit 72ff3099f733949f9526221b47a63eff9b9b969d
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 10:01:15 2014 +0100

    Add a MetaInfo file for the software center

 oflb-brett-fonts.spec   |   10 +++++++++-
 oflb-brett.metainfo.xml |    8 ++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/oflb-brett-fonts.spec b/oflb-brett-fonts.spec
index b19b848..2d5f608 100644
--- a/oflb-brett-fonts.spec
+++ b/oflb-brett-fonts.spec
@@ -3,7 +3,7 @@
 
 Name:           %{fontname}-fonts
 Version:        20080506
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        A handwriting font
 
 Group:          User Interface/X
@@ -15,6 +15,7 @@ Source0:        BrettFont1.1.ttf
 Source1:        %{name}-fontconfig.conf
 #license text extracted from font file
 Source2:        License.txt
+Source3:        %{fontname}.metainfo.xml
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
 Requires:       fontpackages-filesystem
@@ -43,11 +44,18 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %_font_pkg -f %{fontconf} *.ttf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc License.txt
 
 %changelog
+* Thu Oct 16 2014 Richard Hughes <richard at hughsie.com> - 20080506-14
+- 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> - 20080506-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/oflb-brett.metainfo.xml b/oflb-brett.metainfo.xml
new file mode 100644
index 0000000..710c702
--- /dev/null
+++ b/oflb-brett.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>oflb-brett</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Brett</name>
+  <summary>A handwriting font</summary>
+</component>


More information about the fonts-bugs mailing list