From: "Dmitry V. Levin" <ldv@fandra.org>
To: devel@linux.iplabs.ru
Subject: Re: rpm macros Re: [devel] TODO
Date: Thu, 14 Dec 2000 05:06:37 +0300
Message-ID: <20001214050637.B21233@LDV.fandra.org> (raw)
In-Reply-To: <Pine.LNX.4.31L.0012131931470.5825-100000@zephyrous.ru>; from vanyaz@mccme.ru on Wed, Dec 13, 2000 at 07:33:33PM +0300
[-- Attachment #1: Type: text/plain, Size: 1196 bytes --]
On Wed, Dec 13, 2000 at 07:33:33PM +0300, Ivan Zakharyaschev wrote:
> > Попрошу в будущем при сборке пакетов определять макросы:
> > %distribution Linux-Mandrake Russian Edition
> > %vendor IPLabs Linux Team
> > %packager yourname <youremailaddress>
>
> Я однажды использовал
>
> %define packagerName %(echo '%packager' | sed -e 's/ <.*>//')
> %define packagerAddress %(echo '%packager' | sed -e 's/.*<//;s/>//')
>
> Может добавить что-нибудь похожее в число стандартных?
В таком виде пойдет (протестировано на .rpmmacros)?
%packagerName %(echo -E '%packager' |sed -e 's/[[:space:]]*<.*//')
%packagerAddress %(echo -E '%packager' |sed -e %'s/.*<\\\([^<>]\\+@[^<>]\\+\\\)>.*/\\1/')
(так много \ из-за rpm-экранирования и sed-экранирования).
Regards,
Dmitry
+-------------------------------------------------------------------------+
Dmitry V. Levin mailto://ldv@fandra.org
Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html
IPLabs Linux Team http://linux.iplabs.ru
Fandra Project http://www.fandra.org
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2000-12-14 2:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-13 1:41 aen
2000-12-13 0:39 ` Dmitry V. Levin
2000-12-13 5:22 ` aen
2000-12-13 8:47 ` Alexander Bokovoy
2000-12-13 9:04 ` Alexander Bokovoy
2000-12-13 16:26 ` names for pkg " Ivan Zakharyaschev
2000-12-13 21:16 ` aen
2000-12-13 16:33 ` rpm macros " Ivan Zakharyaschev
2000-12-14 2:06 ` Dmitry V. Levin [this message]
2000-12-14 16:23 ` Ivan Zakharyaschev
2000-12-15 0:12 ` Dmitry V. Levin
2000-12-13 8:38 ` Mikhail Zabaluev
2000-12-13 10:13 ` Alexander Bokovoy
2000-12-14 9:44 ` Mikhail Zabaluev
2000-12-14 12:35 ` Alexander Bokovoy
2000-12-14 22:09 ` Mikhail Zabaluev
2000-12-13 17:41 ` aen
2000-12-14 9:20 ` Mikhail Zabaluev
2000-12-14 19:02 ` aen
2000-12-13 16:42 ` Ivan Zakharyaschev
2000-12-13 21:17 ` aen
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=20001214050637.B21233@LDV.fandra.org \
--to=ldv@fandra.org \
--cc=devel@linux.iplabs.ru \
/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