[shadowsintolight-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Sun Oct 19 06:53:39 UTC 2014


commit d22c1084729c8ffdbee334de11ae2402cc51d569
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sun Oct 19 12:23:35 2014 +0530

    Add metainfo file to show this font in gnome-software

 shadowsintolight-fonts.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/shadowsintolight-fonts.spec b/shadowsintolight-fonts.spec
index 407cb4f..83a0ede 100644
--- a/shadowsintolight-fonts.spec
+++ b/shadowsintolight-fonts.spec
@@ -5,13 +5,15 @@
 
 Name:          %{fontname}-fonts
 Version:       1.000
-Release:       0.3.%{alphatag}%{?dist}
+Release:       0.4.%{alphatag}%{?dist}
 Summary:       Shadows Into Light fonts by Kimberly Geswein
 License:       OFL
 URL:           http://www.google.com/fonts/specimen/Shadows+Into+Light
 Source0:       https://googlefontdirectory.googlecode.com/hg/ofl/shadowsintolight/ShadowsIntoLight.ttf
 Source1:       https://googlefontdirectory.googlecode.com/hg/ofl/shadowsintolight/OFL.txt
+Source2:       %{fontname}.metainfo.xml
 Source10:      %{fontconf}
+
 BuildArch:     noarch
 BuildRequires: fontpackages-devel
 BuildRequires: ttname
@@ -44,12 +46,18 @@ install -m 0644 -p %{SOURCE10} \
 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} *.ttf
 %doc OFL.txt
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.000-0.4.20140913hg
+- Add metainfo file to show this font in gnome-software
+
 * Sat Sep 13 2014 Julien Enselme <jujens at jujens.eu> - 1.000-0.3.20140913hg
 - Correct the SOURCEs URLs
 - Correct the prep section


More information about the fonts-bugs mailing list