[beteckna-fonts] Add a MetaInfo file for the software center

Richard Hughes rhughes at fedoraproject.org
Fri Oct 17 18:39:35 UTC 2014


commit 173f31267096f5d3d0d15e99c812ef28556e5f09
Author: Richard Hughes <richard at hughsie.com>
Date:   Fri Oct 17 19:37:45 2014 +0100

    Add a MetaInfo file for the software center

 beteckna-fonts.spec              |   19 ++++++++++++++++++-
 beteckna-lower-case.metainfo.xml |    7 +++++++
 beteckna-small-caps.metainfo.xml |    7 +++++++
 beteckna.metainfo.xml            |    8 ++++++++
 4 files changed, 40 insertions(+), 1 deletions(-)
---
diff --git a/beteckna-fonts.spec b/beteckna-fonts.spec
index 69ad55a..ed8bd38 100644
--- a/beteckna-fonts.spec
+++ b/beteckna-fonts.spec
@@ -10,7 +10,7 @@ Special character &#x2708; ( ✈ ) depicts two cats.
 
 Name:		%{fontname}-fonts
 Version:	0.3
-Release:	12%{?dist}
+Release:	13%{?dist}
 Summary:	Beteckna sans-serif fonts
 
 Group:		User Interface/X
@@ -20,6 +20,9 @@ Source0:	http://gnu.ethz.ch/linuks.mine.nu/beteckna/beteckna-0.3.tar.gz
 Source1:	%{name}-fontconfig.conf
 Source2:	%{name}-lower-case-fontconfig.conf
 Source3:	%{name}-small-caps-fontconfig.conf
+Source4:	%{fontname}.metainfo.xml
+Source5:	%{fontname}-lower-case.metainfo.xml
+Source6:	%{fontname}-small-caps.metainfo.xml
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:	noarch
@@ -52,6 +55,7 @@ Requires:	%{name}-common = %{version}-%{release}
 These are lower case Beteckna Fonts.
 
 %_font_pkg -f  %{fontconf}-lower-case.conf -n lower-case BetecknaLowerCase*.otf
+%{_datadir}/appdata/%{fontname}-lower-case.metainfo.xml
 
 
 # 1 Small Caps
@@ -65,6 +69,7 @@ Requires:	%{name}-common = %{version}-%{release}
 These are small caps Beteckna Fonts.
 
 %_font_pkg -n small-caps -f  %{fontconf}-small-caps.conf BetecknaSmallCaps.otf
+%{_datadir}/appdata/%{fontname}-small-caps.metainfo.xml
 
 %prep
 %setup -q -n beteckna-0.3
@@ -108,14 +113,26 @@ do
 	ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE5} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-lower-case.metainfo.xml
+install -Dm 0644 -p %{SOURCE6} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-small-caps.metainfo.xml
+
 %clean
 rm -rf %{buildroot}
 
 %files common
 %defattr(0644,root,root,0755)
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 %doc AUTHORS LICENSE CHANGELOG readme.html
 
 %changelog
+* Fri Oct 17 2014 Richard Hughes <richard at hughsie.com> - 0.3-13
+- 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> - 0.3-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/beteckna-lower-case.metainfo.xml b/beteckna-lower-case.metainfo.xml
new file mode 100644
index 0000000..7ac66e2
--- /dev/null
+++ b/beteckna-lower-case.metainfo.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+  <id>beteckna-lower-case</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>beteckna</extends>
+</component>
diff --git a/beteckna-small-caps.metainfo.xml b/beteckna-small-caps.metainfo.xml
new file mode 100644
index 0000000..fee5d13
--- /dev/null
+++ b/beteckna-small-caps.metainfo.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+  <id>beteckna-small-caps</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>beteckna</extends>
+</component>
diff --git a/beteckna.metainfo.xml b/beteckna.metainfo.xml
new file mode 100644
index 0000000..b206bfc
--- /dev/null
+++ b/beteckna.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>beteckna</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Beteckna</name>
+  <summary>Beteckna sans-serif fonts</summary>
+</component>


More information about the fonts-bugs mailing list