public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/retis] rawhide: Handle licenses from statically-linked Rust dependencies
@ 2026-07-31 15:22 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-31 15:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/retis
            Branch : rawhide
            Commit : fa3f7d3cf270cede1691ef22d4394c78de2b6b77
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-07-31T15:51:59+01:00
            Stats  : +36/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/retis/c/fa3f7d3cf270cede1691ef22d4394c78de2b6b77?branch=rawhide

            Log:
            Handle licenses from statically-linked Rust dependencies

https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_license_tags

---
diff --git a/retis.spec b/retis.spec
index b47261f..3f28fb6 100644
--- a/retis.spec
+++ b/retis.spec
@@ -2,7 +2,39 @@ Name:           retis
 Version:        1.6.4
 Release:        %autorelease
 Summary:        Tracing packets in the Linux networking stack
-License:        GPL-2.0-only
+SourceLicense:  GPL-2.0-only
+# Additional license terms from statically-linked Rust dependencies, from the
+# output of %%{cargo_license_summary}:
+#
+# (MIT OR Apache-2.0) AND Unicode-3.0
+# (MIT OR Apache-2.0) AND Unicode-DFS-2016
+# 0BSD OR MIT OR Apache-2.0
+# Apache-2.0 OR BSL-1.0
+# Apache-2.0 OR MIT
+# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
+# BSD-2-Clause
+# GPL-2.0-only
+# LGPL-2.1-only OR BSD-2-Clause
+# LGPL-2.1-or-later
+# MIT
+# MIT OR Apache-2.0
+# MIT OR Zlib OR Apache-2.0
+# Unlicense OR MIT
+License:        %{shrink:
+    (MIT OR Apache-2.0) AND
+    Unicode-3.0 AND
+    Unicode-DFS-2016 AND
+    (0BSD OR MIT OR Apache-2.0) AND
+    (Apache-2.0 OR BSL-1.0) AND
+    (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND
+    BSD-2-Clause AND
+    GPL-2.0-only AND
+    (LGPL-2.1-only OR BSD-2-Clause) AND
+    LGPL-2.1-or-later AND
+    MIT AND
+    (MIT OR Zlib OR Apache-2.0) AND
+    (Unlicense OR MIT)
+    }
 
 URL:            https://github.com/retis-org/retis
 Source:         https://github.com/retis-org/retis/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -44,6 +76,8 @@ control and data paths such as OpenVSwitch.
 
 %build
 make release %{?_smp_mflags}
+%cargo_license_summary
+%{cargo_license} > LICENSE.dependencies
 
 %install
 env CARGO_INSTALL_OPTS="--no-track" make install
@@ -54,7 +88,7 @@ rm -rf %{buildroot}/pkgconfig
 rm -f %{buildroot}/libbpf.a
 
 %files
-%license LICENSE
+%license LICENSE LICENSE.dependencies
 %doc README.md
 %{_bindir}/retis
 %{_datadir}/retis/profiles

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

only message in thread, other threads:[~2026-07-31 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-31 15:22 [rpms/retis] rawhide: Handle licenses from statically-linked Rust dependencies 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