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

Richard Hughes rhughes at fedoraproject.org
Wed Oct 15 19:14:53 UTC 2014


commit ada5f67322e778ae2d1e9c2fbe3f0cedd6b926ba
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Oct 15 20:12:14 2014 +0100

    Add a MetaInfo file for the software center

 impallari-lobster-fonts.spec   |   10 +++++++++-
 impallari-lobster.metainfo.xml |    8 ++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/impallari-lobster-fonts.spec b/impallari-lobster-fonts.spec
index 67e05d9..3410438 100644
--- a/impallari-lobster-fonts.spec
+++ b/impallari-lobster-fonts.spec
@@ -3,13 +3,14 @@
 
 Name:           %{fontname}-fonts
 Version:        1.4
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Hand written font with various ligatures for better connecting of letters
 
 License:        OFL
 URL:            http://www.impallari.com/lobster/
 Source0:        http://www.impallari.com/lobster/releases/lobster-font-1.4.zip  
 Source1:        %{name}-fontconfig.conf
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -46,13 +47,20 @@ 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 "Lobster 1.4/Readme.txt" "Lobster 1.4/License.txt"
 
 
 %changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 1.4-9
+- 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.4-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/impallari-lobster.metainfo.xml b/impallari-lobster.metainfo.xml
new file mode 100644
index 0000000..0634972
--- /dev/null
+++ b/impallari-lobster.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>impallari-lobster</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Lobster</name>
+  <summary>A bold condensed script fully loaded with ligatures and alternates</summary>
+</component>


More information about the fonts-bugs mailing list