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

Richard Hughes rhughes at fedoraproject.org
Thu Oct 16 18:38:23 UTC 2014


commit 44d6e922b547cbf57549ee023f8fbcea22a47146
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 12:03:17 2014 +0100

    Add a MetaInfo file for the software center

 woodardworks-laconic-fonts.spec          |   16 +++++++++++++++-
 woodardworks-laconic-shadow.metainfo.xml |    7 +++++++
 woodardworks-laconic.metainfo.xml        |    8 ++++++++
 3 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/woodardworks-laconic-fonts.spec b/woodardworks-laconic-fonts.spec
index 65c305c..a8655cc 100644
--- a/woodardworks-laconic-fonts.spec
+++ b/woodardworks-laconic-fonts.spec
@@ -4,12 +4,14 @@
 Name:		%{fontname}-fonts
 Summary:	An artistic and minimal sans-serif font family
 Version:	001.001
-Release:	10%{?dist}
+Release:	11%{?dist}
 License:	OFL
 Group:		User Interface/X
 Source0:	http://www.woodardworks.com/laconic.zip
 Source1:	%{name}-fontconfig.conf
 Source2:	%{fontname}-shadow-fonts-fontconfig.conf
+Source3:        %{fontname}.metainfo.xml
+Source4:        %{fontname}-shadow.metainfo.xml
 URL:		http://www.woodardworks.com/type13.html
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	fontpackages-devel
@@ -56,16 +58,28 @@ install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
 ln -s %{_fontconfig_templatedir}/%{fontconf}.conf %{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf
 ln -s %{_fontconfig_templatedir}/%{fontconf}-shadow.conf %{buildroot}%{_fontconfig_confdir}/%{fontconf}-shadow.conf
 
+
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-shadow.metainfo.xml
+
 %clean
 rm -rf %{buildroot}
 
 %_font_pkg -f %{fontconf}.conf Laconic_Bold.otf Laconic_Light.otf Laconic_Regular.otf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc laconic_eula.pdf
 
 %_font_pkg -n shadow -f %{fontconf}-shadow.conf Laconic_Shadow.otf
+%{_datadir}/appdata/%{fontname}-shadow.metainfo.xml
 %doc laconic_eula.pdf
 
 %changelog
+* Thu Oct 16 2014 Richard Hughes <richard at hughsie.com> - 001.001-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> - 001.001-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/woodardworks-laconic-shadow.metainfo.xml b/woodardworks-laconic-shadow.metainfo.xml
new file mode 100644
index 0000000..87a00ac
--- /dev/null
+++ b/woodardworks-laconic-shadow.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>woodardworks-laconic-shadow</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>woodardworks-laconic</extends>
+</component>
diff --git a/woodardworks-laconic.metainfo.xml b/woodardworks-laconic.metainfo.xml
new file mode 100644
index 0000000..537f541
--- /dev/null
+++ b/woodardworks-laconic.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>woodardworks-laconic</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Laconic</name>
+  <summary>An artistic and minimal sans-serif font family</summary>
+</component>


More information about the fonts-bugs mailing list