diff --git a/liberation-fonts.spec b/liberation-fonts.spec index 485236f..77c0d41 100644 --- a/liberation-fonts.spec +++ b/liberation-fonts.spec @@ -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 < + + + Liberation + CC0-1.0 + Liberation + Open source versions of several commercial fonts + +EOF +cat > %{buildroot}%{_datadir}/appdata/LiberationSans.metainfo.xml < + + + LiberationSans + CC0-1.0 + Liberation + +EOF +cat > %{buildroot}%{_datadir}/appdata/LiberationSerif.metainfo.xml < + + + LiberationSerif + CC0-1.0 + Liberation + +EOF +cat > %{buildroot}%{_datadir}/appdata/LiberationMono.metainfo.xml < + + + LiberationMono + CC0-1.0 + Liberation + +EOF +cat > %{buildroot}%{_datadir}/appdata/LiberationNarrow.metainfo.xml < + + + LiberationNarrow + CC0-1.0 + Liberation + +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 - 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 - 1:1.07.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild