[oflb-roadstencil-fonts] Add a MetaInfo file for the software center
Richard Hughes
rhughes at fedoraproject.org
Wed Oct 15 16:34:45 UTC 2014
commit 5df108e87de45cec4b5e1d68eb6706cf18361ce0
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Oct 15 17:34:36 2014 +0100
Add a MetaInfo file for the software center
oflb-roadstencil-fonts.spec | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/oflb-roadstencil-fonts.spec b/oflb-roadstencil-fonts.spec
index c21d8b3..60eb995 100644
--- a/oflb-roadstencil-fonts.spec
+++ b/oflb-roadstencil-fonts.spec
@@ -3,7 +3,7 @@
Name: %{fontname}-fonts
Version: 1.0
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: Roadstencil Fonts
Group: User Interface/X
@@ -25,7 +25,7 @@ Provides: roadstencil-fonts = %{version}-%{release}
A rough font influenced by roadwork stencils
%prep
-cp -p %{SOURCE0} %{SOURCE1} %{SOURCE2} .
+#nothing to do
%build
#nothing to do
@@ -42,10 +42,27 @@ install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
+# Add AppStream metadata
+mkdir -p %{buildroot}%{_datadir}/appdata
+cat > %{buildroot}%{_datadir}/appdata/RoadStencil.metainfo.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+ <id>RoadStencil</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Road Stencil</name>
+ <summary>A font based on painted street markings</summary>
+</component>
+EOF
+
%_font_pkg -f %{fontconf} *.otf
%doc License.txt
+%{_datadir}/appdata/RoadStencil.metainfo.xml
%changelog
+* Wed Oct 15 2014 Richard Hughes <richard at hughsie.com> - 1.0-16
+- 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.0-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list