From 83f0bb2e1521559b80a46eb1d82d78591e60407c Mon Sep 17 00:00:00 2001 From: David King Date: Feb 10 2015 14:22:29 +0000 Subject: Validate desktop file and AppData in check https://fedoraproject.org/wiki/Packaging:Guidelines#Desktop_files https://fedoraproject.org/wiki/Packaging:AppData --- diff --git a/totem.spec b/totem.spec index 4f5fb05..f0b10d7 100644 --- a/totem.spec +++ b/totem.spec @@ -50,6 +50,7 @@ BuildRequires: pylint BuildRequires: python-devel BuildRequires: pkgconfig(pygobject-3.0) BuildRequires: vala +BuildRequires: /usr/bin/appstream-util # For the nautilus extension BuildRequires: pkgconfig(libnautilus-extension) @@ -155,6 +156,12 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" #nuke the .la file(s) find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +%check +appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/appdata/*.appdata.xml +desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/org.gnome.Totem.desktop + + %post /sbin/ldconfig update-desktop-database &> /dev/null || : @@ -251,6 +258,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : * Tue Feb 10 2015 David King - 1:3.14.2-2 - Update URL - Use pkgconfig for BuildRequires +- Validate desktop file and AppData in check * Thu Jan 29 2015 David King - 1:3.14.2-1 - Update to 3.14.2