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

Richard Hughes rhughes at fedoraproject.org
Wed Oct 15 21:15:43 UTC 2014


commit f10f410e0343559d9bac5bbb5e0d5faa7e8f82d0
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Oct 15 22:14:30 2014 +0100

    Add a MetaInfo file for the software center

 sj-delphine.metainfo.xml  |    8 ++++++++
 sj-fonts.spec             |   15 ++++++++++++++-
 sj-stevehand.metainfo.xml |    8 ++++++++
 3 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/sj-delphine.metainfo.xml b/sj-delphine.metainfo.xml
new file mode 100644
index 0000000..b1f60bc
--- /dev/null
+++ b/sj-delphine.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>sj-delphine</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Delphine</name>
+  <summary>A handwriting font</summary>
+</component>
diff --git a/sj-fonts.spec b/sj-fonts.spec
index 390edac..0870878 100644
--- a/sj-fonts.spec
+++ b/sj-fonts.spec
@@ -5,7 +5,7 @@
 
 Name:          %{fontname}-fonts
 Version:       2.0.2
-Release:       11%{?dist}
+Release:       12%{?dist}
 Summary:       Two fonts by Steve Jordi released under the GPL
 
 Group:         User Interface/X
@@ -14,6 +14,8 @@ URL:           http://sjfonts.sourceforge.net
 Source0:       sjfonts-source-2.0.2.tar.bz2
 Source1:       %{name}-delphine-fontconfig.conf
 Source2:       %{name}-stevehand-fontconfig.conf
+Source3:       %{fontname}-stevehand.metainfo.xml
+Source4:       %{fontname}-delphine.metainfo.xml
 BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:     noarch
@@ -44,6 +46,7 @@ Requires:      %{name}-common = %{version}-%{release}
 Handwriting font by Steve Jordi covering latin glyphs.
 
 %_font_pkg -n delphine -f %{fontconf}-delphine.conf Delphine.ttf
+%{_datadir}/appdata/%{fontname}-delphine.metainfo.xml
 
 %package -n %{fontname}-stevehand-fonts
 Summary:       Handwriting font
@@ -56,6 +59,7 @@ Requires:      %{name}-common = %{version}-%{release}
 Handwriting font by Steve Jordi covering latin glyphs.
 
 %_font_pkg -n stevehand -f %{fontconf}-stevehand.conf SteveHand.ttf
+%{_datadir}/appdata/%{fontname}-stevehand.metainfo.xml
 
 %prep
 %setup -q -c %{name}-%{version}
@@ -88,6 +92,12 @@ for fontconf in %{fontconf}-delphine.conf %{fontconf}-stevehand.conf ; do
   ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-stevehand.metainfo.xml
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-delphine.metainfo.xml
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -99,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_fontdir}
 
 %changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 2.0.2-12
+- 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.0.2-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sj-stevehand.metainfo.xml b/sj-stevehand.metainfo.xml
new file mode 100644
index 0000000..d3c01e4
--- /dev/null
+++ b/sj-stevehand.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>sj-stevehand</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Steve Hand</name>
+  <summary>A handwriting font</summary>
+</component>


More information about the fonts-bugs mailing list