From c009b8ad92cdfd0a27723bfedce922a1a7d0e8a7 Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Tue, 21 Jan 2025 10:15:49 +0100 Subject: [PATCH] spec: use go-vendor-tools to generate license Use go-vendor-tools to generate the license identifiers for our vendored code. This initial commit does not yet apply the rest of go-vendor-tools abilities to manage the vendoring itself. Signed-off-by: Simon de Vlieger --- go-vendor-tools.toml | 13 +++++++++++++ image-builder.spec | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 go-vendor-tools.toml diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml new file mode 100644 index 0000000..3448c81 --- /dev/null +++ b/go-vendor-tools.toml @@ -0,0 +1,13 @@ +# See: https://fedora.gitlab.io/sigs/go/go-vendor-tools/config/#licenses-list-of-license-entry-tables + +# These files' licenses can't be autodetected by `go-vendor-tools`; we need to list +# them manually. + +[[licensing.licenses]] +path = "vendor/gopkg.in/yaml.v3/LICENSE" +sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b" +expression = "Apache-2.0 AND MIT" +[[licensing.licenses]] +path = "vendor/github.com/go-openapi/spec/license.go" +sha256sum = "9ba36f66fba6f2e3b7dce95d9413a738688abcfce8c3d38c581b276f9437d1c6" +expression = "Apache-2.0" diff --git a/image-builder.spec b/image-builder.spec index e327d8b..09866be 100644 --- a/image-builder.spec +++ b/image-builder.spec @@ -27,7 +27,10 @@ Summary: An image building executable using osbuild ExcludeArch: i686 armv7hl # Upstream license specification: Apache-2.0 -License: Apache-2.0 +# Others generated with: +# $ go_vendor_license -C report expression +License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-SA-4.0 AND ISC AND MIT AND MPL-2.0 AND Unlicense + URL: %{gourl} Source0: %{gosource}