[oflb-roadstencil-fonts/f21] Use an external MetaInfo file to match the other fonts

Richard Hughes rhughes at fedoraproject.org
Thu Oct 16 19:12:18 UTC 2014


commit ebcedcc8ab92a57c8e9fc27dda0a7b269f1605ac
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu Oct 16 20:10:26 2014 +0100

    Use an external MetaInfo file to match the other fonts

 oflb-roadstencil-fonts.spec |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/oflb-roadstencil-fonts.spec b/oflb-roadstencil-fonts.spec
index dfa12f9..1106f19 100644
--- a/oflb-roadstencil-fonts.spec
+++ b/oflb-roadstencil-fonts.spec
@@ -15,6 +15,7 @@ Source0:        http://openfontlibrary.org/people/andyfitz/andyfitz_-_roadstenci
 Source1:        %{name}-fontconfig.conf
 #license text extracted from font file
 Source2:        License.txt
+Source3:        %{fontname}.metainfo.xml
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
 Requires:       fontpackages-filesystem
@@ -43,21 +44,12 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
 # Add AppStream metadata
-mkdir -p %{buildroot}%{_datadir}/appdata
-cat > %{buildroot}%{_datadir}/appdata/RoadStencil.metainfo.xml <<EOF
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
-<component type="font">
-  <id>RoadStencil</id>
-  <metadata_license>CC0-1.0</metadata_license>
-  <name>Road Stencil</name>
-  <summary>A font based on painted street markings</summary>
-</component>
-EOF
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %_font_pkg -f %{fontconf} *.otf
 %doc  License.txt
-%{_datadir}/appdata/RoadStencil.metainfo.xml
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
 * Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 1.0-16


More information about the fonts-bugs mailing list