ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@alt-linux.org>
To: devel@altlinux.ru
Subject: Re: [devel] Re: doc packaging
Date: Fri, 16 Nov 2001 12:02:54 +0300
Message-ID: <20011116090254.GD476@ldv.office.alt-linux.org> (raw)
In-Reply-To: <20011109130253.A26216@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1674 bytes --]

On Fri, Nov 09, 2001 at 01:02:53PM +0300, Mikhail Zabaluev wrote:
> > > > Что касается %_docdir, то, как уже однажды заметил Андрей Астафьев, было
> > > > бы логично помещать документацию подпакетов в подкаталоги общего дерева,
> > > > [lib]%name-%version. В качестве примера см., напр.,
> > > > "rpm -qf /usr/share/doc/bash-2.05"
> > > 
> > > Т.е. отказаться в подпакетах от магии %doc? Много писанины, но как
> > > решение сгодится.
> > 
> > Давайте придумаем, как добиться того же эффекта без лишней писанины.
> 
> Макрос установки документов в фазе %install:
> 
> %installdoc(d:) \
> 	installdocdir="%{-d:%{-d*}}" \
> 	[ "${installdocdir##/*}" = "" ] || \
> 		installdocdir="%buildroot%_defaultdocdir/%name-%version/$installdocdir" \
> 	%__install -d -m755 "$installdocdir" \
> 	%__install -m644 %* "$installdocdir" \
> 	%{nil}

так оно, конечно, работать не будет, но идея понятна.

> Макрос для указания подкаталога в секции %files:
> 
> %docsub(d:) %doc %_defaultdocdir/%name-%version/%{-d:%{-d*}}

в таком виде будут стандартные грабли с %version.

> Пример:
> 
> %install
> ...
> %installdoc -d devel doc/*.txt ChangeLog
> ...
> 
> %files devel
> %docsub -d devel

Пожалуй, это удобно для использования.

Если других предложений больше нет, то я попробую эту идею претворить
в жизнь.


Regards,
	Dmitry

+-------------------------------------------------------------------------+
Dmitry V. Levin     mailto://ldv@alt-linux.org
ALT Linux Team      http://www.altlinux.ru/
Fandra Project      http://www.fandra.org/
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

      reply	other threads:[~2001-11-16  9:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-06 13:15 [devel] (no subject) Aleksey Novodvorsky
2001-11-07 21:01 ` [devel] Re: delibification Mikhail Zabaluev
2001-11-07 21:34   ` Anton Farygin
2001-11-08  2:57     ` Mikhail Zabaluev
2001-11-08  6:59     ` Stanislav Ievlev
2001-11-08  8:47       ` Mikhail Zabaluev
2001-11-08 10:19           ` Mikhail Zabaluev
2001-11-08 11:03         ` Aleksey Novodvorsky
2001-11-09  0:12             ` Mikhail Zabaluev
2001-11-09 12:40               ` Aleksey Novodvorsky
2001-11-08  8:02   ` Dmitry V. Levin
2001-11-08 10:12     ` Mikhail Zabaluev
2001-11-08 10:29       ` Dmitry V. Levin
2001-11-09 10:02         ` [devel] Re: doc packaging Mikhail Zabaluev
2001-11-16  9:02           ` Dmitry V. Levin [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=20011116090254.GD476@ldv.office.alt-linux.org \
    --to=ldv@alt-linux.org \
    --cc=devel@altlinux.ru \
    --cc=devel@linux.iplabs.ru \
    /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