[seahorse] Validate AppData in check
David King
amigadave at fedoraproject.org
Thu Feb 26 23:51:44 UTC 2015
commit 822bc5bd5b2ba07817c3d5eb1be8df27cd71cfe7
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 5182dbb..82f5c93 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
* Sat Feb 21 2015 Till Maas <opensource at till.name> - 3.14.0-4
- Rebuilt for Fedora 23 Change
More information about the scm-commits
mailing list