[google-roboto-fonts] add AppData files
David Tardon
dtardon at fedoraproject.org
Thu Nov 20 09:25:05 UTC 2014
commit f2fd0b28e2c2b64723e66179d9d1093396ca164c
Author: David Tardon <dtardon at redhat.com>
Date: Thu Nov 20 10:19:32 2014 +0100
add AppData files
google-roboto-condensed.metainfo.xml | 6 ++++++
google-roboto-fonts.spec | 11 ++++++++++-
google-roboto.metainfo.xml | 15 +++++++++++++++
3 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/google-roboto-condensed.metainfo.xml b/google-roboto-condensed.metainfo.xml
new file mode 100644
index 0000000..3a48727
--- /dev/null
+++ b/google-roboto-condensed.metainfo.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+ <id>google-roboto-condensed</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <extends>google-roboto</extends>
+</component>
diff --git a/google-roboto-fonts.spec b/google-roboto-fonts.spec
index f3a79a6..728a951 100644
--- a/google-roboto-fonts.spec
+++ b/google-roboto-fonts.spec
@@ -6,11 +6,14 @@ Version: 1.2
Release: 3%{?dist}
Summary: Google Roboto fonts
-License: ASL 2.0
+# Only the metainfo.xml files are CC0
+License: ASL 2.0 and CC0
URL: https://www.google.com/fonts/specimen/Roboto
Source0: http://developer.android.com/downloads/design/%{pkgname}-%{version}.zip
Source1: 64-%{fontname}-condensed-fontconfig.conf
Source2: 64-%{fontname}-fontconfig.conf
+Source3: %{fontname}-condensed.metainfo.xml
+Source4: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: dos2unix
@@ -62,9 +65,15 @@ for fconf in %{fontconf}.conf %{fontconf}-condensed.conf; do
ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf
done
+# install appdata
+install -m 0755 -d %{buildroot}%{_datadir}/appdata
+install -m 0644 -p %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/appdata
+
%_font_pkg -f %{fontconf}.conf Roboto-*.ttf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -n condensed -f %{fontconf}-condensed.conf RobotoCondensed-*.ttf
+%{_datadir}/appdata/%{fontname}-condensed.metainfo.xml
%files -n %{fontname}-common
%doc %{fontsrcdir}/Roboto/LICENSE.txt
diff --git a/google-roboto.metainfo.xml b/google-roboto.metainfo.xml
new file mode 100644
index 0000000..e5e6019
--- /dev/null
+++ b/google-roboto.metainfo.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+ <id>google-roboto</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Google Roboto</name>
+ <summary>Google Roboto font family</summary>
+ <description>
+ <p>Roboto is a sans-serif typeface family introduced with Android Ice Cream
+ Sandwich operating system. Google describes the font as "modern, yet
+ approachable" and "emotional".
+ </p>
+ </description>
+ <updatecontact>dtardon at redhat.com</updatecontact>
+ <url type="homepage">https://www.google.com/fonts/specimen/Roboto</url>
+</component>
More information about the fonts-bugs
mailing list