From 69e004a4e7d52b949c76fe495ec1cf79ad6c8e22 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 18 Feb 2015 14:00:36 +0000 Subject: [PATCH] Validate AppData in check https://fedoraproject.org/wiki/Packaging:AppData --- baobab.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/baobab.spec b/baobab.spec index d5d718c..b3bfaab 100644 --- a/baobab.spec +++ b/baobab.spec @@ -11,6 +11,7 @@ URL: https://wiki.gnome.org/Apps/Baobab Source0: https://download.gnome.org/sources/baobab/3.15/%{name}-%{version}.tar.xz BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version} +BuildRequires: /usr/bin/appstream-util BuildRequires: intltool BuildRequires: desktop-file-utils BuildRequires: itstool @@ -44,7 +45,8 @@ make install DESTDIR=$RPM_BUILD_ROOT %check -desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.baobab.desktop +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/org.gnome.baobab.appdata.xml +desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.baobab.desktop %post @@ -88,6 +90,7 @@ done - Use license macro for COPYING and COPYING.docs - Use pkgconfig for BuildRequires - Update URL +- Validate AppData in check * Tue Oct 14 2014 Kalev Lember - 3.14.1-1 - Update to 3.14.1