public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/sushi] f45: Validate appstream data and desktop file
Date: Mon, 19 Oct 2026 06:40:11 GMT	[thread overview]
Message-ID: <179239201195.1.7643468802110186088.rpms-sushi-aae4b31ded61@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-10-19  6:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179239201195.1.7643468802110186088.rpms-sushi-aae4b31ded61@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox