[adobe-source-code-pro-fonts] Add a MetaInfo file for the software center
Richard Hughes
rhughes at fedoraproject.org
Wed Oct 15 20:41:28 UTC 2014
commit 0079e427e94f68dad17db607567eab60ad34e0c5
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Oct 15 21:40:15 2014 +0100
Add a MetaInfo file for the software center
adobe-source-code-pro-fonts.spec | 11 ++++++++++-
adobe-source-code-pro.metainfo.xml | 8 ++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/adobe-source-code-pro-fonts.spec b/adobe-source-code-pro-fonts.spec
index b4a982a..3c896a1 100644
--- a/adobe-source-code-pro-fonts.spec
+++ b/adobe-source-code-pro-fonts.spec
@@ -3,7 +3,7 @@
Name: %{fontname}-fonts
Version: 1.017
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: A set of mono-spaced OpenType fonts designed for coding environments
Group: User Interface/X
@@ -11,6 +11,7 @@ License: OFL
URL: http://sourceforge.net/projects/sourcecodepro.adobe
Source0: http://downloads.sourceforge.net/project/sourcecodepro.adobe/SourceCodePro_FontsOnly-%{version}.zip
Source1: %{name}-fontconfig.conf
+Source2: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@@ -42,14 +43,22 @@ install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
%clean
%_font_pkg -f %{fontconf} *.otf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%doc SourceCodeProReadMe.html LICENSE.txt
%changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 1.017-5
+- Add a MetaInfo file for the software center; this is a font we want to show.
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.017-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/adobe-source-code-pro.metainfo.xml b/adobe-source-code-pro.metainfo.xml
new file mode 100644
index 0000000..7fef7c8
--- /dev/null
+++ b/adobe-source-code-pro.metainfo.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+ <id>adobe-source-code-pro</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Source Code</name>
+ <summary>A set of mono-spaced fonts designed for coding environments</summary>
+</component>
More information about the fonts-bugs
mailing list