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

Parag Nemade pnemade at fedoraproject.org
Sat Oct 18 13:04:26 UTC 2014


commit 67f4b0c5c2050b068ffea3f0ac6bb41b75807425
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sat Oct 18 18:34:21 2014 +0530

    Add metainfo file to show this font in gnome-software

 hiran-perizia-fonts.spec |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/hiran-perizia-fonts.spec b/hiran-perizia-fonts.spec
index 9d3d2b8..972a661 100644
--- a/hiran-perizia-fonts.spec
+++ b/hiran-perizia-fonts.spec
@@ -3,16 +3,16 @@
 
 Name:        %{fontname}-fonts
 Version:    0.1.0
-Release:    6%{?dist}
+Release:    7%{?dist}
 Summary:    English asymmetric font
 
-Group:        User Interface/X
 License:    GPLv3+ with exceptions
 # alas! returns a 404 : http://hiran.in/fontprojects
 URL:        http://hiran.in/blog/thanks-perizia-is-now-a-font
 Source0:    http://hiran.in/content/fonts/perizia/src/perizia010.sfd
 Source1:    %{name}-fontconfig.conf
 Source2:    GPL-3.0.txt
+Source3:    %{fontname}.metainfo.xml
 
 BuildArch:    noarch
 BuildRequires:    fontforge,fontpackages-devel
@@ -39,9 +39,6 @@ endloop
 EOF
 
 %install
-rm -fr %{buildroot}
-
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -53,11 +50,18 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
-%_font_pkg -f %{fontconf} *.ttf
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
+%_font_pkg -f %{fontconf} *.ttf
 %doc *.pdf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.0-7
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list