spec: move AppStream validation to %check

https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/
suggests that can be in either; it is slightly more logical in %check.

Reported by Neal Gompa, thanks!
This commit is contained in:
Pino Toscano 2022-05-12 16:23:54 +02:00 committed by Martin Pitt
parent e3f668b584
commit a6508f5d99

View file

@ -34,12 +34,13 @@ ESLINT=0 NODE_ENV=production make
%install
%make_install
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
# drop source maps, they are large and just for debugging
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose
%check
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
# this can't be meaningfully tested during package build; tests happen through
# FMF (see plans/all.fmf) during package gating