From 18330aad4de64bf16dcbc4bcc1fb879482cbe38c Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Jun 05 2019 09:56:41 +0000 Subject: Install metainfo files under %{_metainfodir}. --- diff --git a/motoya-lcedar-fonts.spec b/motoya-lcedar-fonts.spec index 5ac2d87..6d58384 100644 --- a/motoya-lcedar-fonts.spec +++ b/motoya-lcedar-fonts.spec @@ -6,7 +6,7 @@ Name: %{fontname}-fonts Version: 1.00 -Release: 0.19.%{archivedate}git%{?dist} +Release: 0.20.%{archivedate}git%{?dist} Summary: Japanese Gothic-typeface TrueType fonts by MOTOYA Co,LTD License: ASL 2.0 @@ -18,7 +18,7 @@ Source10: %{fontname}-fontconfig.conf Source11: %{fontname}.metainfo.xml BuildArch: noarch -BuildRequires: fontpackages-devel +BuildRequires: fontpackages-devel libappstream-glib Requires: fontpackages-filesystem %description @@ -47,15 +47,21 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdi # Add AppStream metadata install -Dm 0644 -p %{SOURCE11} \ - %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml + %{buildroot}%{_metainfodir}/%{fontname}.metainfo.xml + +%check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %_font_pkg -f %{fontconf} *.ttf %doc readme.txt %license notice.txt -%{_datadir}/appdata/%{fontname}.metainfo.xml +%{_metainfodir}/%{fontname}.metainfo.xml %changelog +* Wed Jun 5 2019 Akira TAGOH - 1.00-0.20.20110406git +- Install metainfo files under %%{_metainfodir}. + * Fri May 17 2019 Akira TAGOH - 1.00-0.19.20110406git - Fix a typo in conf.