ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Rusakov <ktirf@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] Автоматические rpm-скрипты
Date: Mon, 1 Oct 2007 23:26:31 +0400
Message-ID: <20071001232631.3ff66e9a@mission> (raw)
In-Reply-To: <20070927221541.GC4648@hell.fortress>

On Fri, 28 Sep 2007 02:15:41 +0400
Alexey I. Froloff wrote:


> * Alexey Rusakov <ktirf@> [070927 16:38]:
> > автоматическое выполнение некоторых действий при наличии в пакете нужных
> > файлов. Не знаю пока, честно говоря, как её лучше решать, но подобные
> > случаи напрашиваются на автоматизацию.
> Есть несколько "общих случаев":
> 
> %_libdir/lib*.so* - %post_ldconfig
> %_desktopdir/*.desktop - %update_menu
> %_infodir/*.info - %install_info
> 
> И так далее.  Вот только в какой момент это делать?  Если при
> установке - теряем requires(pre,post,wtf) или мантейнер должен
> опять сам следить за зависимостями.
Да, это плохо. Значит, всё-таки при сборке.

> На стадии сборки?  Откуда
> брать информацию, для каких файлов какие действия выполнять,
> точнее как предоставлять эту информацию rpm'у?
Информация эта в распоряжении rpm уже будет, это списки файлов, попадающих
в пакет. Другой вопрос, что придётся, видимо, придумывать инфраструктуру,
добавляющую скрипты в собираемый rpm-пакет.

> Ну и потом из всех общих случаев есть исключения...
Исключения всегда можно явным образом отрабатывать в спек-файле. Был бы
инструмент...

-- 
  Alexey "Ktirf" Rusakov
  GNOME Project
  ALT Linux Team


      reply	other threads:[~2007-10-01 19:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-27 12:28 Alexey Rusakov
2007-09-27 22:15 ` Alexey I. Froloff
2007-10-01 19:26   ` Alexey Rusakov [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=20071001232631.3ff66e9a@mission \
    --to=ktirf@altlinux.org \
    --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