From ffbdaf0bbc6c6c917890b981da9bbf2ff4f9990b Mon Sep 17 00:00:00 2001 From: David King Date: Mon, 9 Feb 2015 23:51:26 +0000 Subject: [PATCH] Validate AppData in check https://fedoraproject.org/wiki/Packaging:AppData --- file-roller.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/file-roller.spec b/file-roller.spec index 10ce98b..f427af9 100644 --- a/file-roller.spec +++ b/file-roller.spec @@ -21,6 +21,7 @@ BuildRequires: file-devel BuildRequires: libarchive-devel BuildRequires: json-glib-devel BuildRequires: libnotify-devel +BuildRequires: /usr/bin/appstream-util %description @@ -59,8 +60,12 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache %find_lang %{name} --with-gnome + +%check +appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/org.gnome.FileRoller.appdata.xml desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.FileRoller.desktop + %post update-desktop-database &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : @@ -99,6 +104,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : * Mon Feb 09 2015 David King - 3.15.2-1 - Update to 3.15.2 - Use license macro for COPYING +- Validate AppData in check * Sat Nov 29 2014 Kalev Lember - 3.15.1-1 - Update to 3.15.1