Fix appstream data

While the upstream appdata passes appstream-util validate-relax
(mandated by packaging guidelines), appstreamcli validate shows issues.
Since the latter's library is used in Software and Discover nowadays,
this may be why neither our package nor the Flathub flatpak are listed.

Resolves: rhbz#2258611
epel10
Yaakov Selkowitz 1 year ago
parent c89dd01cd3
commit 9a3013c349

@ -0,0 +1,19 @@
diff --git a/share/vlc.appdata.xml.in.in b/share/vlc.appdata.xml.in.in
index cc9c39a..3c55620 100644
--- a/share/vlc.appdata.xml.in.in
+++ b/share/vlc.appdata.xml.in.in
@@ -18,7 +18,7 @@
<url type="bugtracker">https://trac.videolan.org/vlc/</url>
<url type="donation">https://www.videolan.org/contribute.html</url>
<releases>
- <release version="@VERSION@" />
+ <release version="@VERSION@" date="@DATE@" />
</releases>
<provides>
<library>libvlc.so.5</library>
@@ -38,4 +38,5 @@
<image>http://images.videolan.org/vlc/screenshots/2.0.0/vlc-2.0-gnome3-debian.jpg</image>
</screenshot>
</screenshots>
+ <content_rating type="oars-1.1" />
</component>

@ -40,7 +40,9 @@ Patch: fdk-aac2.patch
# separate avcodec-vaapi conditional from other vaapi modules # separate avcodec-vaapi conditional from other vaapi modules
Patch: vaapi-without-ffmepg4.patch Patch: vaapi-without-ffmepg4.patch
# port from intel-mediasdk to oneVPL # port from intel-mediasdk to oneVPL
Patch: oneVPL.patch Patch: oneVPL.patch
# fix appstreamcli validate to show in Software (rhbz#2258611)
Patch: appdata.patch
%{load:%{S:1}} %{load:%{S:1}}
%global __provides_exclude_from ^%{vlc_plugindir}/.*$ %global __provides_exclude_from ^%{vlc_plugindir}/.*$
@ -474,7 +476,12 @@ rm -f aclocal.m4 m4/lib*.m4 m4/lt*.m4
sed -i -e 's|\("qt-icon-change",\) true|\1 false|' modules/gui/qt/qt.cpp sed -i -e 's|\("qt-icon-change",\) true|\1 false|' modules/gui/qt/qt.cpp
# sync appstream app-id with Flathub # sync appstream app-id with Flathub
sed -i -e 's|org\.videolan\.vlc|org.videolan.VLC|' share/vlc.appdata.xml.in.in # fill in release date from appstream.patch
# https: https://code.videolan.org/videolan/vlc/-/merge_requests/1555 (4.0)
sed -e 's|org\.videolan\.vlc|org.videolan.VLC|' \
-e 's|@DATE@|%(date +%F -r %{S:0})|' \
-e 's|http:|https:|g' \
-i share/vlc.appdata.xml.in.in
%if 0%{?flatpak} %if 0%{?flatpak}
# icons are renamed in order to be exported # icons are renamed in order to be exported

Loading…
Cancel
Save