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

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


commit ceac4d4d2f007cd69a941f322c0ccb107f440a7b
Author: Richard Hughes <richard at hughsie.com>
Date:   Fri Oct 17 13:30:37 2014 +0100

    Add a MetaInfo file for the software center

 drehatlas-widelands-fonts.spec   |   11 ++++++++++-
 drehatlas-widelands.metainfo.xml |    8 ++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/drehatlas-widelands-fonts.spec b/drehatlas-widelands-fonts.spec
index 1be3e8a..50171ee 100644
--- a/drehatlas-widelands-fonts.spec
+++ b/drehatlas-widelands-fonts.spec
@@ -7,12 +7,13 @@
 
 Name:		%{fontname}-fonts
 Version:	1.0.3.1
-Release:	12%{?dist}
+Release:	13%{?dist}
 Summary:	A Latin typeface inspired by feudal calligraphy
 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
 BuildArch:	noarch
 BuildRequires:	fontpackages-devel fontforge
 Requires:	fontpackages-filesystem
@@ -48,10 +49,18 @@ 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
+
 %_font_pkg -f %{fontconf} *.otf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc drehatlas-fonts-%{metapkgver}/Widelands-%{version}/LICENSE drehatlas-fonts-%{metapkgver}/Widelands-%{version}/FONTLOG
 
 %changelog
+* Fri Oct 17 2014 Richard Hughes <richard at hughsie.com> - 1.0.3.1-13
+- 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.3.1-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/drehatlas-widelands.metainfo.xml b/drehatlas-widelands.metainfo.xml
new file mode 100644
index 0000000..20d622e
--- /dev/null
+++ b/drehatlas-widelands.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-widelands</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Widelands</name>
+  <summary>A Latin font inspired by feudal calligraphy</summary>
+</component>


More information about the fonts-bugs mailing list