public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mstflint] f45: avoid macro expansion warnings in the Source0 comment
Date: Fri, 20 Nov 2026 07:01:44 GMT	[thread overview]
Message-ID: <179515810480.1.7171199547374933796.rpms-mstflint-c0331da0b093@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mstflint
            Branch : f45
            Commit : c0331da0b093b0edd21fd1d2b19894912a0ea788
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-11-19T18:28:59+01:00
            Stats  : +6/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mstflint/c/c0331da0b093b0edd21fd1d2b19894912a0ea788?branch=f45

            Log:
            avoid macro expansion warnings in the Source0 comment

rpm expands macros even inside comments and warns about it. Both
warnings pointed at the upstream tarball URL quoted in the comment
explaining why Source0 is a locally repacked tarball:

  warning: Macro expanded in comment on line 17: %{name}/releases/download/...
  warning: Macro expanded in comment on line 27: %{name}/releases/download/...

Move the URL to a %global realSource0 and quote it in the comment as
%%realSource0, which rpm leaves unexpanded there.

Assisted-by: OpenCode:enmaas/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017
(cherry picked from commit 131ed07c0e41f2c0813e79b5c749059468895c27)

---
diff --git a/mstflint.spec b/mstflint.spec
index 8f2045f..bcca0f2 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -13,13 +13,12 @@ Release:	%autorelease
 # ext_libs/sqlite/ has the SQLite blessing.
 License:	(GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
 Url:		https://github.com/Mellanox/%{name}
-# The upstream tarball at
-# https://github.com/Mellanox/%{name}/releases/download/v%{mainver}-%{subver}/%{name}-%{mainver}-%{subver}.tar.gz
-# ships prebuilt, non-free libdpa_elf blobs (mlxdpa/dpa_elf/*/libdpa_elf).
-# Removing them in %%prep is not enough, since they would still be present
-# in the source RPM. Instead, Source0 is a repacked version with the
-# blobs stripped out by generate-tarball.sh, distinguished from the
-# pristine upstream tarball by a ".free" suffix.
+# The upstream tarball at %%realSource0 ships prebuilt, non-free libdpa_elf
+# blobs (mlxdpa/dpa_elf/*/libdpa_elf). Removing them in %%prep is not enough,
+# since they would still be present in the source RPM. Instead, Source0 is a
+# repacked version with the blobs stripped out by generate-tarball.sh,
+# distinguished from the pristine upstream tarball by a ".free" suffix.
+%global realSource0 https://github.com/Mellanox/%{name}/releases/download/v%{mainver}-%{subver}/%{name}-%{mainver}-%{subver}.tar.gz
 Source0:	%{name}-%{mainver}-%{subver}.free.tar.gz
 Source1:	generate-tarball.sh
 

                 reply	other threads:[~2026-11-20  7:01 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=179515810480.1.7171199547374933796.rpms-mstflint-c0331da0b093@fedoraproject.org \
    --to=mschmidt@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