From: Artem Zolochevskiy <artem.zolochevskiy@gmail.com> To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org> Subject: Re: [newbies] советы по мотивам spec-файла Date: Tue, 13 Oct 2009 11:16:38 +0300 Message-ID: <774a4f4a0910130116i310f4fdct7016171cf87fd404@mail.gmail.com> (raw) In-Reply-To: <20091010231312.GA21375@altlinux.org> 11 октября 2009 г. 2:13 пользователь Alexey I. Froloff <raorn@altlinux.org> написал: > On Sat, Oct 10, 2009 at 09:05:05PM +0300, Artem Zolochevskiy wrote: >> * Два питоновских файла: asciidoc.py и a2x.py >> * симлинки на них в этом же какталоге: asciidoc и a2x соовтетсвенно. > Расширение .py никому не нужно. Переименовать. Точно! А что мне такое просто решение в голову не пришло. А то я было думал куда то в недра /usr/share/ эти .py выносить, в а bindir делать симлинки с именами без разширений. >> * какие-то может я ещё варианты упустил? > Если docdir заполняется на стадии %install и плюс к этому хочется > использовать %doc в %files, обязательно сделать: > > %define _customdocdir %_defaultdocdir/%name-%version > > и %doc использовать только в одном пакете. Вместо %doc в %files > можно раскладывать всю документацию на стадии %install, а в > %files ссылаться на %_customdocdir/foo (не забываем про %dir > %%_customdocdir в каждом пакете). Если я всё верно понял, то примерно где-то так оно и сделано. Ну за исключением, что %doc всё же в нескольких подпакетах используется, правда с вкраплениями %exclude А вот с макросами я так и пойму. Тут из разряда "на вкус и цвет"? Например у меня используется %define docdir %_docdir/%name-%version А где-то видел ещё и $RPM_DOC_DIR в использовании. Заодно и ещё один момент. Я верно понимаю, что традиция (а может ещё какие причины?) такова, что если уж и делать %define на каталог, то хорошо бы в любом случае начинать с "_" ? -- Артём Золочевский
next prev parent reply other threads:[~2009-10-13 8:16 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-10-10 18:05 Artem Zolochevskiy 2009-10-10 18:11 ` Aleksey Avdeev 2009-10-10 23:13 ` Alexey I. Froloff 2009-10-13 8:16 ` Artem Zolochevskiy [this message] 2009-10-13 8:38 ` REAL 2009-10-13 8:37 ` Andrey Rahmatullin 2009-10-13 8:57 ` Alexey I. Froloff 2009-10-16 6:49 ` Artem Zolochevskiy 2009-10-16 7:11 ` Michael Shigorin 2009-10-16 7:20 ` Artem Zolochevskiy 2009-10-16 7:23 ` Michael Shigorin 2009-10-16 14:38 ` Timur Batyrshin 2009-10-10 23:18 ` Alexey I. Froloff 2009-10-11 10:06 ` Michael Shigorin 2009-10-13 8:22 ` Artem Zolochevskiy 2009-10-13 9:00 ` Alexey I. Froloff 2009-10-13 12:05 ` Michael Shigorin
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=774a4f4a0910130116i310f4fdct7016171cf87fd404@mail.gmail.com \ --to=artem.zolochevskiy@gmail.com \ --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