Search the web
Sign In
New User? Sign Up
rpm-list · Redhat RPM List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 12949 - 12949 of 26827   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#12949 From: Jeff Johnson <jbj@...>
Date: Mon Feb 19, 2001 9:26 pm
Subject: Re: Unknown spec file directive
jbj@...
Send Email Send Email
 
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

Messages 12949 - 12949 of 26827   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

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