summaryrefslogtreecommitdiff
path: root/rpmpopt.in
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-02-17 12:35:23 -0500
committerFlorian Festi <ffesti@redhat.com>2017-02-24 13:23:16 +0100
commit17d5ae8ed3b79e0b4fc47019c775556d33ff792e (patch)
tree32bf3fcd292bd81fb57589954c16cb9285546564 /rpmpopt.in
parentbf248badd38b11951255aad30c43d3f492326516 (diff)
downloadrpm-17d5ae8ed3b79e0b4fc47019c775556d33ff792e.tar.gz
Add --trace macros to enable %trace on the command line.
This allows you to do 'rpmspec --trace -P foo.spec", which is much more natural than editing the .spec itself to add %trace, and much more convenient than using --eval yourself. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'rpmpopt.in')
-rw-r--r--rpmpopt.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpmpopt.in b/rpmpopt.in
index 6d2cc7f98..533b8c898 100644
--- a/rpmpopt.in
+++ b/rpmpopt.in
@@ -165,6 +165,8 @@ rpm alias --ftpproxy --define '_httpproxy !#:+'
rpm alias --httpport --define '_httpport !#:+'
# [--httpproxy <host>] "hostname or IP of http proxy"
rpm alias --httpproxy --define '_httpproxy !#:+'
+# [--trace] "trace macro expansion"
+rpm alias --trace --eval '%trace'
# Minimally preserve commonly used switches from cli split-up
rpm exec --addsign rpmsign --addsign
@@ -198,6 +200,8 @@ rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#
rpmbuild alias --sign \
--pipe 'rpm --addsign `grep ".*: .*\.rpm$"|cut -d: -f2` < "/dev/"`ps -p $$ -o tty | tail -n 1`' \
--POPTdesc=$"generate GPG signature (deprecated, use command rpmsign instead)"
+# [--trace] "trace macro expansion"
+rpmbuild alias --trace --eval '%trace'
rpmsign alias --key-id --define '_gpg_name !#:+' \
--POPTdesc=$"key id/name to sign with" \
@@ -222,5 +226,7 @@ rpmspec alias --buildconflicts --srpm --conflicts \
--POPTdesc=$"list capabilities conflicting with build of this package"
rpmspec alias --buildrequires --srpm --requires \
--POPTdesc=$"list capabilities required to build this package"
+# [--trace] "trace macro expansion"
+rpmspec alias --trace --eval '%trace'
# \endverbatim
#*/