From 3e90b14dced89d42090fa918e6d4435831d08c3f Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 5 Jun 2019 09:48:14 +0000 Subject: [PATCH] Install metainfo files under %{_metainfodir}. --- linux-libertine-fonts.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/linux-libertine-fonts.spec b/linux-libertine-fonts.spec index 10684ed..65e553e 100644 --- a/linux-libertine-fonts.spec +++ b/linux-libertine-fonts.spec @@ -14,7 +14,7 @@ proprietary standard fonts. Name: %{fontname}-fonts Version: 5.3.0 -Release: 14.%{posttag}%{?dist} +Release: 15.%{posttag}%{?dist} Summary: Linux Libertine Open Fonts License: GPLv2+ with exceptions or OFL @@ -27,7 +27,7 @@ Source4: libertine.metainfo.xml Source5: biolinum.metainfo.xml BuildArch: noarch -BuildRequires: fontpackages-devel +BuildRequires: fontpackages-devel libappstream-glib #BuildRequires: fontforge Requires: %{name}-common = %{version}-%{release} @@ -87,24 +87,30 @@ done # Add AppStream metadata install -Dm 0644 -p %{SOURCE4} \ - %{buildroot}%{_datadir}/appdata/libertine.metainfo.xml + %{buildroot}%{_metainfodir}/libertine.metainfo.xml install -Dm 0644 -p %{SOURCE5} \ - %{buildroot}%{_datadir}/appdata/biolinum.metainfo.xml + %{buildroot}%{_metainfodir}/biolinum.metainfo.xml + +%check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %files common %license GPL.txt LICENCE.txt OFL-1.1.txt %doc Bugs.txt ChangeLog.txt Readme-TEX.txt README %_font_pkg -f %{fontconf_libertine} LinLibertine*.otf -%{_datadir}/appdata/libertine.metainfo.xml +%{_metainfodir}/libertine.metainfo.xml %{_fontconfig_templatedir}/%{fontconf_metrics} %{_fontconfig_confdir}/%{fontconf_metrics} %_font_pkg -n biolinum -f %{fontconf_biolinum} LinBiolinum*.otf -%{_datadir}/appdata/biolinum.metainfo.xml +%{_metainfodir}/biolinum.metainfo.xml %changelog +* Wed Jun 5 2019 Akira TAGOH - 5.3.0-15.2012_07_02 +- Install metainfo files under %%{_metainfodir}. + * Fri Feb 01 2019 Fedora Release Engineering - 5.3.0-14.2012_07_02 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild