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

Richard Hughes rhughes at fedoraproject.org
Thu Oct 16 08:42:43 UTC 2014


commit 32acdd5aa900ad732c023a73f7cd269a136f0957
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 09:42:28 2014 +0100

    Add a MetaInfo file for the software center

 silkscreen-expanded.metainfo.xml |    7 +++++++
 silkscreen-fonts.spec            |   15 ++++++++++++++-
 silkscreen.metainfo.xml          |    8 ++++++++
 3 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/silkscreen-expanded.metainfo.xml b/silkscreen-expanded.metainfo.xml
new file mode 100644
index 0000000..09c2e59
--- /dev/null
+++ b/silkscreen-expanded.metainfo.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+  <id>silkscreen-expanded</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>silkscreen</extends>
+</component>
diff --git a/silkscreen-fonts.spec b/silkscreen-fonts.spec
index 997cc55..2a19acf 100644
--- a/silkscreen-fonts.spec
+++ b/silkscreen-fonts.spec
@@ -12,7 +12,7 @@ multiples (8pt., 16pt., 24pt., etc.) with anti-aliasing turned off. \
 Name:		%{fontname}-fonts
 Summary: 	Silkscreen four member type family
 Version:	1.0
-Release:	10%{?dist}
+Release:	11%{?dist}
 # License attribution confirmed by author and Open Font Library
 # http://openfontlibrary.org/media/files/jkottke/218
 License:	OFL
@@ -20,6 +20,8 @@ Group:		User Interface/X
 Source0:	http://www.kottke.org/plus/type/silkscreen/download/silkscreen.tar.gz
 Source1:	%{name}-fontconfig.conf
 Source2:	%{name}-expanded-fontconfig.conf
+Source3:	%{fontname}.metainfo.xml
+Source4:	%{fontname}-expanded.metainfo.xml
 URL:		http://www.kottke.org/plus/type/silkscreen/
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
@@ -51,6 +53,7 @@ This font family has a slightly expanded spacing between the letters in
 comparison to the normal Silkscreen font family.
 
 %_font_pkg -n expanded -f %{fontconf}-expanded.conf slkscre*.ttf
+%{_datadir}/appdata/%{fontname}-expanded.metainfo.xml
 
 %prep
 %setup -q -c -n %{name}
@@ -69,10 +72,17 @@ for fontconf in %{fontconf}.conf %{fontconf}-expanded.conf ; do
 	ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-expanded.metainfo.xml
+
 %clean
 rm -rf %{buildroot}
 
 %_font_pkg -f %{fontconf}.conf slkscr.ttf slkscrb.ttf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %files common
 %defattr(0644,root,root,0755)
@@ -80,6 +90,9 @@ rm -rf %{buildroot}
 %dir %{_fontdir}
 
 %changelog
+* Thu Oct 16 2014 Richard Hughes <richard at hughsie.com> - 1.0-11
+- Add a MetaInfo file for the software center; this is a font we want to show.
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/silkscreen.metainfo.xml b/silkscreen.metainfo.xml
new file mode 100644
index 0000000..444a95a
--- /dev/null
+++ b/silkscreen.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>silkscreen</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Silkscreen</name>
+  <summary>Silkscreen four member type family</summary>
+</component>


More information about the fonts-bugs mailing list