[sound-juicer] Validate AppData in check

David King amigadave at fedoraproject.org
Mon Mar 2 15:53:17 UTC 2015


commit f580d2fdc257411d2bf9f69a5fa6e60803756055
Author: David King <amigadave at amigadave.com>
Date:   Mon Mar 2 15:39:05 2015 +0000

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

 sound-juicer.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/sound-juicer.spec b/sound-juicer.spec
index b98ccca..170e2b4 100644
--- a/sound-juicer.spec
+++ b/sound-juicer.spec
@@ -33,6 +33,7 @@ BuildRequires:  gnome-common
 #BuildRequires:  automake autoconf libtool
 BuildRequires:  desktop-file-utils
 BuildRequires:	itstool
+BuildRequires:  /usr/bin/appstream-util
 
 ExcludeArch: s390 s390x
 
@@ -59,6 +60,11 @@ desktop-file-install \
 
 %find_lang sound-juicer --with-gnome
 
+
+%check
+appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/appdata/sound-juicer.appdata.xml
+
+
 %post
 update-desktop-database &> /dev/null || :
 touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
@@ -91,6 +97,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 * Mon Mar 02 2015 David King <amigadave at amigadave.com> - 3.15.91-1
 - Update to 3.15.91
 - Use license macro for COPYING
+- Validate AppData in check
 
 * Sun Dec 14 2014 David King <amigadave at amigadave.com> - 3.14.0-3
 - Stop requiring gtk2 (#1147157)


More information about the scm-commits mailing list