summaryrefslogtreecommitdiff
path: root/rpmpopt.in
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_github@freenet.de>2018-10-06 10:38:38 +0200
committerPanu Matilainen <pmatilai@redhat.com>2018-11-05 14:52:26 +0200
commit3d8a29a9d9d7a9df63fcc9d6e3f4dec6bb3e1cb4 (patch)
tree5f11b02d7b34b70df0a161dc411e5e32ce2ed631 /rpmpopt.in
parent2c2cacc8e13477d44a28fc19f34ce5ea403f40c2 (diff)
downloadrpm-3d8a29a9d9d7a9df63fcc9d6e3f4dec6bb3e1cb4.tar.gz
Add --scm option for %autosetup SCM selection
Allow selecting %autosetup SCM backend from cli in case it's not hardwired in the spec, handy for eg rediffing patches.
Diffstat (limited to 'rpmpopt.in')
-rw-r--r--rpmpopt.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpmpopt.in b/rpmpopt.in
index 6a2077ded..7021898a4 100644
--- a/rpmpopt.in
+++ b/rpmpopt.in
@@ -210,6 +210,9 @@ rpmbuild alias --with --define "_with_!#:+ --with-!#:+" \
rpmbuild alias --without --define "_without_!#:+ --without-!#:+" \
--POPTdesc=$"disable configure <option> for build" \
--POPTargs=$"<option>"
+rpmbuild alias --scm --define '__scm !#:+' \
+ --POPTdesc=$"shortcut for '--define=\"__scm <scm>\"'" \
+ --POPTargs=$"<scm>"
# Build policies enabled from command line. Last policy applies.
rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#:+' \
--POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \