From 3a1b67c4c53c71e21b6b0d67c84102e3a0407b2a Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Sat, 10 Oct 2026 07:00:32 -0500 Subject: [PATCH] feat (rpm macros): specify SCMs you can use with `-S` `%autosetup` flag https://rpm-software-management.github.io/rpm/manual/autosetup.html --- content/docs/rpm/macros.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/docs/rpm/macros.mdx b/content/docs/rpm/macros.mdx index 0edd0d7e..62d5bc42 100644 --- a/content/docs/rpm/macros.mdx +++ b/content/docs/rpm/macros.mdx @@ -890,6 +890,14 @@ Parameterized as `%autosetup(a:b:cCDn:TvNS:p:)`: - `-T`: disable unpacking `%SOURCE0` - `-v`: verbose. If specified, `%autosetup` will omit the `-q` argument to [`%setup`](#setup) - `-S <…>`: specify the SCM, equivalent to `%global __scm …` then `%__scm_setup_git` (replace `git` with the argument). With this argument, the specified SCM will be set up in the uncompressed directory + - Supported SCMs: + - git + - hg (for mercurial) + - bzr + - quilt + - patch + - git_am + - gendiff - `-N`: do not run [`%autopatch …`](#autopatch) This is actually a wrapper around [`%setup`](#setup) and [`%autopatch …`](#autopatch).