Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(dist): use Go (S)RPM macros only when available
The Go (S)RPM macros are available in recent Fedora versions (i.e. all of them, assuming the non-EOL ones), and in EL starting from 9; this means that, in order to build on older distros (i.e. EL 8) we need to avoid them. Hence: - introduce an helper variable to easily track their availability - limit the usage of %go<something> macros only when available, falling back to other macros (such as %autosetup and %meson_test) - define few %go<something> variables that would be set by %gometa, so there are less differences around - limit the "-f" (i.e. "future archs") %gometa flag only on Fedora for now; the latest RHEL 9 release (9.2) has a bug [1] that prevents it to work - explicitly use the "-k" (i.e. "do not remove the "vendor" subdir) %goprep flag only on EL, since on this distro family bundling is used for the Go dependencies [1] https://bugzilla.redhat.com/show_bug.cgi?id=2227224 Signed-off-by: Pino Toscano <[email protected]>
- Loading branch information