From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 22 Feb 2002 21:03:21 +0300 From: "Dmitry V. Levin" To: devel@altlinux.ru Message-ID: <20020222180321.GA31766@ldv.office.alt-linux.org> Mail-Followup-To: devel@altlinux.ru Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Subject: [devel] [jbj@redhat.com: Re: [RFE] %ifdef ?] Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: devel@altlinux.ru List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Archived-At: List-Archive: List-Post: --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit Для тренировки ума: ----- 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. --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8dofp9viEa8HiNCkRAlNpAJ9CPu/MTEcwEwdyk41Yatr102bkxQCeLJgB FdJ0cH6y689QYX5EmEPnNo0= =M1cf -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--