Add a MetaInfo file for the software center

This commit is contained in:
Richard Hughes 2014-10-17 21:15:07 +01:00
parent 812cee59e4
commit b2005c772f
5 changed files with 50 additions and 1 deletions

View File

@ -16,13 +16,17 @@ original style, using an open collaborative development process.
Name: %{fontname}-fonts
Version: 2.34
Release: 3%{?alphatag}%{?dist}
Release: 4%{?alphatag}%{?dist}
Summary: DejaVu fonts
Group: User Interface/X
License: Bitstream Vera and Public Domain
URL: http://%{name}.org/
Source0: %{?!alphatag:http://downloads.sourceforge.net/%{fontname}}%{?alphatag:%{fontname}.sourceforge.net/snapshots}/%{archivename}.tar.bz2
Source1: %{fontname}.metainfo.xml
Source2: %{fontname}-sans.metainfo.xml
Source3: %{fontname}-sans-mono.metainfo.xml
Source4: %{fontname}-serif.metainfo.xml
# Older fontforge versions will not work due to sfd format changes
@ -65,6 +69,7 @@ This package consists of the DejaVu sans-serif variable-width font faces, in
their unabridged version.
%_font_pkg -n sans -f *-%{fontname}-sans.conf DejaVuSans.ttf DejaVuSans-*.ttf DejaVuSansCondensed*.ttf
%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
%package -n %{fontname}-serif-fonts
@ -80,6 +85,7 @@ This package consists of the DejaVu serif variable-width font faces, in their
unabridged version.
%_font_pkg -n serif -f *-%{fontname}-serif.conf DejaVuSerif.ttf DejaVuSerif-*.ttf DejaVuSerifCondensed*.ttf
%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
%package -n %{fontname}-sans-mono-fonts
@ -95,6 +101,7 @@ This package consists of the DejaVu sans-serif monospace font faces, in their
unabridged version.
%_font_pkg -n sans-mono -f *-%{fontname}-sans-mono.conf DejaVuSansMono*.ttf
%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
%package -n %{fontname}-lgc-sans-fonts
@ -173,6 +180,15 @@ for fontconf in *conf ; do
%{buildroot}%{_fontconfig_confdir}/$fontconf
done
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE1} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
install -Dm 0644 -p %{SOURCE2} \
%{buildroot}%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
install -Dm 0644 -p %{SOURCE2} \
%{buildroot}%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
install -Dm 0644 -p %{SOURCE3} \
%{buildroot}%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
%clean
rm -fr %{buildroot}
@ -180,11 +196,15 @@ rm -fr %{buildroot}
%files common
%defattr(0644,root,root,0755)
%{_datadir}/appdata/%{fontname}.metainfo.xml
%doc AUTHORS BUGS LICENSE NEWS README
%doc build/unicover.txt build/status.txt.bz2
%changelog
* Fri Oct 17 2014 Richard Hughes <richard@hughsie.com> - 2.34-4
- Add a MetaInfo file for the software center; this is a font we want to show.
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.34-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

View File

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

7
dejavu-sans.metainfo.xml Normal file
View File

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

View File

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

8
dejavu.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>dejavu</id>
<metadata_license>CC0-1.0</metadata_license>
<name>DejaVu</name>
<summary>A set of sans-serif font faces</summary>
</component>