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

Richard Hughes rhughes at fedoraproject.org
Wed Oct 15 21:04:22 UTC 2014


commit 80640ebddf6583f9971933582af0fc8d807116e8
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Oct 15 22:03:14 2014 +0100

    Add a MetaInfo file for the software center

 oflb-smonohand-fonts.spec   |   10 +++++++++-
 oflb-smonohand.metainfo.xml |    8 ++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/oflb-smonohand-fonts.spec b/oflb-smonohand-fonts.spec
index 89832ce..5a91b1e 100644
--- a/oflb-smonohand-fonts.spec
+++ b/oflb-smonohand-fonts.spec
@@ -3,7 +3,7 @@
 
 Name:           %{fontname}-fonts
 Version:        20090423
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        A handwritten monospace font
 
 Group:          User Interface/X
@@ -11,6 +11,7 @@ License:        OFL
 URL:            http://openfontlibrary.org/media/files/dalles/403
 Source0:        http://openfontlibrary.org/people/dalles/dalles_-_SMonohand.ttf
 Source1:        %{name}-fontconfig.conf
+Source2:        %{fontname}.metainfo.xml
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:      noarch
@@ -42,16 +43,23 @@ 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 -rf $RPM_BUILD_ROOT
 
 %_font_pkg -f %{fontconf} *.ttf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 #doc
 
 
 %changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 20090423-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> - 20090423-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/oflb-smonohand.metainfo.xml b/oflb-smonohand.metainfo.xml
new file mode 100644
index 0000000..4602c87
--- /dev/null
+++ b/oflb-smonohand.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-smonohand</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>SMonohand</name>
+  <summary>A handwritten monospace font</summary>
+</component>


More information about the fonts-bugs mailing list