[drehatlas-warender-bibliothek-fonts/f21] Add a MetaInfo file for the software center

Richard Hughes rhughes at fedoraproject.org
Fri Oct 17 12:41:41 UTC 2014


commit 66d7e43b3142e73081fe70320250b283c494f21f
Author: Richard Hughes <richard at hughsie.com>
Date:   Fri Oct 17 13:24:56 2014 +0100

    Add a MetaInfo file for the software center

 drehatlas-warender-bibliothek-fonts.spec   |   11 ++++++++++-
 drehatlas-warender-bibliothek.metainfo.xml |    8 ++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/drehatlas-warender-bibliothek-fonts.spec b/drehatlas-warender-bibliothek-fonts.spec
index ef8a78b..aecc2c8 100644
--- a/drehatlas-warender-bibliothek-fonts.spec
+++ b/drehatlas-warender-bibliothek-fonts.spec
@@ -4,13 +4,14 @@
 
 Name:		%{fontname}-fonts
 Version:	1.0.2.1
-Release:	7%{?dist}
+Release:	8%{?dist}
 Summary:	A Latin typeface that is decorative, surreal, and hairy
 Group:		User Interface/X
 License:	OFL
 URL:		http://www.drehatlas.de/
 Source0:	http://downloads.sourceforge.net/project/drehatlas-fonts/Font-Packages/COMPLETE/drehatlas-fonts-%{metapkgver}.zip
 Source1:	%{fontconf}
+Source2:	%{fontname}.metainfo.xml
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:	noarch
 BuildRequires:	fontpackages-devel fontforge
@@ -51,13 +52,21 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
 %clean
 rm -fr %{buildroot}
 
 %_font_pkg -f %{fontconf} *.otf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc drehatlas-fonts-%{metapkgver}/WarenderBibliothek-%{version}/LICENSE drehatlas-fonts-%{metapkgver}/WarenderBibliothek-%{version}/FONTLOG
 
 %changelog
+* Fri Oct 17 2014 Richard Hughes <richard at hughsie.com> - 1.0.2.1-8
+- 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.0.2.1-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/drehatlas-warender-bibliothek.metainfo.xml b/drehatlas-warender-bibliothek.metainfo.xml
new file mode 100644
index 0000000..b5a8d4c
--- /dev/null
+++ b/drehatlas-warender-bibliothek.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>drehatlas-warender-bibliothek</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Warender Bibliothek</name>
+  <summary>A fantasy font by Peter Schwanemann</summary>
+</component>


More information about the fonts-bugs mailing list