[google-crosextra-carlito-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Thu Oct 16 13:37:11 UTC 2014


commit d49216148ba8cbdebf35de73aac956aa4f2b6656
Author: Parag Nemade <pnemade at redhat.com>
Date:   Thu Oct 16 19:07:04 2014 +0530

    Add metainfo file to show this font in gnome-software

 google-crosextra-carlito-fonts.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/google-crosextra-carlito-fonts.spec b/google-crosextra-carlito-fonts.spec
index 23c42b2..bb72a95 100644
--- a/google-crosextra-carlito-fonts.spec
+++ b/google-crosextra-carlito-fonts.spec
@@ -6,15 +6,15 @@
 
 Name:           %{fontname}-fonts
 Version:        1.103
-Release:        0.2.20130920%{?dist}
+Release:        0.3.20130920%{?dist}
 Summary:        Sans-serif font metric-compatible with Calibri font
 
-Group:          User Interface/X
 License:        OFL
 URL:            http://code.google.com/p/chromium/issues/detail?id=280557
 Source0:        http://gsdview.appspot.com/chromeos-localmirror/distfiles/%{archivename}.tar.gz
 Source1:        30-0-%{fontname}-fontconfig.conf
 Source2:        62-%{fontname}-fontconfig.conf
+Source3:        %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -50,12 +50,19 @@ ln -s %{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf \
 ln -s %{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf62}-fontconfig.conf
 
-%_font_pkg -f *-%{fontname}-fontconfig.conf *.ttf
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
+%_font_pkg -f *-%{fontname}-fontconfig.conf *.ttf
 %doc LICENSE
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 
 %changelog
+* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.103-0.3.20130920
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.103-0.2.20130920
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list