From 21f36666e5f0bac66ba3366884b1fdcf7ffe6aad Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 7 Sep 2023 13:31:20 +0200 Subject: [PATCH] Validate appstream metadata --- gtk4.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk4.spec b/gtk4.spec index dec6303..d3767a0 100644 --- a/gtk4.spec +++ b/gtk4.spec @@ -65,6 +65,7 @@ BuildRequires: pkgconfig(xinerama) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xrender) +BuildRequires: /usr/bin/appstream-util BuildRequires: /usr/bin/rst2man # standard icons @@ -154,7 +155,8 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-4.0 mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/modules %check -desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop +appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/*.xml +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop %files -f gtk40.lang %license COPYING