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

Richard Hughes rhughes at fedoraproject.org
Thu Oct 16 18:33:07 UTC 2014


commit 3ab0f41bfef3cff2d7a06e2bf1cfc6cdbfa18662
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 19:32:25 2014 +0100

    Add a MetaInfo file for the software center

 oflb-brett-fonts.spec   |   10 +++++++++-
 oflb-brett.metainfo.xml |    3 +--
 2 files changed, 10 insertions(+), 3 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
index aa5ad96..2706c2e 100644
--- a/oflb-brett.metainfo.xml
+++ b/oflb-brett.metainfo.xml
@@ -3,7 +3,7 @@
 <component type="font">
   <id>oflb-brett</id>
   <metadata_license>CC-BY-3.0</metadata_license>
-  <name>BrettFont</name>
+  <name>Brett</name>
   <summary>A handwriting font</summary>
   <description>
     <p>
@@ -13,4 +13,3 @@
   <updatecontact>pnemade_at_redhat_dot_com</updatecontact>
   <url type="homepage">http://openfontlibrary.org/media/files/brettalton/205</url>
 </component>
-


More information about the fonts-bugs mailing list