[dustin-domestic-manners-fonts/f21] Add a MetaInfo file for the software center

Richard Hughes rhughes at fedoraproject.org
Fri Oct 17 20:34:41 UTC 2014


commit 8485aa8a15171ce2b14c7cf97f7ba61ba2803519
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 12:21:33 2014 +0100

    Add a MetaInfo file for the software center

 dustin-domestic-manners-fonts.spec   |   11 ++++++++++-
 dustin-domestic-manners.metainfo.xml |    8 ++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/dustin-domestic-manners-fonts.spec b/dustin-domestic-manners-fonts.spec
index 9152dae..070dc91 100644
--- a/dustin-domestic-manners-fonts.spec
+++ b/dustin-domestic-manners-fonts.spec
@@ -3,7 +3,7 @@
 
 Name:          %{fontname}-fonts
 Version:       20030527
-Release:       10%{?dist}
+Release:       11%{?dist}
 Summary:       Handwriting font by Dustin Norlander
 
 Group:         User Interface/X
@@ -13,6 +13,7 @@ URL:           http://www.dustismo.com
 #URL:           http://ftp.de.debian.org/debian/pool/main/t/ttf-dustin/ttf-dustin_20030517.orig.tar.gz 
 Source0:       Domestic_Manners.zip
 Source1:       %{name}-fontconfig.conf
+Source2:       %{fontname}.metainfo.xml
 BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:     noarch
@@ -44,15 +45,23 @@ install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
 
 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 license.txt
 %dir %{_fontdir}
 
 %changelog
+* Thu Oct 16 2014 Richard Hughes <richard at hughsie.com> - 20030527-11
+- 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> - 20030527-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/dustin-domestic-manners.metainfo.xml b/dustin-domestic-manners.metainfo.xml
new file mode 100644
index 0000000..f0955ac
--- /dev/null
+++ b/dustin-domestic-manners.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>dustin-domestic-manners</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Domestic Manners</name>
+  <summary>A handwriting font by Dustin Norlander</summary>
+</component>


More information about the fonts-bugs mailing list