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

Richard Hughes rhughes at fedoraproject.org
Wed Oct 15 19:27:42 UTC 2014


commit ecf045f0c2cb2f9605e2b445a5fb1188851cfab7
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Oct 15 20:26:16 2014 +0100

    Add a MetaInfo file for the software center

 adf-accanthis-2.metainfo.xml |    7 +++++++
 adf-accanthis-3.metainfo.xml |    7 +++++++
 adf-accanthis-fonts.spec     |   19 ++++++++++++++++++-
 adf-accanthis.metainfo.xml   |    8 ++++++++
 4 files changed, 40 insertions(+), 1 deletions(-)
---
diff --git a/adf-accanthis-2.metainfo.xml b/adf-accanthis-2.metainfo.xml
new file mode 100644
index 0000000..a9cdfbe
--- /dev/null
+++ b/adf-accanthis-2.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>adf-accanthis-2</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>adf-accanthis</extends>
+</component>
diff --git a/adf-accanthis-3.metainfo.xml b/adf-accanthis-3.metainfo.xml
new file mode 100644
index 0000000..e9188cf
--- /dev/null
+++ b/adf-accanthis-3.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>adf-accanthis-3</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>adf-accanthis</extends>
+</component>
diff --git a/adf-accanthis-fonts.spec b/adf-accanthis-fonts.spec
index 710a6a5..45fc966 100644
--- a/adf-accanthis-fonts.spec
+++ b/adf-accanthis-fonts.spec
@@ -17,7 +17,7 @@ Accanthis is well suited to book typesetting and refined presentations.
 Name:      %{fontname}-fonts
 # Use the main PS version (as documented in NOTICE)
 Version:   1.8
-Release:   5%{?dist}
+Release:   6%{?dist}
 Summary:   A “modernized” garaldic serif typeface, “Galliard” alternative
 
 Group:     User Interface/X
@@ -28,6 +28,9 @@ Source1:   http://arkandis.tuxfamily.org/docs/Accanthis-Cat.pdf
 Source11:  %{name}-fontconfig.conf
 Source12:  %{name}-fontconfig-2.conf
 Source13:  %{name}-fontconfig-3.conf
+Source14:  %{fontname}.metainfo.xml
+Source15:  %{fontname}-2.metainfo.xml
+Source16:  %{fontname}-3.metainfo.xml
 
 
 BuildArch:     noarch
@@ -39,6 +42,7 @@ BuildRequires: fontpackages-devel
 It is intended to serve as alternative to the “Galliard” typeface.
 
 %_font_pkg -f %{fontconf}.conf AccanthisADFStd-*.otf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 
 %package common
@@ -62,6 +66,7 @@ This variant is closer to the “Horley old style” typeface than the original
 version.
 
 %_font_pkg -n 2 -f %{fontconf}-2.conf AccanthisADFStdNo2-*.otf
+%{_datadir}/appdata/%{fontname}-2.metainfo.xml
 
 
 %package -n adf-accanthis-3-fonts
@@ -76,6 +81,7 @@ original Italic and changes to k, p, z and numbers.
 
 
 %_font_pkg -n 3 -f %{fontconf}-3.conf AccanthisADFStdNo3-*.otf
+%{_datadir}/appdata/%{fontname}-3.metainfo.xml
 
 
 %prep
@@ -108,6 +114,14 @@ install -m 0644 -p %{SOURCE12} \
 install -m 0644 -p %{SOURCE13} \
         %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-3.conf
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE14} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE15} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-2.metainfo.xml
+install -Dm 0644 -p %{SOURCE16} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-3.metainfo.xml
+
 for fconf in %{fontconf}.conf \
              %{fontconf}-2.conf \
              %{fontconf}-3.conf ; do
@@ -126,6 +140,9 @@ rm -fr %{buildroot}
 
 
 %changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 1.8-6
+- 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> - 1.8-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/adf-accanthis.metainfo.xml b/adf-accanthis.metainfo.xml
new file mode 100644
index 0000000..dff0c97
--- /dev/null
+++ b/adf-accanthis.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>adf-accanthis</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Accanthis</name>
+  <summary>A “modernized” garaldic serif font</summary>
+</component>


More information about the fonts-bugs mailing list