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: derive the License tag from the bundled libraries
Date: Fri, 20 Nov 2026 07:01:47 GMT	[thread overview]
Message-ID: <179515810722.1.17422081309919256763.rpms-mstflint-21edd529e584@fedoraproject.org> (raw)

            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,

                 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=179515810722.1.17422081309919256763.rpms-mstflint-21edd529e584@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