From d3b5aa0b75022eb96873a35ca85476852bd43f38 Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Jul 08 2019 15:55:00 +0000 Subject: Update guidelines/modules/ROOT/pages/Golang.adoc Make it clear that the guidelines do not apply before Fedora 31, since the go-rpm-macros are not available there. --- diff --git a/guidelines/modules/ROOT/pages/Golang.adoc b/guidelines/modules/ROOT/pages/Golang.adoc index df37482..3bb4b03 100644 --- a/guidelines/modules/ROOT/pages/Golang.adoc +++ b/guidelines/modules/ROOT/pages/Golang.adoc @@ -5,6 +5,10 @@ This document details best practices for packaging Golang packages. Most of it is automated by an extensive use of macros. +CAUTION: This document is applicable only starting with Fedora 31. + Earlier releases do not contain the required `go-rpm-macros` package. + There are no current plans to backport it to earlier releases. + https://pagure.io/GoSIG/[go2rpm] is tool that automates many of these steps. It is advisable to try `+go2rpm import_path+` first before attempting to write a SPEC by hand. @@ -276,6 +280,7 @@ This is now automatically added by the `+%gometa+` macro by leveraging the == Dependencies Packages MUST have `+BuildRequires: go-rpm-macros+`. +This package is available starting with Fedora 31. This is automated by the `+%gometa+` macro.