[chisholm-to-be-continued-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Sun Oct 19 03:03:35 UTC 2014


commit dcd147728cdffffb62f61e22c927ba5b8f611a89
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sun Oct 19 08:33:29 2014 +0530

    Add metainfo file to show this font in gnome-software

 chisholm-to-be-continued-fonts.spec |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/chisholm-to-be-continued-fonts.spec b/chisholm-to-be-continued-fonts.spec
index a5961fd..8435b95 100644
--- a/chisholm-to-be-continued-fonts.spec
+++ b/chisholm-to-be-continued-fonts.spec
@@ -3,15 +3,14 @@
 
 Name:           %{fontname}-fonts
 Version:        20090124
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Decorative Sans Serif Font
 
-Group:          User Interface/X
 License:        OFL
 URL:            http://www.theory.org/~matt/fonts/free/?font=2bc
 Source0:        http://www.theory.org/~matt/fonts/free/download/2bc.zip
 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 @@ To Be Continued is a decorative/graffiti sans-serif font.
 
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -41,17 +38,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
-
-%dir %{_fontdir}
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 20090124-11
+- Add metainfo file to show this font in gnome-software
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20090124-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list