[almas-mongolian-title-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Thu Oct 16 16:05:41 UTC 2014


commit db4376f0055d83dc877eb63c9d25cba81a0599ae
Author: Parag Nemade <pnemade at redhat.com>
Date:   Thu Oct 16 21:35:35 2014 +0530

    Add metainfo file to show this font in gnome-software

 almas-mongolian-title-fonts.spec |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/almas-mongolian-title-fonts.spec b/almas-mongolian-title-fonts.spec
index 729c49d..3e16fb4 100644
--- a/almas-mongolian-title-fonts.spec
+++ b/almas-mongolian-title-fonts.spec
@@ -4,14 +4,14 @@
 
 Name:           %{fontname}-fonts
 Version:        1.0
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Mongolian Title font
 
-Group:          User Interface/X
 License:        GPLv2
 URL:            http://www.mongolfont.com/en/font/mngltitleotf.html
 Source0:        http://www.mongolfont.com/jAlmas/cms/documents/mongolfont/font/mngltitleotf.ttf
 Source1:        %{name}-fontconfig.conf
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -39,13 +39,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} *.ttf
-
 %doc
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0-5
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list