From: Mikhail Zabaluev <mhz@alt-linux.org> To: devel@altlinux.ru Subject: [devel] Re: doc packaging Date: Fri, 9 Nov 2001 13:02:53 +0300 Message-ID: <20011109130253.A26216@localhost.localdomain> (raw) In-Reply-To: <20011108102934.GB2382@ldv.office.alt-linux.org> [-- Attachment #1: Type: text/plain, Size: 1290 bytes --] Hello Dmitry, On Thu, Nov 08, 2001 at 01:29:34PM +0300, Dmitry V. Levin wrote: > > > В -devel обычно только это и кладут, плюс документацию. > > Если бы :) По крайней мере, я стараюсь так делать :) > > > Что касается %_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*}} Пример: %install ... %installdoc -d devel doc/*.txt ChangeLog ... %files devel %docsub -d devel -- Stay tuned, MhZ JID: mookid@jabber.org ___________ sugar daddy, n.: A man who can afford to raise cain. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2001-11-09 10: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 ` Mikhail Zabaluev [this message] 2001-11-16 9:02 ` [devel] Re: doc packaging Dmitry V. Levin
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=20011109130253.A26216@localhost.localdomain \ --to=mhz@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