[chisholm-letterslaughing-fonts] Add metainfo file to show this font in gnome-software
Parag Nemade
pnemade at fedoraproject.org
Sat Oct 18 16:26:23 UTC 2014
commit 397553336e8cb7c3d01f42a991bc8042e8db4f36
Author: Parag Nemade <pnemade at redhat.com>
Date: Sat Oct 18 21:56:17 2014 +0530
Add metainfo file to show this font in gnome-software
chisholm-letterslaughing-fonts.spec | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/chisholm-letterslaughing-fonts.spec b/chisholm-letterslaughing-fonts.spec
index f66f57a..f6e5e7c 100644
--- a/chisholm-letterslaughing-fonts.spec
+++ b/chisholm-letterslaughing-fonts.spec
@@ -4,15 +4,14 @@
Name: %{fontname}-fonts
Version: 20030323
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Letters Laughing is a decorative/LED sans-serif font
-Group: User Interface/X
License: OFL
URL: http://glyphobet.net/fonts/free/?font=lleqcdd
Source0: %{archivename}
Source1: %{name}-fontconfig.conf
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Source2: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@@ -27,8 +26,6 @@ Letters Laughing is a decorative/LED sans-serif font
%build
%install
-rm -fr %{buildroot}
-
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
@@ -41,13 +38,17 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
-%clean
-rm -rf %{buildroot}
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} *.ttf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
+* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 20030323-9
+- Add metainfo file to show this font in gnome-software
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20030323-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the fonts-bugs
mailing list