dnf5 icon indicating copy to clipboard operation
dnf5 copied to clipboard

builddep: Support the --with/--without options to toggle bconds

Open dm0- opened this issue 1 year ago • 0 comments

This adds the same options used by rpmbuild, mock, etc. for setting macros to flip build-time conditional switches when parsing spec files. It provides a consistent interface across related tools.

They are aliases in rpmbuild, I'm not sure if there is a better way to accomplish something like that here:

rpmbuild alias --with           --define "_with_!#:+     --with-!#:+" \
        --POPTdesc=$"enable configure <option> for build" \
        --POPTargs=$"<option>"
rpmbuild alias --without        --define "_without_!#:+  --without-!#:+" \
        --POPTdesc=$"disable configure <option> for build" \
        --POPTargs=$"<option>"

dm0- avatar May 26 '24 20:05 dm0-