Add metainfo file to show this font in gnome-software

This commit is contained in:
Parag Nemade 2014-10-19 12:29:56 +05:30
parent 3e0d196591
commit eed84d1d3e

View File

@ -3,15 +3,15 @@
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 2.004 Version: 2.004
Release: 3%{?dist} Release: 4%{?dist}
Summary: Modern style true type font Summary: Modern style true type font
Group: User Interface/X
License: OFL License: OFL
URL: http://aajohan.deviantart.com URL: http://aajohan.deviantart.com
Source0: http://www.deviantart.com/download/105395949/comfortaa___font_by_aajohan-d1qr019.zip Source0: http://www.deviantart.com/download/105395949/comfortaa___font_by_aajohan-d1qr019.zip
Source1: %{name}-fontconfig.conf Source1: %{name}-fontconfig.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source2: %{fontname}.metainfo.xml
BuildArch: noarch BuildArch: noarch
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem Requires: fontpackages-filesystem
@ -38,7 +38,6 @@ done
%build %build
%install %install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir} install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir} install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
@ -49,15 +48,18 @@ install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \ ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf}
%clean # Add AppStream metadata
rm -rf %{buildroot} 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 %doc FONTLOG.txt OFL.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog %changelog
* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.004-4
- Add metainfo file to show this font in gnome-software
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.004-3 * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.004-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild