public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sushi] f45: Validate appstream data and desktop file
@ 2026-10-19  6:40 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-19  6:40 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/sushi
            Branch : f45
            Commit : aae4b31ded616b8ae58e0068ed08476cc81f495c
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-19T08:39:53+02:00
            Stats  : +10/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/sushi/c/aae4b31ded616b8ae58e0068ed08476cc81f495c?branch=f45

            Log:
            Validate appstream data and desktop file

This is required by the guidelines, and necessary for successful inclusion
in Fedora metadata and building of flatpaks.

https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_desktop_file_install_usage

---
diff --git a/sushi.spec b/sushi.spec
index fb05a39..770296b 100644
--- a/sushi.spec
+++ b/sushi.spec
@@ -19,9 +19,11 @@ Source0:        https://download.gnome.org/sources/%{name}/%{gnome_major_version
 ExcludeArch:    %{ix86}
 
 BuildRequires:  blueprint-compiler
+BuildRequires:  desktop-file-utils
 BuildRequires:  gcc
 BuildRequires:  gettext
 BuildRequires:  gjs-devel
+BuildRequires:  libappstream-glib
 BuildRequires:  meson
 BuildRequires:  pkgconfig(glycin-gtk4-2)
 BuildRequires:  pkgconfig(gobject-2.0)
@@ -50,6 +52,9 @@ file manager.
 
 %prep
 %autosetup -p1 -n %{name}-%{gnome_tarball_version}
+# intended for snapshots, this results in a duplicate release entry
+# which will not validate with appstream-util
+sed -i -e '/<release.*@release-version@/d' data/*.metainfo.xml.in.in
 
 
 %build
@@ -62,6 +67,11 @@ file manager.
 %find_lang %{name}
 
 
+%check
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml
+desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
+
+
 %files -f %{name}.lang
 %doc AUTHORS NEWS README.md TODO
 %license COPYING

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-19  6:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19  6:40 [rpms/sushi] f45: Validate appstream data and desktop file Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox