public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mstflint] f45: avoid macro expansion warnings in the Source0 comment
@ 2026-11-20 7:01 Michal Schmidt
0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-11-20 7:01 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 7:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 7:01 [rpms/mstflint] f45: avoid macro expansion warnings in the Source0 comment Michal Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox