Re: rpmbuild command line override spec file %define

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 22, 2006 at 10:09:57AM +0200, Christian Joensson wrote:

> darn, I was afraid that that was the case...  just to conclude, I
> would have needed it, but I guess that's the rpm ideal, everything in
> the spec file, not much command line or environment settings that
> override the spec file. is this perception of mine

You can not override the spec file, but you can still replace

   %define build_ada 1

in the spec file by something like

   %define build_ada %{?my_build_ada}%{?!my_build_ada:1}

(untested), which would mean that "1" is taken when you don't
define "my_build_ada", or the value of %{my_build_ada} when you
define it on the command line with

   --define 'my_build_ada 0'

As said, it's untested, as I'm not sure about whether the
evaluation of %{?!my_build_ada:...} actually works when the
value is zero.

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux