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

Parag Nemade pnemade at fedoraproject.org
Fri Oct 17 17:40:46 UTC 2014


commit 5fad62333fcbc187656f3a80e8dbd33027a7d5de
Author: Parag Nemade <pnemade at redhat.com>
Date:   Fri Oct 17 23:10:40 2014 +0530

    Add metainfo file to show this font in gnome-software

 jomolhari-fonts.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/jomolhari-fonts.spec b/jomolhari-fonts.spec
index 03c24fc..898d7db 100644
--- a/jomolhari-fonts.spec
+++ b/jomolhari-fonts.spec
@@ -3,10 +3,9 @@
 
 Name:		%{fontname}-fonts
 Version:	0.003
-Release:	18%{?dist}
+Release:	19%{?dist}
 Summary:	Jomolhari a Bhutanese style font for Tibetan and Dzongkha
 
-Group:		User Interface/X
 License:	OFL
 # Looks like currently following URL is gone now. Maybe temporary issue
 #URL:		http://chris.fynn.googlepages.com/jomolhari
@@ -14,6 +13,7 @@ License:	OFL
 #URL:           https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari
 Source0:	http://chris.fynn.googlepages.com/jomolhari-alpha003c.zip
 Source1:        %{name}-fontconfig.conf 
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:	noarch
 BuildRequires:	fontpackages-devel
@@ -49,10 +49,18 @@ do
 	mv -f ${i}.tmp $i
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
 %_font_pkg -f 65-0-%{fontname}.conf *.ttf
 %doc FONTLOG.txt OFL-FAQ.txt OFL.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Fri Oct 17 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.003-19
+- Add metainfo file to show this font in gnome-software
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.003-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list