public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-libcst] rawhide: Improve license handling
Date: Mon, 28 Sep 2026 08:13:27 GMT	[thread overview]
Message-ID: <179058320716.1.16468940793018209931.rpms-python-libcst-09e2980c992d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-libcst
            Branch : rawhide
            Commit : 09e2980c992d17acc47243224e9ce1aac32b640c
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-09-25T10:22:42+01:00
            Stats  : +21/-14 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-libcst/c/09e2980c992d17acc47243224e9ce1aac32b640c?branch=rawhide

            Log:
            Improve license handling

[skip changelog]

---
diff --git a/python-libcst.spec b/python-libcst.spec
index 55a66b7..909e6fc 100644
--- a/python-libcst.spec
+++ b/python-libcst.spec
@@ -10,8 +10,26 @@ Version:        1.8.6
 Release:        %autorelease
 Summary:        A concrete syntax tree with AST-like properties
 
-# see LICENSE in the upstream sources for the breakdown
-License:        MIT AND (MIT AND PSF-2.0) AND Apache-2.0
+# See LICENSE in the upstream sources for the breakdown.
+# MIT AND (MIT AND PSF-2.0) AND Apache-2.0 → MIT AND PSF-2.0 AND Apache-2.0
+License:        MIT AND PSF-2.0 AND Apache-2.0
+# Licenses from statically-linked Rust dependencies (output of
+# %%{cargo_license_summary}):
+#
+# (MIT OR Apache-2.0) AND Unicode-3.0
+# (MIT OR Apache-2.0) AND Unicode-DFS-2016
+# MIT
+# MIT AND (MIT AND PSF-2.0)
+# MIT OR Apache-2.0
+# Unlicense OR MIT
+#
+# Licenses above that are *not* in the source license expression:
+%global additional_rust_licenses %{shrink:
+    Unicode-3.0 AND
+    Unicode-DFS-2016 AND
+    (MIT OR Apache-2.0) AND
+    (Unlicense OR MIT)}
+# LICENSE.dependencies contains a full license breakdown
 URL:            https://github.com/Instagram/LibCST
 Source:         %{pypi_source libcst}
 # * drop unused, benchmark-only criterion and rayon dev-dependencies
@@ -44,18 +62,7 @@ AST.}
 
 %package -n     python3-libcst
 Summary:        %{summary}
-# (MIT OR Apache-2.0) AND Unicode-3.0
-# (MIT OR Apache-2.0) AND Unicode-DFS-2016
-# MIT
-# MIT AND (MIT AND PSF-2.0)
-# MIT OR Apache-2.0
-# Unlicense OR MIT
-License:        %{shrink:
-                MIT AND (MIT AND PSF-2.0) AND Apache-2.0
-                AND (MIT OR Apache-2.0) AND Unicode-3.0
-                AND Unicode-DFS-2016
-                AND (Unlicense OR MIT)
-                }
+License:        %{license} AND %{additional_rust_licenses}
 # LICENSE.dependencies contains a full license breakdown
 
 # Documentation is hard to build since libcst.native is not available to import until %%install

                 reply	other threads:[~2026-09-28  8:13 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=179058320716.1.16468940793018209931.rpms-python-libcst-09e2980c992d@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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