public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mcrouter] rawhide: Add a license_check_only bcond
@ 2026-10-07 17:11 Michel Lind
  0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-10-07 17:11 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/mcrouter
            Branch : rawhide
            Commit : 3cc5a06e57a6abf671e8d47500598d1d400dc88f
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-09-29T10:34:35+01:00
            Stats  : +7/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mcrouter/c/3cc5a06e57a6abf671e8d47500598d1d400dc88f?branch=rawhide

            Log:
            Add a license_check_only bcond

- Run the license check and stop before the build, so a new vendor
  tarball can be checked against the License tag in minutes

Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Michel Lind <salimma@fedoraproject.org>

---
diff --git a/mcrouter.spec b/mcrouter.spec
index 916a564..89fd19b 100644
--- a/mcrouter.spec
+++ b/mcrouter.spec
@@ -8,6 +8,12 @@
 # the autotools days). Enable once a mock run shows what it needs.
 %bcond_with check
 
+# Run the license check and stop, without the (hours long) compile: the fast
+# way to find out whether a new vendor tarball needs a different License tag.
+# The build then fails on purpose, so this is for local runs only, never CI.
+#   mock -r fedora-rawhide-aarch64-getdeps --with license_check_only ...
+%bcond_with license_check_only
+
 # Upstream cuts a weekly tag, vYYYY.MM.DD.NN; Version is the tag without its
 # v. For a snapshot past the tag, also paste the two %%global lines
 # ./snapshot.sh prints (the commit and its distance from the tag): Version
@@ -165,6 +171,7 @@ rm -rf mcrouter/m4
 # vendor_checked_sha512 above.
 # -L: liboqs's LICENSE.txt sits in a versioned subdirectory of its tree
 %getdeps_vendor_license_check -c %{SOURCE2} -L %{?with_license_full_check:-f}
+%{?with_license_check_only: echo "license check only: stopping before the build"; exit 1}
 %getdeps_build %{?with_check:-t}
 
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-07 17:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 17:11 [rpms/mcrouter] rawhide: Add a license_check_only bcond Michel Lind

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