[apa-new-athena-unicode-fonts] Add metainfo file to show this font in gnome-software
Parag Nemade
pnemade at fedoraproject.org
Sun Oct 19 06:00:09 UTC 2014
commit eca244d0c38609c4fa047d8b036ea5d807d57e4a
Author: Parag Nemade <pnemade at redhat.com>
Date: Sun Oct 19 11:30:04 2014 +0530
Add metainfo file to show this font in gnome-software
apa-new-athena-unicode-fonts.spec | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/apa-new-athena-unicode-fonts.spec b/apa-new-athena-unicode-fonts.spec
index ff5be0c..bf8d764 100644
--- a/apa-new-athena-unicode-fonts.spec
+++ b/apa-new-athena-unicode-fonts.spec
@@ -4,15 +4,14 @@
Name: %{fontname}-fonts
Version: 3.4
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: New Athena Unicode is a libre/open multilingual font
-Group: User Interface/X
License: OFL
URL: http://apagreekkeys.org/NAUdownload.html
Source0: http://apagreekkeys.org/fonts/NAU3_4ttf.zip
Source1: %{name}-fontconfig.conf
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source2: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@@ -20,11 +19,11 @@ Requires: fontpackages-filesystem
%description
New Athena Unicode is an libre/open multilingual font distributed by
- the American Philological Association. It follows the latest version
- of the Unicode standard and includes characters for English and
+the American Philological Association. It follows the latest version
+of the Unicode standard and includes characters for English and
Western European languages, polytonic Greek, Coptic, Old Italic,
and Demotic Egyptian transliteration, as well as metrical symbols
- and other characters used by classical scholars.
+and other characters used by classical scholars.
%prep
%setup -q -n NAU3_4ttf
@@ -32,8 +31,6 @@ and Demotic Egyptian transliteration, as well as metrical symbols
%build
%install
-rm -fr %{buildroot}
-
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
@@ -45,16 +42,18 @@ install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
-
-%clean
-rm -fr %{buildroot}
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} *.ttf
-
%doc *.pdf *.rtf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
+* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 3.4-10
+- Add metainfo file to show this font in gnome-software
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the fonts-bugs
mailing list