[lato-fonts/f21] Add a MetaInfo file for the software center
Richard Hughes
rhughes at fedoraproject.org
Thu Oct 16 18:43:30 UTC 2014
commit 6562aefa47b24c454672a6b3f0270114c307da8c
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Oct 15 17:02:55 2014 +0100
Add a MetaInfo file for the software center
lato-fonts.spec | 10 +++++++++-
lato.metainfo.xml | 16 ++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/lato-fonts.spec b/lato-fonts.spec
index 0eb3837..fee455a 100644
--- a/lato-fonts.spec
+++ b/lato-fonts.spec
@@ -3,7 +3,7 @@
Name: %{fontname}-fonts
Version: 2.010
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A sanserif typeface family
Group: User Interface/X
@@ -12,6 +12,7 @@ URL: http://www.latofonts.com/
# Fonts retrieved 2014-09-04 from http://www.latofonts.com/download/Lato2OFL.zip
Source0: %{name}-%{version}.zip
Source1: %{name}-fontconfig.conf
+Source2: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@@ -64,12 +65,19 @@ install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_f
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} *.ttf
%doc Lato2OFL/{OFL.txt,README.txt}
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 2.010-2
+- Add a MetaInfo file for the software center; this is a font we want to show.
+
* Thu Sep 04 2014 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.010-1
- Update to 2.010
diff --git a/lato.metainfo.xml b/lato.metainfo.xml
new file mode 100644
index 0000000..2196aee
--- /dev/null
+++ b/lato.metainfo.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+ <id>lato</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Lato</name>
+ <summary>A classical sans-serif font family</summary>
+ <description>
+ <p>
+ The semi-rounded details of the letters give Lato a feeling of warmth,
+ while the strong structure provides stability and seriousness.
+ </p>
+ </description>
+ <updatecontact>richard_at_hughsie_dot_com</updatecontact>
+ <url type="homepage">http://www.latofonts.com/</url>
+</component>
More information about the fonts-bugs
mailing list