From 376e1b65db52a1e7deb2f6cc737e006953ddf09f Mon Sep 17 00:00:00 2001 From: David King Date: Jan 27 2015 10:46:20 +0000 Subject: Validate AppData during check https://fedoraproject.org/wiki/Packaging:AppData --- diff --git a/gnome-music.spec b/gnome-music.spec index 4551f49..44ecc87 100644 --- a/gnome-music.spec +++ b/gnome-music.spec @@ -18,6 +18,7 @@ Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.15/%{name}-%{ver # Fixed upstream after 3.15.4 was released. Patch0: gnome-music-3.15.4-fix-desktop-file-translation.patch +BuildRequires: /usr/bin/appstream-util BuildRequires: desktop-file-utils BuildRequires: intltool BuildRequires: itstool @@ -72,6 +73,9 @@ find %{buildroot} -name '*.la' -exec rm -f '{}' \; %find_lang %{name} --with-gnome + +%check +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop @@ -112,6 +116,7 @@ fi * Tue Jan 27 2015 David King - 3.15.4-1 - Update to 3.15.4 - Update man page glob in files section +- Validate AppData during check * Tue Nov 25 2014 Kalev Lember - 3.15.2-1 - Update to 3.15.2