[adf-tribun-fonts/f21] Add a MetaInfo file for the software center

Richard Hughes rhughes at fedoraproject.org
Fri Oct 17 13:04:53 UTC 2014


commit 2a484ec6e2d6b75d42ae0d376ff52766f09833b8
Author: Richard Hughes <richard at hughsie.com>
Date:   Fri Oct 17 13:40:44 2014 +0100

    Add a MetaInfo file for the software center

 adf-tribun-fonts.spec   |   10 +++++++++-
 adf-tribun.metainfo.xml |    8 ++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/adf-tribun-fonts.spec b/adf-tribun-fonts.spec
index ce50533..ad596c4 100644
--- a/adf-tribun-fonts.spec
+++ b/adf-tribun-fonts.spec
@@ -5,7 +5,7 @@
 
 Name:    %{fontname}-fonts
 Version: 1.13
-Release: 8%{?dist}
+Release: 9%{?dist}
 Summary: A newsprint-like serif typeface
 
 Group:     User Interface/X
@@ -13,6 +13,7 @@ License:   GPLv2+ with exceptions
 URL:       http://arkandis.tuxfamily.org/adffonts.html
 Source0:   http://arkandis.tuxfamily.org/fonts/%{archivename}.zip
 Source1:   http://arkandis.tuxfamily.org/docs/Tribun-Cat.pdf
+Source2:   %{fontname}.metainfo.xml
 Source11:  %{name}-fontconfig.conf
 
 
@@ -77,16 +78,23 @@ install -m 0644 -p %{SOURCE11} \
 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 NOTICE TTF/COPYING *.pdf
 
 %changelog
+* Fri Oct 17 2014 Richard Hughes <richard at hughsie.com> - 1.13-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> - 1.13-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/adf-tribun.metainfo.xml b/adf-tribun.metainfo.xml
new file mode 100644
index 0000000..f0efe64
--- /dev/null
+++ b/adf-tribun.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>adf-tribun</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Tribun</name>
+  <summary>A newsprint-like serif font</summary>
+</component>


More information about the fonts-bugs mailing list