public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mstflint] f45: derive the License tag from the bundled libraries
@ 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 : 21edd529e5842d10643b50d7c378d0fc3a100faa
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-11-19T18:29:15+01:00
            Stats  : +15/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mstflint/c/21edd529e5842d10643b50d7c378d0fc3a100faa?branch=f45

            Log:
            derive the License tag from the bundled libraries

ext_libs/fkYAML is always bundled and MIT, so MIT stays in every build.
BSD-2-Clause is only needed when muparser is bundled, which is the case
on RHEL/ELN; on Fedora muparser, iniParser, jsoncpp and spdlog all come
from the system. sqlite is never bundled, so the SQLite blessing does
not belong in the binary's License tag at all.

BSD-3-Clause is dropped as well: ext_libs/crow is removed in %prep
because --enable-remote is off, and nothing under kernel/ is compiled -
the userspace build only includes kernel/mst.h, which is dual
GPL-2.0/OpenIB and already covered by the tag. kernel/Makefile is the
only file in the tree that carries the 3-clause text.

(cherry picked from commit a792674276deb7dc06660b665e29523733acd8de)

---
diff --git a/mstflint.spec b/mstflint.spec
index 06a685e..a86c014 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -23,16 +23,25 @@
 %endif
 %endif
 
+# COPYING says the license is your choice of OpenIB.org BSD or GPLv2.
+# No 3-clause BSD code ends up in the binary: ext_libs/crow is removed in
+# %%prep (--enable-remote is off), and of kernel/ only mst.h is used at all
+# (dual GPL-2.0/OpenIB, included by mtcr_ul/mtcr_ul_com.c); the 3-clause text
+# appears only in kernel/Makefile, which nothing builds.
+# ext_libs/fkYAML/ is always bundled and has MIT, so MIT is always in the tag;
+# the other MIT libraries (iniParser, json, spdlog) cannot change it.
+# ext_libs/muparser/ adds BSD-2-Clause only when it is actually bundled.
+# sqlite is never bundled, so its blessing does not apply to the binary.
+%global license_exp (GPL-2.0-only OR Linux-OpenIB) AND MIT
+%if %{with bundled_muparser}
+%global license_exp %{license_exp} AND BSD-2-Clause
+%endif
+
 Name:		mstflint
 Summary:	Mellanox firmware burning tool
 Version:	%{mainver}_%{subver}
 Release:	%autorelease
-# COPYING says the license is your choice of OpenIB.org BSD or GPLv2.
-# kernel/Makefile has the 3-clause BSD.
-# ext_libs/{iniParser,json}/ have MIT.
-# ext_libs/muparser/ has BSD-2-Clause.
-# ext_libs/sqlite/ has the SQLite blessing.
-License:	(GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND BSD-2-Clause AND blessing
+License:	%{license_exp}
 Url:		https://github.com/Mellanox/%{name}
 # The upstream tarball at %%realSource0 ships prebuilt, non-free libdpa_elf
 # blobs (mlxdpa/dpa_elf/*/libdpa_elf). Removing them in %%prep is not enough,

^ 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: derive the License tag from the bundled libraries Michal Schmidt

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