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

Parag Nemade pnemade at fedoraproject.org
Sat Oct 18 09:56:26 UTC 2014


commit 9e4c57443ef4d1bc7d0850a15daa308f05143b65
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sat Oct 18 15:26:20 2014 +0530

    Add metainfo file to show this font in gnome-software

 apanov-edrip-fonts.spec |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/apanov-edrip-fonts.spec b/apanov-edrip-fonts.spec
index 9b43f13..7f6a703 100644
--- a/apanov-edrip-fonts.spec
+++ b/apanov-edrip-fonts.spec
@@ -7,18 +7,16 @@
 
 Name:    %{fontname}-fonts
 Version: 20100430
-Release: 8%{?dist}
+Release: 9%{?dist}
 Summary: A decorative contrast sans-serif font
 
-Group:     User Interface/X
 License:   OFL
 URL:       http://code.google.com/p/%{googlename}/
-
 # Upstream has still not completed hosting switching
 Source0:   ftp://ftp.dvo.ru/pub/Font/edrip/%{archivename}.tar.xz
 #Source0:   http://%{googlename}.googlecode.com/files/%{archivename}.tar.xz
 Source1:   %{name}-fontconfig.conf
-
+Source2:   %{fontname}.metainfo.xml
 
 BuildArch:     noarch
 BuildRequires: fontforge, xgridfit >= 2.2-4.a.20100725cvs.fc14
@@ -38,8 +36,6 @@ Latin alphabets.
 make %{?_smp_mflags}
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *\.ttf %{buildroot}%{_fontdir}
 
@@ -51,15 +47,18 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
-
-%clean
-rm -fr %{buildroot}
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %_font_pkg -f %{fontconf} *.ttf
 %doc *.txt README
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 20100430-9
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20100430-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list