devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] использование масок в %files
Date: Tue, 12 Jan 2010 17:10:16 +0200
Message-ID: <20100112151016.GK29926@osdn.org.ua> (raw)
In-Reply-To: <774a4f4a1001120400p72dc0d18l10c3d57c8a66d25d@mail.gmail.com>

On Tue, Jan 12, 2010 at 02:00:42PM +0200, Artem Zolochevskiy wrote:
> А использование чего-то вроде
> %files
> %_bindir/*
> %_man1dir/*
> имеет какие-то недостатки? чем-то чревато?

Имеет плюсы и минусы, во многом вопрос отношения и вкуса.
Если чаще слепые пересборки и апстрим надёжный, то * может
включить новопоявившиеся утилиты.  А если апстрим так себе,
то явное перечисление может помочь отловить молчаливый облом
сборки одной из них.

> Просто вижу в спеках у более опытных коллег, вроде как
> предпочитают указывать явно. [...] или дело вкуса?

Я склонен использовать или %_bindir/%name как тривиальный случай,
или %_bindir/* в нетривиальных.

PS: на всякий до кучи -- если надо рассовать по подпакетам,
вместо хитрых (и ненадёжных) шаблонов типа %_bindir/l[^i]*
проще и яснее применять %exclude %_bindir/ненужное.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      parent reply	other threads:[~2010-01-12 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-12 12:00 Artem Zolochevskiy
2010-01-12 12:09 ` Timur Batyrshin
2010-01-12 15:10 ` Michael Shigorin [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=20100112151016.GK29926@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=devel-newbies@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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git