[devel] [jbj на redhat.com: Re: [RFE] %ifdef ?]

Dmitry V. Levin =?iso-8859-1?q?ldv_=CE=C1_alt-linux=2Eorg?=
Пт Фев 22 21:03:21 MSK 2002


Для тренировки ума:

----- Forwarded message from Jeff Johnson <jbj на redhat.com> -----

Date: Fri, 22 Feb 2002 12:55:01 -0500
From: Jeff Johnson <jbj на redhat.com>
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.
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 232 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20020222/f660db55/attachment-0001.bin>


Подробная информация о списке рассылки Devel