commit 5a29a65240a4a42ffb33da9dd257abbac657309c
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Mon Sep 3 07:32:58 2018 -0500
Add appdata file.
openshot.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/openshot.spec b/openshot.spec
index fe1f1eb..6d463cd 100644
--- a/openshot.spec
+++ b/openshot.spec
@@ -14,9 +14,13 @@ Source0:
https://github.com/OpenShot/%{name}-qt/archive/v%{version}/%{nam
# QT translation files are installed to a non-standard location
Source100: openshot-find-lang.sh
+Source101: openshot-qt.appdata.xml
BuildArch: noarch
+# For appdata
+BuildRequires: libappstream-glib
+
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-qt5-devel
BuildRequires: python%{python3_pkgversion}-setuptools
@@ -93,6 +97,11 @@ done
# Validate desktop file
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt.desktop
+# Install appdata file
+mkdir -p %{buildroot}%{_metainfodir}
+install -pm 0644 %{SOURCE101} %{buildroot}%{_metainfodir}/
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
+
# Move icon files to the preferred location
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ \
%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/