Validate AppData in check

https://fedoraproject.org/wiki/Packaging:AppData
This commit is contained in:
David King 2015-03-12 08:43:22 +00:00
parent d5e20bee1c
commit 186639807f

View File

@ -27,6 +27,7 @@ BuildRequires: pkgconfig(libexif) >= %{libexif_version}
BuildRequires: pkgconfig(libxml-2.0) >= %{libxml2_version} BuildRequires: pkgconfig(libxml-2.0) >= %{libxml2_version}
BuildRequires: pkgconfig(tracker-sparql-1.0) BuildRequires: pkgconfig(tracker-sparql-1.0)
BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11)
BuildRequires: /usr/bin/appstream-util
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: gettext BuildRequires: gettext
BuildRequires: intltool >= 0.40.6-2 BuildRequires: intltool >= 0.40.6-2
@ -115,6 +116,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la
%find_lang %name %find_lang %name
%check
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/org.gnome.Nautilus.appdata.xml
%postun %postun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
@ -163,6 +169,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
%changelog %changelog
* Thu Mar 12 2015 David King <amigadave@amigadave.com> - 3.15.91-1 * Thu Mar 12 2015 David King <amigadave@amigadave.com> - 3.15.91-1
- Update to 3.15.91 - Update to 3.15.91
- Validate AppData in check
* Tue Feb 17 2015 Richard Hughes <rhughes@redhat.com> - 3.15.90-1 * Tue Feb 17 2015 Richard Hughes <rhughes@redhat.com> - 3.15.90-1
- Update to 3.15.90 - Update to 3.15.90