Skip to search.
rpm-list · Redhat RPM List

Group Information

  • Members: 146
  • Category: Linux
  • Founded: Aug 7, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Re: Unknown spec file directive   Message List  
Reply Message #12949 of 26827 < Prev |
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



Mon Feb 19, 2001 9:26 pm

jbj@...
Send Email Send Email

Message #12949 of 26827 < Prev |
Expand Messages Author Sort by Date

... 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...
Jeff Johnson
jbj@... Send Email
Feb 19, 2001
10:42 pm

... rpm -ba --nossl pine.blah.src.rpm -- Mike A. Harris Shipping/mailing address: OS Systems Engineer 190 Pittsburgh Ave., Sault...
Mike A. Harris
mharris@... Send Email
Feb 24, 2001
11:05 am

... /^^^^^^^^ / Does this really work? Here's what i get (note underscored text): $ cat blah.spec Summary: blah Name: blah Version: 11.0 %{?nossl:Release:...
Jim Knoble
jmknoble@... Send Email
Feb 24, 2001
12:09 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help