[abattis-cantarell-fonts/f21] Added metainfo for gnome-software.

Pravin Satpute pravins at fedoraproject.org
Mon Nov 17 07:33:55 UTC 2014


commit 1a847a6e91df4879ace20e8c2653e2b3c2202030
Author: Pravin Satpute <psatpute at redhat.com>
Date:   Mon Nov 17 13:03:45 2014 +0530

    Added metainfo for gnome-software.

 abattis-cantarell-fonts.spec   |   11 ++++++++++-
 abattis-cantarell.metainfo.xml |   15 +++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/abattis-cantarell-fonts.spec b/abattis-cantarell-fonts.spec
index 6d4b4eb..a5923a2 100644
--- a/abattis-cantarell-fonts.spec
+++ b/abattis-cantarell-fonts.spec
@@ -8,13 +8,14 @@
 
 Name: %{fontname}-fonts
 Version: 0.0.16
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Cantarell, a Humanist sans-serif font family
 
 Group: User Interface/X
 License: OFL
 URL: http://abattis.org/cantarell/
 Source0: http://download.gnome.org/sources/%{actualname}-fonts/0.0/%{actualname}-fonts-%{version}.tar.xz
+Source1: %{fontname}.metainfo.xml
 
 BuildArch: noarch
 BuildRequires: fontpackages-devel
@@ -45,10 +46,18 @@ install -m 0644 -p fontconfig/%{fontconf} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE1} \
+       %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
 %_font_pkg -f %{fontconf} *.otf
 %doc COPYING NEWS README
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Mon Nov 17 2014 Pravin Satpute <psatpute at redhat.com> - 0.0.16-2
+- Added metainfo for gnome-software.
+
 * Tue Sep 23 2014 Kalev Lember <kalevlember at gmail.com> - 0.0.16-1
 - Update to 0.0.16
 
diff --git a/abattis-cantarell.metainfo.xml b/abattis-cantarell.metainfo.xml
new file mode 100644
index 0000000..69ddcdd
--- /dev/null
+++ b/abattis-cantarell.metainfo.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>abattis-cantarell</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <name>Cantarell</name>
+  <summary>Cantarell, a Humanist sans-serif font family</summary>
+  <description>
+    <p>
+      Cantarell is a set of fonts designed by Dave Crossland.
+      It is a sans-serif humanist typeface family.
+    </p>
+  </description>
+  <updatecontact>psatpute_at_redhat_dot_com</updatecontact>
+  <url type="homepage">http://abattis.org/cantarell/</url>
+</component>


More information about the fonts-bugs mailing list