[seahorse/f22] Validate AppData in check

David King amigadave at fedoraproject.org
Thu Feb 26 23:57:00 UTC 2015


commit 123931d5555f6a09ae6a52a2e226aa949ced1bc8
Author: David King <amigadave at amigadave.com>
Date:   Thu Feb 26 23:43:20 2015 +0000

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

 seahorse.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/seahorse.spec b/seahorse.spec
index 55b570f..10b7fe5 100644
--- a/seahorse.spec
+++ b/seahorse.spec
@@ -28,6 +28,7 @@ BuildRequires:  openldap-devel
 BuildRequires:  openssh-clients
 BuildRequires:  intltool
 BuildRequires:  vala
+BuildRequires:  /usr/bin/appstream-util
 
 # https://bugzilla.redhat.com/show_bug.cgi?id=474419
 # https://bugzilla.redhat.com/show_bug.cgi?id=587328
@@ -75,6 +76,11 @@ rm -f ${RPM_BUILD_ROOT}/usr/share/icons/hicolor/icon-theme.cache
 find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
 find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ';'
 
+
+%check
+appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/appdata/*.appdata.xml
+
+
 %post
 /sbin/ldconfig
 update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
@@ -124,6 +130,7 @@ update-mime-database -n %{_datadir}/mime &> /dev/null || :
 - Use license macro for COPYING and COPYING.LIB
 - Use pkgconfig for BuildRequires
 - Update man page glob in files section
+- Validate AppData in check
 
 * Thu Nov 20 2014 Kalev Lember <kalevlember at gmail.com> - 3.14.0-3
 - Fix SSH key generation (#1163660)


More information about the scm-commits mailing list