Validate appstream metadata

This commit is contained in:
Kalev Lember 2023-09-07 13:31:20 +02:00
parent 9166550290
commit 21f36666e5

View File

@ -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