Add appdata validation

This commit is contained in:
Kalev Lember 2017-03-01 14:03:16 +01:00
parent 1a978160a0
commit ac40ab4453

View File

@ -8,12 +8,13 @@ URL: http://www.sysprof.com
Source0: https://download.gnome.org/sources/sysprof/3.23/sysprof-%{version}.tar.xz
BuildRequires: binutils-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: gtk3-devel
BuildRequires: itstool
BuildRequires: polkit-devel
BuildRequires: systemd-devel
BuildRequires: /usr/bin/appstream-util
BuildRequires: /usr/bin/desktop-file-validate
Requires: hicolor-icon-theme
Requires: %{name}-cli%{?_isa} = %{version}-%{release}
@ -64,6 +65,7 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
%check
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/*.appdata.xml
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
@ -119,6 +121,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Wed Mar 01 2017 Kalev Lember <klember@redhat.com> - 3.23.91-1
- Update to 3.23.91
- Add appdata validation
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.22.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild