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

Parag Nemade pnemade at fedoraproject.org
Fri Oct 17 11:15:34 UTC 2014


commit 04d34b0247549c39a6d3f11f68ab4e198354242a
Author: Parag Nemade <pnemade at redhat.com>
Date:   Fri Oct 17 16:45:26 2014 +0530

    Add metainfo file to show this font in gnome-software

 gfs-complutum-fonts.spec |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/gfs-complutum-fonts.spec b/gfs-complutum-fonts.spec
index a0a3ca7..626661c 100644
--- a/gfs-complutum-fonts.spec
+++ b/gfs-complutum-fonts.spec
@@ -13,7 +13,7 @@ License:   OFL
 URL:       http://www.greekfontsociety.gr/pages/en_typefaces16th.html
 Source0:   http://www.greekfontsociety.gr/%{archivename}.zip
 Source1:   %{name}-fontconfig.conf
-
+Source2:   %{fontname}.metainfo.xml
 
 BuildArch:     noarch
 BuildRequires: fontpackages-devel
@@ -64,8 +64,6 @@ done
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.otf %{buildroot}%{_fontdir}
 
@@ -77,17 +75,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> - 20070413-20
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20070413-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list