commit 0a8a872c2b9d2c11f513949ad68cb0a52bb1327e
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Tue Apr 10 10:53:28 2018 +0100
Fix and validate appdata
nvidia-settings.appdata.xml | 1 -
nvidia-settings.spec | 7 ++++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/nvidia-settings.appdata.xml b/nvidia-settings.appdata.xml
index 197b8e7..45b54a9 100644
--- a/nvidia-settings.appdata.xml
+++ b/nvidia-settings.appdata.xml
@@ -28,7 +28,6 @@
</description>
<translation/>
<url
type="homepage">http://www.nvidia.com/</url>
- <icon type="local" width="128"
height="128">/usr/share/pixmaps/nvidia-settings.png</icon>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<developer_name>NVIDIA Corporation</developer_name>
diff --git a/nvidia-settings.spec b/nvidia-settings.spec
index c8d7480..010f6fe 100644
--- a/nvidia-settings.spec
+++ b/nvidia-settings.spec
@@ -1,6 +1,6 @@
Name: nvidia-settings
Version: 390.48
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Configure the NVIDIA graphics driver
Group: Applications/System
@@ -18,6 +18,7 @@ BuildRequires: hostname
BuildRequires: gtk2-devel
%if 0%{?fedora} || 0%{?rhel} > 6
BuildRequires: gtk3-devel
+BuildRequires: libappstream-glib
%endif
BuildRequires: libXxf86vm-devel
BuildRequires: libXext-devel
@@ -97,6 +98,7 @@ desktop-file-validate
%{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-user.desk
# AppData installation
mkdir -p %{buildroot}%{_datadir}/appdata
install -p -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/
+appstream-util validate-relax --nonet
%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
%endif
%ldconfig_scriptlets
@@ -118,6 +120,9 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/
%changelog
+* Tue Apr 10 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 390.48-3
+- Validate appdata file
+
* Mon Apr 09 2018 Nicolas Chauvet <kwizart(a)gmail.com> - 390.48-2
- Fix typo on icon directory
- Add appdata file