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