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

Parag Nemade pnemade at fedoraproject.org
Thu Oct 16 11:58:30 UTC 2014


commit cac60eb2e709be59c83fdc658649184b6da4d8cd
Author: Parag Nemade <pnemade at redhat.com>
Date:   Thu Oct 16 17:28:22 2014 +0530

    Add metainfo file to show this font in gnome-software

 tabish-eeyek-fonts.spec |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/tabish-eeyek-fonts.spec b/tabish-eeyek-fonts.spec
index 7123b2c..cfcab26 100644
--- a/tabish-eeyek-fonts.spec
+++ b/tabish-eeyek-fonts.spec
@@ -5,14 +5,14 @@
 
 Name:           %{fontname}-fonts
 Version:        1.0
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Font for Meetei Mayek script
 
-Group:          User Interface/X
 License:        GPLv2+
 URL:            http://tabish.freeshell.org/eeyek/
 Source0:        http://tabish.freeshell.org/eeyek/%{archivename}
 Source1:        %{name}-fontconfig.conf
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -29,11 +29,8 @@ for file in Eeyek_Unicode/copying.txt; do
  mv $file.new $file
 done
 
-
-
 %build
 
-
 %install
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p Eeyek_Unicode/Eeyek.ttf %{buildroot}%{_fontdir}/eeyek.ttf
@@ -46,13 +43,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} *.ttf
 
+%_font_pkg -f %{fontconf} *.ttf
 %doc Eeyek_Unicode/copying.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 
 %changelog
+* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0-7
+- Add metainfo file to show this font in gnome-software
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list