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

Parag Nemade pnemade at fedoraproject.org
Fri Oct 17 11:16:43 UTC 2014


commit a92d342a7bd5c819b007f33b816f1cd39386d078
Author: Parag Nemade <pnemade at redhat.com>
Date:   Fri Oct 17 16:46:36 2014 +0530

    Add metainfo file to show this font in gnome-software

 gfs-philostratos-fonts.spec |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/gfs-philostratos-fonts.spec b/gfs-philostratos-fonts.spec
index 2763e02..e1b2396 100644
--- a/gfs-philostratos-fonts.spec
+++ b/gfs-philostratos-fonts.spec
@@ -5,15 +5,14 @@
 
 Name:    %{fontname}-fonts
 Version: 20090902
-Release: 7%{?dist}
+Release: 8%{?dist}
 Summary: A revival of the “Griechische Antiqua” Greek typeface
 
-Group:     User Interface/X
 License:   OFL
 URL:       http://www.greekfontsociety.gr/pages/en_typefaces19th.html
 Source0:   http://www.greekfontsociety.gr/%{archivename}.zip
 Source1:   %{name}-fontconfig.conf
-
+Source2:   %{fontname}.metainfo.xml
 
 BuildArch:     noarch
 BuildRequires: fontpackages-devel
@@ -57,8 +56,6 @@ done
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.otf %{buildroot}%{_fontdir}
 
@@ -70,17 +67,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} *.otf
-
 %doc *.txt *.pdf
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Fri Oct 17 2014 Parag Nemade <pnemade AT redhat DOT com> - 20090902-8
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20090902-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list