construct to do 'if not' in rpm specs

Jesse Keating jkeating at redhat.com
Sat Jun 2 01:48:20 UTC 2007


On Friday 01 June 2007 20:11:32 Jesse Keating wrote:
> I need to do a construct in an rpm spec:
>
> if value
>   if not othervalue
>     stuff
>   endif
> endif
>
> but my google skills are lacking finding the construct to do a generic 'if
> not' in a spec file...

Thanks for the suggestions, however I realized I needed to to do something 
slightly different, and could use a comparison for it:

%if value
%if 0{?%rhel} > 4
stuff
%endif
%endif

-- 
Jesse Keating
Release Engineer: Fedora
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20070601/e3625dcd/attachment.sig>


More information about the fedora-devel-list mailing list