diff options
author | Peter Jones <pjones@redhat.com> | 2019-09-19 13:09:56 -0400 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2019-11-18 12:46:29 +0200 |
commit | 372ce5f7e727dcee91407ef9e2bab540f5d0b85a (patch) | |
tree | 6c6a9d3499715f160a62baf197a8ebab52813cf9 | |
parent | 10761741bd66d2299d49a7094b916d694fcc03c7 (diff) | |
download | rpm-372ce5f7e727dcee91407ef9e2bab540f5d0b85a.tar.gz |
Add all of the rpmbuild macro aliases to rpmspec as well
This adds all of the rpmbuild popt aliases that expand to defines to
rpmspec as well.
It also changes --trace to include --POPTdesc argument help.
[v2: fix an error that broke rpmbuild --trace]
Signed-off-by: Peter Jones <pjones@redhat.com>
(cherry picked from commit 1896e58ffdf2278c47fea5f6e7d29bbf81eac1ad)
-rw-r--r-- | rpmpopt.in | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/rpmpopt.in b/rpmpopt.in index 7021898a4..8e4ef0275 100644 --- a/rpmpopt.in +++ b/rpmpopt.in @@ -221,8 +221,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' +rpmbuild alias --trace --eval '%trace' \ + --POPTdesc=$"trace macro expansion" rpmbuild alias --nodebuginfo --define 'debug_package %{nil}' \ --POPTdesc=$"do not generate debuginfo for this package" @@ -249,7 +249,24 @@ 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' +rpmspec alias --httpport --define '_httpport !#:+' +rpmspec alias --httpproxy --define '_httpproxy !#:+' +rpmspec alias --with --define "_with_!#:+ --with-!#:+" \ + --POPTdesc=$"enable configure <option> for build" \ + --POPTargs=$"<option>" +rpmspec alias --without --define "_without_!#:+ --without-!#:+" \ + --POPTdesc=$"disable configure <option> for build" \ + --POPTargs=$"<option>" +rpmspec alias --scm --define '__scm !#:+' \ + --POPTdesc=$"shortcut for '--define=\"__scm <scm>\"'" \ + --POPTargs=$"<scm>" +# Build policies enabled from command line. Last policy applies. +rpmspec alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#:+' \ + --POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \ + --POPTargs=$"<policy>" +rpmspec alias --trace --eval '%trace' \ + --POPTdesc=$"trace macro expansion" +rpmspec alias --nodebuginfo --define 'debug_package %{nil}' \ + --POPTdesc=$"do not generate debuginfo for this package" # \endverbatim #*/ |