RPMbuild mystery parameters "--with" and "--without"

Björn Persson bjorn at xn--rombobjrn-67a.se
Mon Jan 20 14:24:12 UTC 2014


Apparently RPMbuild has a pair of parameters "--with" and "--without"
that can supposedly enable and disable optional features in a package.
Has anyone seen any documentation that explains how those work and how
they interact with a spec file?

I want to be able to easily switch an option between these two states:
· off by default but can be enabled with "--with"
· on by default but can be disabled with "--without"
What's a good way to code that in the spec?

According to the Packaging Guidelines we're not supposed to use those
parameters when building "the source RPM to be submitted", because they
somehow get "serialized" into the source package. I don't understand
this, because I don't submit any source packages. The source package
gets built on a Koji server when I run "fedpkg build", and I don't know
of a way to pass any options to that process.

Björn Persson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140120/921aa977/attachment.sig>


More information about the devel mailing list