From 0cc04157aefac3922bd9692b2437e0e7933d3cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 12 Aug 2023 09:02:29 +0300 Subject: [PATCH 1/2] nfpm: packaging improvements Include section, group, soft dependency on (packaged) Go, and LICENSE and README.md in docs. --- .goreleaser.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index a15d7a6a595d..b964437361c3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -106,6 +106,29 @@ nfpms: maintainer: "golangci-lint Team " description: Fast linters Runner for Go license: GPLv3 + section: devel formats: - deb - rpm + umask: 0o022 + overrides: + deb: + contents: + - src: LICENSE + dst: /usr/share/doc/golangci-lint/copyright + - src: README.md + dst: /usr/share/doc/golangci-lint/README.md + recommends: + - golang-go + rpm: + contents: + - src: LICENSE + dst: /usr/share/doc/golangci-lint/LICENSE + type: license + - src: README.md + dst: /usr/share/doc/golangci-lint/README.md + type: readme + recommends: + - /usr/bin/go + rpm: + group: Development/Tools From 9c1cf7ef72896e682e58b9775f3851fdb8691fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 12 Aug 2023 19:50:28 +0300 Subject: [PATCH 2/2] nfpm: change section to `golang` Even though `golang` is not among the authoritative sections list at https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections at time of writing, the section does exist and is populated with packages: https://packages.debian.org/unstable/golang/ Co-authored-by: Ludovic Fernandez --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index b964437361c3..4463f37cfa8c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -106,7 +106,7 @@ nfpms: maintainer: "golangci-lint Team " description: Fast linters Runner for Go license: GPLv3 - section: devel + section: golang formats: - deb - rpm