[oflb-icelandic-fonts/f21] Add metainfo file
Richard Hughes
rhughes at fedoraproject.org
Thu Oct 16 18:35:38 UTC 2014
commit e4c4975a3e61ff49e0d51193e63564d4223f2ef8
Author: Parag Nemade <pnemade at redhat.com>
Date: Thu Oct 16 14:43:48 2014 +0530
Add metainfo file
oflb-icelandic-fonts.spec | 11 ++++++++++-
oflb-icelandic.metainfo.xml | 16 ++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/oflb-icelandic-fonts.spec b/oflb-icelandic-fonts.spec
index 449621a..20c1e81 100644
--- a/oflb-icelandic-fonts.spec
+++ b/oflb-icelandic-fonts.spec
@@ -6,7 +6,6 @@ Version: 1.001
Release: 16%{?dist}
Summary: Icelandic Magical Staves
-Group: User Interface/X
License: OFL
## Note that upstream is dead and there is no download link available at this minute
## so please don't report FTBFS bugs for this package.
@@ -16,6 +15,8 @@ Source1: %{name}-fontconfig.conf
Source2: README.license
#license text extracted from font file
Source3: License.txt
+Source4: %{fontname}.metainfo.xml
+
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
@@ -45,10 +46,18 @@ install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE4} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
%_font_pkg -f %{fontconf} *.otf
%doc README.license License.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
+* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat.com> - 1.001-17
+- Add metainfo file to show this font in gnome-software
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.001-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/oflb-icelandic.metainfo.xml b/oflb-icelandic.metainfo.xml
new file mode 100644
index 0000000..3eae706
--- /dev/null
+++ b/oflb-icelandic.metainfo.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->
+<component type="font">
+ <id>oflb-icelandic</id>
+ <metadata_license>CC-BY-3.0</metadata_license>
+ <name>Icelandic</name>
+ <summary>Icelandic Magical Staves</summary>
+ <description>
+ <p>
+ A font that includes most "magical" staves that have been "used" in Iceland.
+ </p>
+ </description>
+ <updatecontact>pnemade_at_redhat_dot_com</updatecontact>
+ <url type="homepage">http://openfontlibrary.org/media/files/asyropoulos/238</url>
+</component>
+
More information about the fonts-bugs
mailing list