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

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


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

    Add metainfo file to show this font in gnome-software

 tulrich-tuffy-fonts.spec |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/tulrich-tuffy-fonts.spec b/tulrich-tuffy-fonts.spec
index 20fb8b1..c7ec40e 100644
--- a/tulrich-tuffy-fonts.spec
+++ b/tulrich-tuffy-fonts.spec
@@ -3,15 +3,14 @@
 
 Name:           %{fontname}-fonts
 Version:        1.28
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Generic sans font
 
-Group:          User Interface/X
 License:        Public Domain
 URL:            http://tulrich.com/fonts/
 Source0:        http://tulrich.com/fonts/tuffy-20120614.tar.gz
 Source1:        %{name}-fontconfig.conf
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source2:        %{fontname}.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -43,8 +42,6 @@ EOF
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -57,16 +54,18 @@ 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 LICENSE.txt
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.28-5
+- Add metainfo file to show this font in gnome-software
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.28-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list