From: Led <led@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] spec и %def_enable smth-smth
Date: Tue, 13 Jun 2006 13:31:44 +0300
Message-ID: <200606131331.44540.led@altlinux.ru> (raw)
In-Reply-To: <448E8886.6050000@altlinux.org>
В сообщении от 13 июня 2006 12:42 Alexey Rusakov написал(a):
> Pavlov Konstantin wrote:
> > Всем привет.
> >
> > Хочется сделать %def_enable word1-word2, чтобы рулить
> > включением-выключением опции для configure.
> >
> > К примеру: %def_enable java-bindings
> > и далее
> > %if_enabled java-bindings
> > BuildRequires: gcc4.1-java libgcj4.1-devel
> > %endif
> > и %{subst_enable java-bindings} в configure.
> >
> > Однако, ничего из этого не срабатывает.
> > Есть ли мысли, как такое правильно сделать?
>
> Это известные грабли с %def_enable и дефисом. Ничего лучше, чем
>
> %def_enable java_bindings
>
> ...
>
> %if_enabled java_bindings
> ...
> %endif
>
> ...
>
> %{?_enable_java_bindings:--enable-java-bindings}
Можно посмотреть на макрос в пакете ffmpeg и сделать
%{subst_enable_with java_bindings java-bindings}
--
Led.
prev parent reply other threads:[~2006-06-13 10:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 9:33 Pavlov Konstantin
2006-06-13 9:42 ` Alexey Rusakov
2006-06-13 10:31 ` Led [this message]
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=200606131331.44540.led@altlinux.ru \
--to=led@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