ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] rpm macros
@ 2006-09-10 18:59 Alexey Tourbin
  2006-09-11  4:00 ` Alexey Tourbin
  0 siblings, 1 reply; 30+ messages in thread
From: Alexey Tourbin @ 2006-09-10 18:59 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

Вопрос по brainfuck^W rpm macros.

Я хочу один раз подменить __find_requires и __find_provides, отдав в
качестве аргумента новому значению текущее значение:

%fpc_global()	%{?!fpc_%1:%{expand:%%global %1 %2 %%%1%%global fpc_%1 %2}}
%fpc_macro	%([ -x %_rpmlibdir/fpc2.req ])%{fpc_global __find_requires %_rpmlibdir/fpc2.req}%{fpc_global __find_provides %_rpmlibdir/fpc2.prov}
%fpc_dir	%fpc_macro%_libdir/fpc2
%fpc_make	make RELEASE=1 CREATESMART=1 LINKSMART=1 FPCDIR=%fpc_dir

К сожалению аргументы накапливаются в цикле:

$ rpm --eval $'%fpc_dir\n%fpc_make\n%__find_requires'           
/usr/lib/fpc2
make RELEASE=1 CREATESMART=1 LINKSMART=1 FPCDIR=/usr/lib/fpc2
/usr/lib/rpm/fpc2.req /usr/lib/rpm/fpc2.req /usr/lib/rpm/find-requires
$

Что я делаю не так?  Как сделать правильно?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2006-12-10  9:28 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-10 18:59 [devel] rpm macros Alexey Tourbin
2006-09-11  4:00 ` Alexey Tourbin
2006-11-05 21:21   ` [devel] spt/spt3 Денис Смирнов
2006-11-05 21:36     ` Dmitry V. Levin
2006-11-06  5:37       ` Hihin Ruslan
2006-11-06 16:03       ` Денис Смирнов
2006-11-07  8:14         ` Konstantin A. Lepikhov
2006-11-07  8:33           ` Денис Смирнов
2006-11-07  8:36             ` Konstantin A. Lepikhov
2006-11-07  9:25               ` [devel] double chroot Alex V. Myltsev
2006-11-07 20:31                 ` Денис Смирнов
2006-11-07 21:32                   ` [devel] [JT] " Alex V. Myltsev
2006-11-07 23:24                     ` Денис Смирнов
2006-11-08  5:55                       ` Alex V. Myltsev
2006-11-07 10:17           ` [devel] spt/spt3 Mikhail Yakshin
2006-11-07 10:36             ` Konstantin A. Lepikhov
2006-11-07 11:29               ` Mikhail Yakshin
2006-11-07 11:44                 ` Konstantin A. Lepikhov
2006-11-07 12:41                 ` Sergey Vlasov
2006-11-07 13:01                   ` Konstantin A. Lepikhov
2006-11-07 13:08                     ` Dmitry V. Levin
2006-11-07 13:40                       ` [devel] vzctl Slava Dubrovskiy
2006-11-07 15:17                         ` Dmitry V. Levin
2006-11-07 20:34                 ` [devel] spt/spt3 Денис Смирнов
2006-11-07 22:09                   ` Dmitry V. Levin
2006-12-09  9:29                     ` Hihin Ruslan
2006-12-10  0:54                       ` Mikhail Yakshin
2006-12-10  6:21                         ` Hihin Ruslan
2006-12-10  9:28                         ` Konstantin A. Lepikhov
2006-11-07 22:17                 ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git