From bce160bb0379ff9a1fc9a495b888f212c96b6c3e Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Fri, 17 Oct 2014 07:31:42 +0530 Subject: [PATCH] Add metainfo file to show this font in gnome-software --- sil-abyssinica-fonts.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sil-abyssinica-fonts.spec b/sil-abyssinica-fonts.spec index 0a408bd..674a9ee 100644 --- a/sil-abyssinica-fonts.spec +++ b/sil-abyssinica-fonts.spec @@ -2,10 +2,9 @@ %global archive_name AbyssinicaSIL %global fontconf 66-%{fontname}.conf - Name: %{fontname}-fonts Version: 1.200 -Release: 7%{?dist} +Release: 8%{?dist} Summary: SIL Abyssinica fonts License: OFL @@ -13,9 +12,9 @@ URL: http://scripts.sil.org/AbyssinicaSIL # download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.200.zip&filename=AbyssinicaSIL1.200.zip Source0: %{archive_name}%{version}.zip Source1: %{fontconf} +Source2: %{fontname}.metainfo.xml BuildArch: noarch - Requires: fontpackages-filesystem BuildRequires: fontpackages-devel BuildRequires: dos2unix @@ -56,14 +55,19 @@ install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf} ln -s %{_fontconfig_templatedir}/%{fontconf} \ %{buildroot}%{_fontconfig_confdir}/%{fontconf} +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE2} \ + %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml %_font_pkg -f %{fontconf} *.ttf - %doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt %doc documentation/* - +%{_datadir}/appdata/%{fontname}.metainfo.xml %changelog +* Thu Oct 16 2014 Parag Nemade - 1.200-8 +- Add metainfo file to show this font in gnome-software + * Sun Jun 08 2014 Fedora Release Engineering - 1.200-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild