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

Richard Hughes rhughes at fedoraproject.org
Thu Oct 16 08:55:02 UTC 2014


commit 371279a2af5dbb02d260b9d7d619181016b4dea3
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 09:54:22 2014 +0100

    Add a MetaInfo file for the software center

 thai-arundina-fonts.spec             |   22 +++++++++++++++++++++-
 thai-arundina-sans-mono.metainfo.xml |    7 +++++++
 thai-arundina-sans.metainfo.xml      |    7 +++++++
 thai-arundina-serif.metainfo.xml     |    7 +++++++
 thai-arundina.metainfo.xml           |    8 ++++++++
 5 files changed, 50 insertions(+), 1 deletions(-)
---
diff --git a/thai-arundina-fonts.spec b/thai-arundina-fonts.spec
index e2cf775..3eefd5e 100644
--- a/thai-arundina-fonts.spec
+++ b/thai-arundina-fonts.spec
@@ -10,7 +10,7 @@ compatibility and OpenType conformance.
 
 Name:		%{fontname}-fonts
 Version:	0.2.0
-Release:	5%{?dist}
+Release:	6%{?dist}
 Summary:	Thai Arundina fonts
 
 Group:		User Interface/X
@@ -20,6 +20,10 @@ Source0:	http://linux.thai.net/pub/thailinux/software/fonts-sipa-arundina/%{arch
 Source1:	%{name}-sans-fontconfig.conf
 Source2:	%{name}-serif-fontconfig.conf
 Source3:	%{name}-sans-mono-fontconfig.conf
+Source4:	%{fontname}.metainfo.xml
+Source5:	%{fontname}-sans.metainfo.xml
+Source6:	%{fontname}-sans-mono.metainfo.xml
+Source7:	%{fontname}-serif.metainfo.xml
 
 BuildArch:	noarch
 BuildRequires:	fontforge
@@ -48,6 +52,7 @@ This package consists of the Thai Arundina sans-serif variable-width
 font faces.
 
 %_font_pkg -n sans -f %{fontconf}-sans.conf ArundinaSans.ttf ArundinaSans-Bold.ttf ArundinaSans-Oblique.ttf ArundinaSans-BoldOblique.ttf
+%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
 
 
 %package -n %{fontname}-serif-fonts
@@ -61,6 +66,7 @@ This package consists of the Thai Arundina serif variable-width
 font faces.
 
 %_font_pkg -n serif -f %{fontconf}-serif.conf ArundinaSerif.ttf ArundinaSerif-Bold.ttf
+%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
 
 
 %package -n %{fontname}-sans-mono-fonts
@@ -74,6 +80,7 @@ This package consists of the Thai Arundina sans-serif monospace font
 faces.
 
 %_font_pkg -n sans-mono -f %{fontconf}-sans-mono.conf ArundinaSansMono.ttf ArundinaSansMono-Bold.ttf ArundinaSansMono-Oblique.ttf ArundinaSansMono-BoldOblique.ttf
+%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
 
 
 %prep
@@ -106,13 +113,26 @@ for fconf in %{fontconf}-sans.conf \
      %{buildroot}%{_fontconfig_confdir}/$fconf
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE5} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
+install -Dm 0644 -p %{SOURCE6} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
+install -Dm 0644 -p %{SOURCE7} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
 
 %files common
 %defattr(-,root,root,-)
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc README AUTHORS COPYING NEWS
 
 
 %changelog
+* Thu Oct 16 2014 Richard Hughes <richard at hughsie.com> - 0.2.0-6
+- 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> - 0.2.0-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/thai-arundina-sans-mono.metainfo.xml b/thai-arundina-sans-mono.metainfo.xml
new file mode 100644
index 0000000..c0a76bb
--- /dev/null
+++ b/thai-arundina-sans-mono.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>thai-arundina-sans-mono</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>thai-arundina</extends>
+</component>
diff --git a/thai-arundina-sans.metainfo.xml b/thai-arundina-sans.metainfo.xml
new file mode 100644
index 0000000..98bd4cc
--- /dev/null
+++ b/thai-arundina-sans.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>thai-arundina-sans</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>thai-arundina</extends>
+</component>
diff --git a/thai-arundina-serif.metainfo.xml b/thai-arundina-serif.metainfo.xml
new file mode 100644
index 0000000..625627c
--- /dev/null
+++ b/thai-arundina-serif.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>thai-arundina-serif</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>thai-arundina</extends>
+</component>
diff --git a/thai-arundina.metainfo.xml b/thai-arundina.metainfo.xml
new file mode 100644
index 0000000..38b47b0
--- /dev/null
+++ b/thai-arundina.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>thai-arundina</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Arundina</name>
+  <summary>A Thai Arundina font</summary>
+</component>


More information about the fonts-bugs mailing list