Fix build with appstream 1.0

This fixes a validate-appdata test failure due to deprecation of
developer_name:

https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/175
This commit is contained in:
Yaakov Selkowitz 2023-11-14 19:06:31 -05:00
parent 89eda8854d
commit 0e1b42ef48
2 changed files with 34 additions and 0 deletions

31
175.patch Normal file
View File

@ -0,0 +1,31 @@
From cef8ed2fdcc4c2307e4aa2135767e462a6ab1fed Mon Sep 17 00:00:00 2001
From: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Tue, 14 Nov 2023 16:34:29 -0500
Subject: [PATCH] appstream: use developer instead of deprecated developer_name
This fixes a validate-appdata test failure due to deprecation warnings
when run with appstreamcli 1.0:
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-developer
---
data/org.gnome.Snapshot.metainfo.xml.in.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/data/org.gnome.Snapshot.metainfo.xml.in.in b/data/org.gnome.Snapshot.metainfo.xml.in.in
index 2dc32d8..d99dfa6 100644
--- a/data/org.gnome.Snapshot.metainfo.xml.in.in
+++ b/data/org.gnome.Snapshot.metainfo.xml.in.in
@@ -98,7 +98,9 @@
<kudo>ModernToolkit</kudo>
<kudo>HiDpiIcon</kudo>
</kudos>
- <developer_name>The GNOME Project</developer_name>
+ <developer id="gnome.org">
+ <name>The GNOME Project</name>
+ </developer>
<update_contact>msandova@gnome.org</update_contact>
<translation type="gettext">@gettext-package@</translation>
<launchable type="desktop-id">@app-id@.desktop</launchable>
--
GitLab

View File

@ -37,6 +37,9 @@ Patch: 0001-Disable-cargo-clippy-test.patch
# https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/168 # https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/168
Patch: 168.patch Patch: 168.patch
# https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/175
Patch: 175.patch
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86} ExcludeArch: %{ix86}