[ht-alegreya-fonts/f21] Add a MetaInfo file for the software center

Richard Hughes rhughes at fedoraproject.org
Fri Oct 17 19:44:55 UTC 2014


commit 2b7cc7ae1ebc87812434b9590cc52ffd9d927cb1
Author: Richard Hughes <richard at hughsie.com>
Date:   Fri Oct 17 20:30:21 2014 +0100

    Add a MetaInfo file for the software center

 alegreya.metainfo.xml   |    8 ++++++++
 alegreyaSC.metainfo.xml |    7 +++++++
 ht-alegreya-fonts.spec  |   15 ++++++++++++++-
 3 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/alegreya.metainfo.xml b/alegreya.metainfo.xml
new file mode 100644
index 0000000..257207a
--- /dev/null
+++ b/alegreya.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>alegreya</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Alegreya</name>
+  <summary>A font originally intended for literature</summary>
+</component>
diff --git a/alegreyaSC.metainfo.xml b/alegreyaSC.metainfo.xml
new file mode 100644
index 0000000..6a0c717
--- /dev/null
+++ b/alegreyaSC.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>alegreyaSC</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>alegreya</extends>
+</component>
diff --git a/ht-alegreya-fonts.spec b/ht-alegreya-fonts.spec
index 1a9fa7c..295fa41 100644
--- a/ht-alegreya-fonts.spec
+++ b/ht-alegreya-fonts.spec
@@ -17,13 +17,15 @@ elements designed in an atmosphere of diversity.
 
 Name:		ht-%{fontname}-fonts
 Version:	1.004
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	A Serif typeface originally intended for literature
 License:	OFL
 URL:		http://www.huertatipografica.com.ar/tipografias/alegreya/ejemplos.html
 Source0:	http://www.huertatipografica.com.ar/descargas/Alegreya.zip
 Source1:	%{name}-fontconfig.conf
 Source2:	ht-%{fontname}SC-fonts-fontconfig.conf
+Source3:	%{fontname}.metainfo.xml
+Source4:	%{fontname}SC.metainfo.xml
 BuildArch:	noarch
 BuildRequires:	fontpackages-devel
 Requires:	fontpackages-filesystem
@@ -65,13 +67,24 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} \
 ln -s %{_fontconfig_templatedir}/60-%{fontname}SC.conf \
 	%{buildroot}%{_fontconfig_confdir}/60-%{fontname}SC.conf
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}SC.metainfo.xml
+
 %_font_pkg -f %{fontconf} Alegreya-*.otf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc OFL.txt
 
 %_font_pkg -n ht-%{fontname}-smallcaps-fonts -f 60-%{fontname}SC.conf  AlegreyaSC-*.otf
+%{_datadir}/appdata/%{fontname}SC.metainfo.xml
 %doc OFL.txt
 
 %changelog
+* Fri Oct 17 2014 Richard Hughes <richard at hughsie.com> - 1.004-5
+- 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.004-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list