[oflb-icelandic-fonts] Add metainfo file to show this font in gnome-software
Parag Nemade
pnemade at fedoraproject.org
Thu Oct 16 09:15:59 UTC 2014
commit aa3537250c468fe0bb498320e0295beea8ea923e
Author: Parag Nemade <pnemade at redhat.com>
Date: Thu Oct 16 14:45:52 2014 +0530
Add metainfo file to show this font in gnome-software
oflb-icelandic-fonts.spec | 11 ++++++++++-
1 files changed, 10 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
More information about the scm-commits
mailing list