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

Parag Nemade pnemade at fedoraproject.org
Sat Oct 18 11:51:07 UTC 2014


commit 7ba8430290de6268a3de393552261c21d969ddf8
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sat Oct 18 17:21:01 2014 +0530

    Add metainfo file to show this font in gnome-software

 overpass-fonts.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/overpass-fonts.spec b/overpass-fonts.spec
index 680e60c..3bc7524 100644
--- a/overpass-fonts.spec
+++ b/overpass-fonts.spec
@@ -3,13 +3,15 @@
 
 Name:		%{fontname}-fonts
 Version:	1.01
-Release:	7%{?dist}
+Release:	8%{?dist}
 Summary:	Typeface based on the U.S. interstate highway road signage type system
 License:	OFL or ASL 2.0 
 URL:		https://fedorahosted.org/overpass-fonts/
 Source0:	https://fedorahosted.org/releases/o/v/overpass-fonts/Overpass-Fonts-%{version}.tar.gz
 Source1:	%{name}-fontconfig.conf
 Source2:	http://www.apache.org/licenses/LICENSE-2.0.txt
+Source3:        %{fontname}.metainfo.xml
+
 BuildArch:	noarch
 BuildRequires:	fontpackages-devel
 Requires:	fontpackages-filesystem
@@ -38,10 +40,18 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
 		%{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE3} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
 %_font_pkg -f %{fontconf} *.ttf
 %doc Overpass-OFL.txt LICENSE-2.0.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.01-8
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.01-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list