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

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


commit ae4758636aad7491ae6867a92df6ff4c8360a42a
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Oct 15 20:36:14 2014 +0100

    Add a MetaInfo file for the software center

 opendyslexic-fonts.spec   |   11 ++++++++++-
 opendyslexic.metainfo.xml |    8 ++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/opendyslexic-fonts.spec b/opendyslexic-fonts.spec
index bfe9749..7c7c34e 100644
--- a/opendyslexic-fonts.spec
+++ b/opendyslexic-fonts.spec
@@ -5,7 +5,7 @@
 
 Name:		%{fontname}-fonts
 Version:	0.600
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	Font designed for dyslexics and high readability
 License:	Bitstream Vera and CC-BY
 URL:		http://dyslexicfonts.com/
@@ -15,6 +15,7 @@ URL:		http://dyslexicfonts.com/
 # tar cfj opendyslexic-20121008git0c6748ab6b.tar.bz2 opendyslexic
 Source0:	%{fontname}-%{gitdate}git%{gitrev}.tar.bz2
 Source1:	%{name}-fontconfig.conf
+Source2:	%{fontname}.metainfo.xml
 BuildArch:	noarch
 BuildRequires:	fontpackages-devel
 Requires:	fontpackages-filesystem
@@ -41,13 +42,21 @@ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
 install -m 0644 -p %{SOURCE1} \
 		%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
 		%{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
 %_font_pkg -f %{fontconf} *.otf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc README.md
 
 %changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 0.600-5
+- 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> - 0.600-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/opendyslexic.metainfo.xml b/opendyslexic.metainfo.xml
new file mode 100644
index 0000000..436e804
--- /dev/null
+++ b/opendyslexic.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>opendyslexic</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Open Dyslexic</name>
+  <summary>A font designed for dyslexics with high readability</summary>
+</component>


More information about the fonts-bugs mailing list