Add metainfo file to show this font in gnome-software

This commit is contained in:
Parag Nemade 2014-10-17 23:10:40 +05:30
parent b9e7ebfe2b
commit 5fad62333f

View File

@ -3,10 +3,9 @@
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 0.003 Version: 0.003
Release: 18%{?dist} Release: 19%{?dist}
Summary: Jomolhari a Bhutanese style font for Tibetan and Dzongkha Summary: Jomolhari a Bhutanese style font for Tibetan and Dzongkha
Group: User Interface/X
License: OFL License: OFL
# Looks like currently following URL is gone now. Maybe temporary issue # Looks like currently following URL is gone now. Maybe temporary issue
#URL: http://chris.fynn.googlepages.com/jomolhari #URL: http://chris.fynn.googlepages.com/jomolhari
@ -14,6 +13,7 @@ License: OFL
#URL: https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari #URL: https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari
Source0: http://chris.fynn.googlepages.com/jomolhari-alpha003c.zip Source0: http://chris.fynn.googlepages.com/jomolhari-alpha003c.zip
Source1: %{name}-fontconfig.conf Source1: %{name}-fontconfig.conf
Source2: %{fontname}.metainfo.xml
BuildArch: noarch BuildArch: noarch
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
@ -49,10 +49,18 @@ do
mv -f ${i}.tmp $i mv -f ${i}.tmp $i
done done
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE2} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f 65-0-%{fontname}.conf *.ttf %_font_pkg -f 65-0-%{fontname}.conf *.ttf
%doc FONTLOG.txt OFL-FAQ.txt OFL.txt %doc FONTLOG.txt OFL-FAQ.txt OFL.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog %changelog
* Fri Oct 17 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.003-19
- Add metainfo file to show this font in gnome-software
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.003-18 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.003-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild