Add metainfo file to show this font in gnome-software

This commit is contained in:
Parag Nemade 2014-10-16 22:50:40 +05:30
parent 4721f23d87
commit 766452c9c3

View File

@ -3,7 +3,7 @@
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 2.000 Version: 2.000
Release: 12%{?dist} Release: 13%{?dist}
Summary: Font for Nepali language Summary: Font for Nepali language
Group: User Interface/X Group: User Interface/X
License: GPL+ License: GPL+
@ -13,6 +13,7 @@ Source0: http://download.com.np/uploads/nepali_unicode/madan.zip
Source1: %{name}-fontconfig.conf Source1: %{name}-fontconfig.conf
Source2: ttf2sfd.pe Source2: ttf2sfd.pe
Source3: sfd2ttf.pe Source3: sfd2ttf.pe
Source4: %{fontname}.metainfo.xml
BuildArch: noarch BuildArch: noarch
BuildRequires: fontforge BuildRequires: fontforge
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
@ -56,11 +57,18 @@ install -m 0644 -p %{SOURCE1} \
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 %{SOURCE4} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} *.ttf %_font_pkg -f %{fontconf} *.ttf
%doc %{fontname}/license.txt %doc %{fontname}/license.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog %changelog
* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.000-13
- Add metainfo file to show this font in gnome-software
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-12 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild