From 55a5b771ae1d7ca604b10618682369b28012c901 Mon Sep 17 00:00:00 2001 From: David King Date: Fri, 23 Jan 2015 10:33:25 +0000 Subject: [PATCH] Validate AppData in check https://fedoraproject.org/wiki/Packaging:AppData --- gnome-calculator.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gnome-calculator.spec b/gnome-calculator.spec index 993325f..050d75d 100644 --- a/gnome-calculator.spec +++ b/gnome-calculator.spec @@ -18,6 +18,7 @@ BuildRequires: gettext BuildRequires: intltool BuildRequires: itstool BuildRequires: mpfr-devel +BuildRequires: /usr/bin/appstream-util Provides: gcalctool = 6.6.2-3 Obsoletes: gcalctool < 6.6.2-3 @@ -39,13 +40,15 @@ make %{?_smp_mflags} %install -make install DESTDIR=$RPM_BUILD_ROOT - -desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnome-calculator.desktop - +make install DESTDIR=%{buildroot} %find_lang %{name} --with-gnome --all-name +%check +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/gnome-calculator.appdata.xml +desktop-file-validate %{buildroot}/%{_datadir}/applications/gnome-calculator.desktop + + %postun if [ $1 -eq 0 ] ; then glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : @@ -77,6 +80,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : - Update man page globs in files section - Use pkgconfig for BuildRequires - Remove obsolete glib2 dependencies for GSettings schema +- Validate AppData in check * Fri Dec 19 2014 Richard Hughes - 3.15.1-1 - Update to 3.15.1