From c3fd3d6cec88805c0c4a5f12935543dc6cc025cf Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 4 Feb 2020 07:24:53 +0100 Subject: Validate appdata during the build So we can be sure that we don't accidentally make a typo that makes it drop out of the distro appstream data again. --- firefox.spec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firefox.spec') diff --git a/firefox.spec b/firefox.spec index da19dee..a788d9a 100644 --- a/firefox.spec +++ b/firefox.spec @@ -220,6 +220,7 @@ BuildRequires: cbindgen %endif BuildRequires: nodejs BuildRequires: nasm >= 1.13 +BuildRequires: libappstream-glib Requires: mozilla-filesystem Requires: p11-kit-trust @@ -843,6 +844,8 @@ if (posix.stat("%{mozappdir}/browser/defaults/preferences", "type") == "link") t end end +%check +appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml %preun # is it a final removal? @@ -937,6 +940,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog * Tue Feb 04 2020 Kalev Lember - 72.0.2-3 - Fix various issues with appdata, making the validation pass again +- Validate appdata during the build * Tue Jan 28 2020 Fedora Release Engineering - 72.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild -- cgit