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

Parag Nemade pnemade at fedoraproject.org
Sat Oct 18 02:48:20 UTC 2014


commit a11f6ffc707a095a0097abe66944e17a97e56fc4
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sat Oct 18 08:18:13 2014 +0530

    Add metainfo file to show this font in gnome-software

 vollkorn-fonts.spec |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/vollkorn-fonts.spec b/vollkorn-fonts.spec
index 0ce585a..b937542 100644
--- a/vollkorn-fonts.spec
+++ b/vollkorn-fonts.spec
@@ -3,14 +3,14 @@
 
 Name:           %{fontname}-fonts
 Version:        2.1
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A serif Latin font with good readability
 
-Group:          User Interface/X
 License:        OFL
 URL:            http://friedrichalthausen.de/?page_id=411
 Source0:        http://friedrichalthausen.de/Vollkorn-%{version}.zip
 Source1:        %{name}-fontconfig.conf
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -36,8 +36,6 @@ done
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -49,17 +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
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.1-5
+- Add metainfo file to show this font in gnome-software
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list