commit fe746f5ebda64c9a44dc2ce15394f813afcd16e1
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu Sep 10 17:53:15 2020 +0100
Fix and vailidate appdata
smplayer.appdata.xml | 54 +++++++++++++++++++++++++++++++++-------------------
smplayer.spec | 7 ++++++-
2 files changed, 40 insertions(+), 21 deletions(-)
---
diff --git a/smplayer.appdata.xml b/smplayer.appdata.xml
index 2fb9859..432e27d 100644
--- a/smplayer.appdata.xml
+++ b/smplayer.appdata.xml
@@ -1,15 +1,14 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Ankur Sinha <ankursinha AT fedoraproject DOT org> -->
-
-<!-- HOUSEKEEPING, REMOVE THIS COMMENT WHEN THIS GOES UPSTREAM
-BugReportURL: rhbz-#
-SentUpstream: yyyy-mm-dd
--->
-
-<application>
- <id type="desktop">rpmfusion-smplayer.desktop</id>
- <metadata_license>CC0-1.0</metadata_license>
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>smplayer</id>
+
+ <name>smplayer</name>
<summary>A graphical frontend for mpv and mplayer</summary>
+
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0-or-later</project_license>
+
<description>
<p>
SMPlayer is a free media player for Windows and Linux with built-in
@@ -34,15 +33,30 @@ SentUpstream: yyyy-mm-dd
possibility to play Youtube videos or download subtitles.
</p>
</description>
- <url
type="homepage">http://smplayer.sourceforge.net/linux/</u...
+
+ <launchable type="desktop-id">smplayer.desktop</launchable>
+ <categories>
+ <category>AudioVideo</category>
+ <category>Video</category>
+ </categories>
+ <url type="homepage">https://www.smplayer.info/</url>
+ <update_contact>https://www.smplayer.info/en/contact</update_contact>
<screenshots>
- <screenshot
type="default">http://smplayer.sourceforge.net/images/screen...
- <screenshot
type="default">http://smplayer.sourceforge.net/images/screen...
- <screenshot
type="default">http://smplayer.sourceforge.net/images/screen...
- <screenshot
type="default">http://smplayer.sourceforge.net/images/screen...
+ <screenshot type="default">
+
<
image>http://smplayer.sourceforge.net/images/screenshots/mainwindow.pn...
+ </screenshot>
+ <screenshot>
+
<
image>http://smplayer.sourceforge.net/images/screenshots/thumbnail_gen...
+ </screenshot>
+ <screenshot>
+
<
image>http://smplayer.sourceforge.net/images/screenshots/find_subtitle...
+ </screenshot>
+ <screenshot>
+
<
image>http://smplayer.sourceforge.net/images/screenshots/smplayer_skin...
+ </screenshot>
</screenshots>
- <!-- FIXME: change this to an upstream email address for spec updates
- <updatecontact>someone_who_cares(a)upstream_project.org</updatecontact>
- -->
-</application>
-
+ <content_rating type="oars-1.1"/>
+ <releases>
+ <release version="20.6.0" date="2020-06-17"/>
+ </releases>
+</component>
diff --git a/smplayer.spec b/smplayer.spec
index 7a987bc..ef8e67b 100644
--- a/smplayer.spec
+++ b/smplayer.spec
@@ -2,7 +2,7 @@ Name: smplayer
Version: 20.6.0
%global smplayer_themes_ver 18.6.0
%global smplayer_skins_ver 15.2.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A graphical frontend for mplayer and mpv
License: GPLv2+
@@ -18,6 +18,7 @@ Patch2: smplayer-14.9.0.6966-system-qtsingleapplication.patch
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
+BuildRequires: libappstream-glib
BuildRequires: pkgconfig(Qt5)
BuildRequires: pkgconfig(Qt5Designer)
BuildRequires: pkgconfig(Qt5Concurrent)
@@ -133,6 +134,7 @@ install -m 0644 -D %{SOURCE2}
%{buildroot}%{_metainfodir}/%{name}.appdata.xml
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
+appstream-util validate --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
%if (0%{?rhel} && 0%{?rhel} <= 7)
%post
@@ -172,6 +174,9 @@ fi
%{_datadir}/smplayer/themes/
%changelog
+* Thu Sep 10 2020 Leigh Scott <leigh123linux(a)gmail.com> - 20.6.0-3
+- Fix and vailidate appdata
+
* Tue Aug 18 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
20.6.0-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild