409 rpm alias --downgrade --oldpackage \
410 --POPTdesc=$"Allow an upgrade to replace a newer package with an older one."
412 rpm alias --what-provides --whatprovides \
413 --POPTdesc=$
"find package name that contains a provided capability"
415 rpm alias --what-requires --whatrequires \
416 --POPTdesc=$
"find package name that contains a required capability"
418 rpm alias --norepackage --define
'_repackage_all_erasures 0' \
419 --POPTdesc=$
"Disable re-package of the files before erasing"
422 # set the time check to <secs>
423 rpm alias --timecheck --define
'_timecheck !#:+'
425 rpm alias --with --define
"_with_!#:+ --with-!#:+" \
426 --POPTdesc=$
"enable configure <option> for build" \
427 --POPTargs=$
"<option>"
428 rpm alias --without --define
"_without_!#:+ --without-!#:+" \
429 --POPTdesc=$
"disable configure <option> for build" \
430 --POPTargs=$
"<option>"
432 rpm alias --arch --qf
'%-34{=NAME}\t%{ARCH}\n' \
433 --POPTdesc=$
"list package architecture"
435 rpm alias --ignorearch --define
'__ignore_arch 1'
436 rpm alias --ignoreos --define
'__ignore_os 1'
438 #==============================================================================
439 rpmbuild alias --dbpath --define
'_dbpath !#:+' \
440 --POPTdesc=$
"use database in DIRECTORY" \
441 --POPTargs=$
"DIRECTORY"
442 rpmbuild alias --ftpport --define
'_ftpport !#:+'
443 rpmbuild alias --ftpproxy --define
'_ftpproxy !#:+'
444 rpmbuild alias --httpport --define
'_httpport !#:+'
445 rpmbuild alias --httpproxy --define
'_httpproxy !#:+'
446 rpmbuild alias --timecheck --define
'_timecheck !#:+'
447 rpmbuild alias --with --define
"_with_!#:+ --with-!#:+" \
448 --POPTdesc=$
"enable configure <option> for build" \
449 --POPTargs=$
"<option>"
450 rpmbuild alias --without --define
"_without_!#:+ --without-!#:+" \
451 --POPTdesc=$
"disable configure <option> for build" \
452 --POPTargs=$
"<option>"
453 rpmbuild alias --buildroot --define
'.buildroot !#:+' \
454 --POPTdesc=$
"override build root" \
455 --POPTargs=$
"DIRECTORY"
457 # (PLD-specific) Make RPM build tree
458 rpmbuild exec --install-
build-tree install-
build-tree \
459 --POPTdesc=$
"make all needed dirs for building binary rpms"
461 # (PLD-specific) Compiling with debuginfo may be enabled by --debug
462 rpmbuild alias --debug --define
'debug 1' \
463 --POPTdesc=$
"build packages with debug information"
465 # (PLD-specific) Conditional building
466 rpmbuild exec --bcond find-
spec-bcond \
467 --POPTdesc=$
"find all --with/--without values"
469 rpmbuild alias --lsb --noautoreq --noautoprov \
470 --define
'_use_internal_dependency_generator 0' \
473 rpmbuild alias --withoutcheck --define
'check exit 0' \
474 --POPTdesc=$
"disable %check stanza for build"
475 rpmbuild alias --withoutclean --define
'__spec_clean_body %{nil}' \
476 --POPTdesc=$
"disable %clean stanza for build"
479 rpm alias --initdb -qa --quiet \
480 --POPTdesc=$
"Compatibility option with old rpm. Database is created lazily now."
482 rpm alias --downgrade --oldpackage \
483 --POPTdesc=$
"Allow an upgrade to replace a newer package with an older one."
485 rpm alias --what-provides --whatprovides \
486 --POPTdesc=$
"find package name that contains a provided capability"
488 rpm alias --what-requires --whatrequires \
489 --POPTdesc=$
"find package name that contains a required capability"
491 rpm alias --norepackage --define
'_repackage_all_erasures 0' \
492 --POPTdesc=$
"Disable re-package of the files before erasing"
494 rpmbuild alias --disable-debuginfo --define
'_enable_debug_packages 0' \
495 --POPTdesc=$
"Disable debuginfo package creation"
int build(rpmts ts, BTA_t ba, const char *rcfile)