[gnome-maps] Validate AppData in check

David King amigadave at fedoraproject.org
Sun Feb 15 20:45:51 UTC 2015


commit 69789e16e213cfee3a0690a781f7e7731ef0ff05
Author: David King <amigadave at amigadave.com>
Date:   Sun Feb 15 17:11:52 2015 +0000

    Validate AppData in check
    
    https://fedoraproject.org/wiki/Packaging:AppData

 gnome-maps.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gnome-maps.spec b/gnome-maps.spec
index 357a285..55bac7b 100644
--- a/gnome-maps.spec
+++ b/gnome-maps.spec
@@ -10,6 +10,7 @@ Source0:        http://download.gnome.org/sources/gnome-maps/3.15/gnome-maps-%{v
 BuildRequires:  gjs-devel
 BuildRequires:  intltool
 BuildRequires:  desktop-file-utils
+BuildRequires:  /usr/bin/appstream-util
 
 Requires:       clutter
 Requires:       clutter-gtk
@@ -43,10 +44,14 @@ make %{?_smp_mflags}
 
 %install
 %make_install
-find $RPM_BUILD_ROOT -name '*.la' -delete
-desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Maps.desktop
+find %{buildroot} -name '*.la' -delete
 %find_lang %{name}
 
+
+%check
+appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/org.gnome.Maps.appdata.xml
+desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.Maps.desktop
+
 %post
 touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
 touch --no-create %{_datadir}/icons/HighContrast >&/dev/null || :
@@ -82,6 +87,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 * Sun Feb 15 2015 David King <amigadave at amigadave.com> - 3.15.90-1
 - Update to 3.15.90.1
 - Use license macro for COPYING
+- Validate AppData in check
 
 * Mon Jan 19 2015 Richard Hughes <rhughes at redhat.com> - 3.15.4-1
 - Update to 3.15.4


More information about the scm-commits mailing list