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

Parag Nemade pnemade at fedoraproject.org
Fri Oct 17 05:57:01 UTC 2014


commit dad27cb7ae3c9a41d5aba2504b9ffd0e3d325f56
Author: Parag Nemade <pnemade at redhat.com>
Date:   Fri Oct 17 11:26:54 2014 +0530

    Add metainfo file to show this font in gnome-software

 gfs-baskerville-fonts.spec |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/gfs-baskerville-fonts.spec b/gfs-baskerville-fonts.spec
index fc1cc7f..832e2af 100644
--- a/gfs-baskerville-fonts.spec
+++ b/gfs-baskerville-fonts.spec
@@ -5,15 +5,14 @@
 
 Name:    %{fontname}-fonts
 Version: 20070327
-Release: 19%{?dist}
+Release: 20%{?dist}
 Summary: GFS Baskerville Greek font
 
-Group:     User Interface/X
 License:   OFL
 URL:       http://www.greekfontsociety.gr/pages/en_typefaces18th.html
 Source0:   http://www.greekfontsociety.gr/%{archivename}.zip
 Source1:   %{name}-fontconfig.conf
-
+Source2:   %{fontname}.metainfo.xml
 
 BuildArch:     noarch
 BuildRequires: fontpackages-devel
@@ -59,8 +58,6 @@ done
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.otf %{buildroot}%{_fontdir}
 
@@ -72,17 +69,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
+* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 20070327-20
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20070327-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list