Add a MetaInfo file for the software center

This commit is contained in:
Richard Hughes 2014-10-16 09:36:00 +01:00
parent 5e792cf83e
commit 5fc2cf50f0
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<component type="font">
<id>sil-padauk-book</id>
<metadata_license>CC0-1.0</metadata_license>
<extends>sil-padauk</extends>
</component>

View File

@ -10,7 +10,7 @@ The font is a smart font using a Graphite description.
Name: %{fontname}-fonts
Version: 2.8
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A font for Burmese and the Myanmar script
Group: User Interface/X
@ -20,6 +20,8 @@ URL: http://scripts.sil.org/Padauk
Source0: %{archivename}.zip
Source1: %{name}-fontconfig.conf
Source2: %{name}-book-fontconfig.conf
Source3: %{fontname}.metainfo.xml
Source4: %{fontname}-book.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@ -31,6 +33,7 @@ Requires: fontpackages-filesystem
%_font_pkg -f %{fontconf}.conf Padauk.ttf Padauk-bold.ttf
%doc *.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
%package -n %{fontname}-book-fonts
Summary: A font for Burmese and the Myanmar script
@ -41,6 +44,7 @@ Padauk Book family font.
%common_desc
%_font_pkg -n book -f %{fontconf}-book.conf Padauk-book*.ttf
%{_datadir}/appdata/%{fontname}-book.metainfo.xml
%doc *.txt
%prep
@ -79,8 +83,16 @@ ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \
ln -s %{_fontconfig_templatedir}/%{fontconf}-book.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}-book.conf
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE3} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
install -Dm 0644 -p %{SOURCE4} \
%{buildroot}%{_datadir}/appdata/%{fontname}-book.metainfo.xml
%changelog
* Thu Oct 16 2014 Richard Hughes <richard@hughsie.com> - 2.8-7
- Add a MetaInfo file for the software center; this is a font we want to show.
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

8
sil-padauk.metainfo.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<component type="font">
<id>sil-padauk</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Padauk</name>
<summary>A font for Burmese and the Myanmar script</summary>
</component>