public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-libcst] f45: Improve license handling
@ 2026-09-28  8:14 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-28  8:14 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-libcst
            Branch : f45
            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=f45

            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

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

only message in thread, other threads:[~2026-09-28  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28  8:14 [rpms/python-libcst] f45: Improve license handling Benjamin A. Beasley

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