Add a MetaInfo file for the software center
This commit is contained in:
parent
5573cd6b64
commit
37558e8a39
@ -12,7 +12,7 @@ New.
|
||||
Name: %{fontname}-fonts
|
||||
Summary: Fonts to replace commonly used Microsoft Windows fonts
|
||||
Version: 1.07.4
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Epoch: 1
|
||||
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two
|
||||
# exceptions:
|
||||
@ -54,6 +54,7 @@ Shared common files of Liberation font families.
|
||||
%verify(not md5 size mtime) %{_fontdir}/fonts.dir
|
||||
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
|
||||
%{catalogue}/%{name}
|
||||
%{_datadir}/appdata/Liberation.metainfo.xml
|
||||
|
||||
%package -n %{fontname}-sans-fonts
|
||||
Summary: Sans-serif fonts to replace commonly used Microsoft Arial
|
||||
@ -66,6 +67,7 @@ Requires: %{fontname}-fonts-common = %{epoch}:%{version}-%{release}
|
||||
This is Sans-serif TrueType fonts that replaced commonly used Microsoft Arial.
|
||||
|
||||
%_font_pkg -n sans -f *-%{fontname}-sans.conf LiberationSans-*.ttf
|
||||
%{_datadir}/appdata/LiberationSans.metainfo.xml
|
||||
|
||||
%package -n %{fontname}-serif-fonts
|
||||
Summary: Serif fonts to replace commonly used Microsoft Times New Roman
|
||||
@ -79,6 +81,7 @@ This is Serif TrueType fonts that replaced commonly used Microsoft Times New \
|
||||
Roman.
|
||||
|
||||
%_font_pkg -n serif -f *-%{fontname}-serif.conf LiberationSerif*.ttf
|
||||
%{_datadir}/appdata/LiberationSerif.metainfo.xml
|
||||
|
||||
%package -n %{fontname}-mono-fonts
|
||||
Summary: Monospace fonts to replace commonly used Microsoft Courier New
|
||||
@ -92,6 +95,7 @@ This is Monospace TrueType fonts that replaced commonly used Microsoft Courier \
|
||||
New.
|
||||
|
||||
%_font_pkg -n mono -f *-%{fontname}-mono.conf LiberationMono*.ttf
|
||||
%{_datadir}/appdata/LiberationMono.metainfo.xml
|
||||
|
||||
%package -n %{fontname}-narrow-fonts
|
||||
Summary: Sans-serif Narrow fonts to replace commonly used Microsoft Arial Narrow
|
||||
@ -105,6 +109,7 @@ This is Sans-Serif Narrow TrueType fonts that replaced commonly used Microsoft \
|
||||
Arial Narrow.
|
||||
|
||||
%_font_pkg -n narrow -f *-%{fontname}-narrow.conf LiberationSansNarrow*.ttf
|
||||
%{_datadir}/appdata/LiberationNarrow.metainfo.xml
|
||||
|
||||
%prep
|
||||
%setup -q -n %{archivename}
|
||||
@ -135,6 +140,55 @@ install -m 0644 -p %{SOURCE4} \
|
||||
install -m 0644 -p %{SOURCE5} \
|
||||
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-narrow.conf
|
||||
|
||||
# Add AppStream metadata
|
||||
mkdir -p %{buildroot}%{_datadir}/appdata
|
||||
cat > %{buildroot}%{_datadir}/appdata/Liberation.metainfo.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="font">
|
||||
<id>Liberation</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<name>Liberation</name>
|
||||
<summary>Open source versions of several commercial fonts</summary>
|
||||
</component>
|
||||
EOF
|
||||
cat > %{buildroot}%{_datadir}/appdata/LiberationSans.metainfo.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="font">
|
||||
<id>LiberationSans</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<extends>Liberation</extends>
|
||||
</component>
|
||||
EOF
|
||||
cat > %{buildroot}%{_datadir}/appdata/LiberationSerif.metainfo.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="font">
|
||||
<id>LiberationSerif</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<extends>Liberation</extends>
|
||||
</component>
|
||||
EOF
|
||||
cat > %{buildroot}%{_datadir}/appdata/LiberationMono.metainfo.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="font">
|
||||
<id>LiberationMono</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<extends>Liberation</extends>
|
||||
</component>
|
||||
EOF
|
||||
cat > %{buildroot}%{_datadir}/appdata/LiberationNarrow.metainfo.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="font">
|
||||
<id>LiberationNarrow</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<extends>Liberation</extends>
|
||||
</component>
|
||||
EOF
|
||||
|
||||
for fconf in %{fontconf}-mono.conf \
|
||||
%{fontconf}-sans.conf \
|
||||
%{fontconf}-serif.conf \
|
||||
@ -148,6 +202,9 @@ mkfontscale %{buildroot}%{_fontdir}
|
||||
mkfontdir %{buildroot}%{_fontdir}
|
||||
|
||||
%changelog
|
||||
* Wed Oct 15 2014 Richard Hughes <richard@hughsie.com> - 1:1.07.4-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> - 1:1.07.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user