From: "Kirill A. Shutemov" <k.shutemov@velesys.com>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Поддержка файлов макроопределений в gear
Date: Wed, 29 Aug 2007 10:41:34 +0300
Message-ID: <20070829074134.GA12416@localhost.localdomain> (raw)
In-Reply-To: <20070829072600.GD28777@basalt.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1893 bytes --]
On [Wed, 29.08.2007 11:26], Dmitry V. Levin wrote:
> Hi,
>
> Cc'ed devel@lists.
>
> On Wed, Aug 29, 2007 at 10:19:57AM +0700, Alexey Morozov wrote:
> > 2. Я реализовал поддержку использования @name@, @version@ и @release@
> > в .gear-rules, даже если в спек-файле их значения определяются через
> > макроподстановки (например, если версия определена так:
> >
> > %define majorver 3.5
> > %define patchlevel 10
> >
> > Version: %majorver.%patchlevel
> >
> > итп. Следует заметить, что конструкции подобного рода часто
> > применяются в наших спеках, и стандартный gear не позволяет
> > использовать @<переменная>@ в этом случае.
>
> Каким образом решить эту проблему? У меня пока нет ответа.
В случае ruby.git с подачи raorn@ это решено так:
> cat .gear-rules
spec: ruby.spec
tar.bz2: ruby spec=ruby-version.spec name=@dir@-@version@-@release@
base=@dir@-@version@-@release@
Т.е ruby.spec -- это "настоящая" спека, а ruby-version.spec -- следующего
содержания:
> cat ruby-version.spec
Name: ruby
Version: 1.8.6
Release: alt2
ruby-version.spec обновляется с помощью скрипта:
> cat update-version
#!/bin/sh
rpm -bE ruby.spec | grep -iE '^(Name|Version|Release):' > ruby-version.spec
Он безопасным не является, но я доверяю содержимому ruby.spec ;)
--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ Velesys LLC, http://www.velesys.com/
+ ALT Linux Team, http://www.altlinux.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-08-29 7:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 7:26 ` Dmitry V. Levin
2007-08-29 7:41 ` Kirill A. Shutemov [this message]
2007-08-29 9:19 ` 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=20070829074134.GA12416@localhost.localdomain \
--to=k.shutemov@velesys.com \
--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