RPM Build Options (--with foo/--without bar, etc.) [Was: Re: Optional packages for the build-time testsuite runs?]

Peter Gordon peter at thecodergeek.com
Tue Nov 20 02:33:20 UTC 2007


On Mon, 2007-11-19 at 15:42 +0100, Ralf Corsepius wrote:
> What I have done in similar situations [1] is applying rpm's
> --with/--without in combination with koji scratch builds and local
> builds.
> 
> I.e. I am using %{?_with_XXX} and friends inside of specs, such that you
> can specify them on rpmbuild's command-line for manual local builds. 

This is what I ended up doing for the startup-notification support in
Openbox a long time ago. (It was disabled by default at upstream's
request, but a simple "--with startup_notification" to rpmbuild would
have enabled it). If you intend to go about this path, I recommend using
the %bcond_with and %bcond_without macros. The encapsulate the
%{?_with_foo} stuff and make it just a little bit simpler. :)
-- 
Peter Gordon (codergeek42)
GnuPG Public Key ID: 0xFFC19479 / Fingerprint:
  DD68 A414 56BD 6368 D957 9666 4268 CB7A FFC1 9479
  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20071119/0603363e/attachment.sig>


More information about the fedora-devel-list mailing list