public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ruff] f45: Improve license-expression handling in the spec file
@ 2026-11-20 10:20 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-20 10:20 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ruff
            Branch : f45
            Commit : 04a22fe4ea4597005d1275be0208eb85c53bca1e
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-11-11T06:55:14+00:00
            Stats  : +20/-26 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ruff/c/04a22fe4ea4597005d1275be0208eb85c53bca1e?branch=f45

            Log:
            Improve license-expression handling in the spec file

[skip changelog]

---
diff --git a/ruff.spec b/ruff.spec
index 421d38d..88ac563 100644
--- a/ruff.spec
+++ b/ruff.spec
@@ -90,12 +90,9 @@ Summary:        Extremely fast Python linter and code formatter
 #     https://github.com/microsoft/vscode-icons/; we do not package the
 #     in-browser playground, available at https://play.ruff.rs/, so this file
 #     does not contribute to the licenses of the binary RPMs
-SourceLicense:  %{shrink:
-    MIT AND
-    Apache-2.0 AND
-    (Apache-2.0 OR MIT)
-    }
-
+%global upstream_license MIT
+%global full_license %{upstream_license} AND Apache-2.0 AND (Apache-2.0 OR MIT)
+SourceLicense:  %{full_license}
 # Rust crates compiled into the executable contribute additional license terms.
 # To obtain the following list of licenses, build the package and note the
 # output of %%{cargo_license_summary}. This should automatically include the
@@ -124,26 +121,23 @@ SourceLicense:  %{shrink:
 # WTFPL
 # Zlib
 # Zlib OR Apache-2.0 OR MIT
-License:        %{shrink:
-    MIT AND
-    Apache-2.0 AND
-    (Apache-2.0 OR BSD-2-Clause) AND
-    (Apache-2.0 OR BSL-1.0) AND
-    (Apache-2.0 OR MIT) AND
-    (Apache-2.0 OR MIT OR Zlib) AND
-    (Apache-2.0 OR MIT-0) AND
-    (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND
-    BSD-3-Clause AND
-    (BSD-3-Clause OR MIT) AND
-    CC0-1.0 AND
-    ISC AND
-    (MIT OR Unlicense) AND
-    MPL-2.0 AND
-    PSF-2.0 AND
-    Unicode-3.0 AND
-    Unicode-DFS-2016 AND
-    WTFPL AND
-    Zlib
+License:        %{full_license} %{shrink:
+    AND BSD-3-Clause
+    AND CC0-1.0
+    AND ISC
+    AND MPL-2.0
+    AND PSF-2.0
+    AND Unicode-3.0
+    AND Unicode-DFS-2016
+    AND WTFPL
+    AND Zlib
+    AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT)
+    AND (Apache-2.0 OR BSD-2-Clause)
+    AND (Apache-2.0 OR BSL-1.0)
+    AND (Apache-2.0 OR MIT OR Zlib)
+    AND (Apache-2.0 OR MIT-0)
+    AND (BSD-3-Clause OR MIT)
+    AND (MIT OR Unlicense)
     }
 
 URL:            https://github.com/astral-sh/ruff

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 10:20 [rpms/ruff] f45: Improve license-expression handling in the spec file 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