Для тренировки ума: ----- Forwarded message from Jeff Johnson ----- Date: Fri, 22 Feb 2002 12:55:01 -0500 From: Jeff Johnson To: rpm-list@redhat.com Subject: Re: [RFE] %ifdef ? On Fri, Feb 22, 2002 at 12:48:19PM -0500, Serguei Ostrovskii wrote: > Hello, > I think it would be useful to have %ifdef operator. > I sure can get away with things like > %if %{?blah:1}%{!?blah:0} > ... but that's not really pretty. > > Comments ? Try %ifdef() %if %{expand:%%{?%{1}:1}%%{!?%{1}:0}} If that "works", I might add to /usr/lib/rpm/macros, if desired. 73 de Jeff -- Jeff Johnson ARS N3NPQ jbj@redhat.com (jbj@jbj.org) Chapel Hill, NC _______________________________________________ Rpm-list mailing list Rpm-list@redhat.com https://listman.redhat.com/mailman/listinfo/rpm-list ----- End forwarded message ----- Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@alt-linux.org ALT Linux Team http://www.altlinux.com/ Fandra Project http://www.fandra.org/ +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are.