From ec76818f787640238f0afb6c00faf17ac40f66c1 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 18 2024 16:57:32 +0000 Subject: Document the -a/-A option for %python_extras_subpkg/%pyproject_extras_subpkg Co-Authored-By: Karolina Surma --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index 0bb8aed..f8b1774 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -1666,6 +1666,8 @@ The macro also takes `+-i+`/`+-f+`/`+-F+` arguments for `+%python_extras_subpkg+` below, but if they are not given, a filelist written by `+%pyproject_install+` is used. + +Similarly, the `+-a+`/`+-A+` flags are passed to `+%python_extras_subpkg+`. ++ This macro generates all the subpackage definition sections (`+%package+` including the `+Summary+` and `+Requires+` on the base package, `+%description+` and, by default, `+%files+`). @@ -1715,6 +1717,10 @@ Conflicts with `+-i+` and `+-F+`. ** `+-F+`: Skip the %files section entirely (if the packager wants to construct it manually). Conflicts with `+-i+` and `+-f+`. +** `+-a+`: Include `+BuildArch: noarch+` in the package definition, +to be used only when the package is archful, +but the “base” package passed to `+-n+` is not. +** `+-A+`: Explicitly disables `+-a+` (does nothing at the moment). -- + As with `+%pyproject_extras_subpkg+`: