ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Lipatov <lav@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] Указание %prefix
Date: Wed, 02 Aug 2023 13:32:27 +0300
Message-ID: <444209109dbae442db170427d4adc73e@etersoft.ru> (raw)

Для задания базового каталог, от которого строятся пути во всех 
макросах, вроде как используется %_prefix (ну ещё задан %prefix %_prefix 
и некоторые используют %prefix).

Вопрос: как его переопределить в пакете (спеке)?

Посмотрел, что есть Prefix: и некоторые его зачем-то задают в пакете 
(это отдельный вопрос).
specs]$ git grep Prefix:
a/anonftp/anonftp.spec:Prefix: /var/ftp
b/bind/bind.spec:Prefix: %prefix
e/eggwm/eggwm.spec:Prefix:              /usr
l/libsigc++1.2/libsigc++1.2.spec:Prefix: %prefix
p/python-module-pyxmpp/pyxmpp.spec:Prefix: %prefix
p/python3-module-serial/python-module-serial.spec:Prefix: %_prefix
x/xfreecell/xfreecell.spec:Prefix: /usr
x/xroach/xroach.spec:Prefix: /usr

Но добавление в спек
Prefix: /newpath
или
%global %_prefix /newpath
не влияют на остальные макросы, определённые через %_prefix

получилось поменять только через явное переопределение
%define _prefix /usr/%_lib/%rname
%define _libdir %_prefix/%_lib
%define _includedir %_prefix/include




-- 
С уважением,
Виталий Липатов,
ALT Linux Team


             reply	other threads:[~2023-08-02 10:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02 10:32 Vitaly Lipatov [this message]
2023-08-02 10:40 ` Gleb Fotengauer-Malinovskiy

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=444209109dbae442db170427d4adc73e@etersoft.ru \
    --to=lav@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