Add metainfo file to show this font in gnome-software

This commit is contained in:
Parag Nemade 2014-10-17 07:31:42 +05:30
parent d4b6747231
commit bce160bb03

View File

@ -2,10 +2,9 @@
%global archive_name AbyssinicaSIL %global archive_name AbyssinicaSIL
%global fontconf 66-%{fontname}.conf %global fontconf 66-%{fontname}.conf
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 1.200 Version: 1.200
Release: 7%{?dist} Release: 8%{?dist}
Summary: SIL Abyssinica fonts Summary: SIL Abyssinica fonts
License: OFL 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 # 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 Source0: %{archive_name}%{version}.zip
Source1: %{fontconf} Source1: %{fontconf}
Source2: %{fontname}.metainfo.xml
BuildArch: noarch BuildArch: noarch
Requires: fontpackages-filesystem Requires: fontpackages-filesystem
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
BuildRequires: dos2unix BuildRequires: dos2unix
@ -56,14 +55,19 @@ install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \ ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf}
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE2} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} *.ttf %_font_pkg -f %{fontconf} *.ttf
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt %doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
%doc documentation/* %doc documentation/*
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog %changelog
* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.200-8
- Add metainfo file to show this font in gnome-software
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.200-7 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.200-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild