[aisleriot] Validate the appdata file

Kalev Lember kalev at fedoraproject.org
Tue Aug 19 09:48:48 UTC 2014


commit 8bfc1a876363a962c1ece1c6a033c5aeedfc8dfb
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Aug 19 09:46:32 2014 +0200

    Validate the appdata file

 aisleriot.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot.spec b/aisleriot.spec
index cd49a12..ee8e12d 100644
--- a/aisleriot.spec
+++ b/aisleriot.spec
@@ -22,6 +22,7 @@ BuildRequires: itstool
 BuildRequires: guile-devel
 BuildRequires: yelp-tools
 BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
 
 Requires(pre): GConf2
 Requires(post): GConf2
@@ -48,10 +49,12 @@ rm $RPM_BUILD_ROOT%{_libdir}/valgrind/aisleriot.supp
 mv $RPM_BUILD_ROOT%{_datadir}/appdata/aisleriot.appdata.xml \
    $RPM_BUILD_ROOT%{_datadir}/appdata/sol.appdata.xml
 
-desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/sol.desktop
-
 %find_lang %{name} --with-gnome
 
+%check
+appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/sol.appdata.xml
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/sol.desktop
+
 %pre
 %gconf_schema_prepare aisleriot
 


More information about the scm-commits mailing list