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

Richard Hughes rhughes at fedoraproject.org
Thu Oct 16 08:36:31 UTC 2014


commit 5fc2cf50f0fcc496ef300d3c2a7869d5bd6106ee
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 09:36:00 2014 +0100

    Add a MetaInfo file for the software center

 sil-padauk-book.metainfo.xml |    7 +++++++
 sil-padauk-fonts.spec        |   14 +++++++++++++-
 sil-padauk.metainfo.xml      |    8 ++++++++
 3 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/sil-padauk-book.metainfo.xml b/sil-padauk-book.metainfo.xml
new file mode 100644
index 0000000..9488796
--- /dev/null
+++ b/sil-padauk-book.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>sil-padauk-book</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>sil-padauk</extends>
+</component>
diff --git a/sil-padauk-fonts.spec b/sil-padauk-fonts.spec
index 0af7c69..54b5abd 100644
--- a/sil-padauk-fonts.spec
+++ b/sil-padauk-fonts.spec
@@ -10,7 +10,7 @@ The font is a smart font using a Graphite description.
 
 Name:    %{fontname}-fonts
 Version: 2.8
-Release: 6%{?dist}
+Release: 7%{?dist}
 Summary: A font for Burmese and the Myanmar script
 
 Group:   User Interface/X
@@ -20,6 +20,8 @@ URL:     http://scripts.sil.org/Padauk
 Source0: %{archivename}.zip
 Source1: %{name}-fontconfig.conf
 Source2: %{name}-book-fontconfig.conf
+Source3: %{fontname}.metainfo.xml
+Source4: %{fontname}-book.metainfo.xml
 
 BuildArch: noarch
 BuildRequires: fontpackages-devel
@@ -31,6 +33,7 @@ Requires:      fontpackages-filesystem
 
 %_font_pkg -f %{fontconf}.conf Padauk.ttf Padauk-bold.ttf
 %doc *.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %package -n %{fontname}-book-fonts
 Summary:  A font for Burmese and the Myanmar script
@@ -41,6 +44,7 @@ Padauk Book family font.
 %common_desc
 
 %_font_pkg -n book -f %{fontconf}-book.conf Padauk-book*.ttf
+%{_datadir}/appdata/%{fontname}-book.metainfo.xml
 %doc *.txt
 
 %prep
@@ -79,8 +83,16 @@ ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \
 ln -s %{_fontconfig_templatedir}/%{fontconf}-book.conf \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}-book.conf
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-book.metainfo.xml
 
 %changelog
+* Thu Oct 16 2014 Richard Hughes <richard at hughsie.com> - 2.8-7
+- 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> - 2.8-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sil-padauk.metainfo.xml b/sil-padauk.metainfo.xml
new file mode 100644
index 0000000..109510e
--- /dev/null
+++ b/sil-padauk.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>sil-padauk</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Padauk</name>
+  <summary>A font for Burmese and the Myanmar script</summary>
+</component>


More information about the fonts-bugs mailing list