On Mon, Feb 19, 2001 at 10:21:48AM -0500, Ryan W. Maple wrote:
>
> I ran across this in a spec file the other day (pine 4.30 from RH 6.2
> updates IIRC):
>
> %{!?nossl:BuildPrereq: openssl-devel}
>
> I tried setting some stuff like "%define nossl 0" and "%define nossl 1",
> but neither of those did the trick (rpm -ba still complained about wanting
> openssl-devel).
>
The test is for existence, not value, so you would have to do
%undefine nossl
to invert the test. I can't tell what value is needed, as you've only supplied
an existence test as an example.
> I can't find any reference to such a directive in the bible (Maximum RPM)
> nor in the archives (I looked quickly). If somebody could shed some light
> on this it would help a lot.
>
The '?' in the macro is a test for existence, the '!' negates the test.
what follows the ':' up to the '}' is what is expanded, depending on the
test.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@... (jbj@...)
Chapel Hill, NC
_______________________________________________
Rpm-list mailing list
Rpm-list@...https://listman.redhat.com/mailman/listinfo/rpm-list