ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] rpm macros
Date: Mon, 11 Sep 2006 08:00:06 +0400
Message-ID: <20060911040006.GA17693@localhost.localdomain> (raw)
In-Reply-To: <20060910185913.GD22147@localhost.localdomain>

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

On Sun, Sep 10, 2006 at 10:59:13PM +0400, Alexey Tourbin wrote:
> Вопрос по brainfuck^W rpm macros.
> 
> Я хочу один раз подменить __find_requires и __find_provides, отдав в
> качестве аргумента новому значению текущее значение:
> 
> %fpc_global()	%{?!fpc_%1:%{expand:%%global %1 %2 %%%1%%global fpc_%1 %2}}

%fpc_global()	%{expand:%%{?!fpc_%1:%%global %1 %2 %%%1%%global fpc_%1 %2}}

Так работает.  По-видимому имя переменной в ?! не может содержать ещё
одну меременную, примерно как в шелле.  Значт, нужен ещё один eval.

> %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 --]

  reply	other threads:[~2006-09-11  4:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-10 18:59 Alexey Tourbin
2006-09-11  4:00 ` Alexey Tourbin [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060911040006.GA17693@localhost.localdomain \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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