From: "Антон Мидюков" <midyukov-anton@ya.ru> To: devel-newbies@lists.altlinux.org Subject: Re: [newbies] Макрос %sources Date: Fri, 22 Jul 2016 15:29:21 +0700 Message-ID: <9126e76e-58db-66bb-429c-3ebb7783e4a5@ya.ru> (raw) In-Reply-To: <12603ad2-8075-7070-5bf7-e063240530c6@altlinux.org> 22.07.2016 15:00, Andrey Cherepanov пишет: > 21.07.2016 17:28, Антон Мидюков пишет: >> Чем заменить макрос %sources? Данный макрос представляет собой массив >> всех %SOURCE спека. В Fedora такой макрос есть, хотел взять из их спека >> вот такое: >> >> for S in %{sources}; do >> P=$(basename $S |sed -n 's/\.pretty-.*/.pretty/p') >> [ "$P" ] || continue >> mkdir -p %{buildroot}%{_datadir}/%{name}/modules/$P >> tar xzf $S --strip-components=1 -C >> %{buildroot}%{_datadir}/%{name}/modules/$P >> done >> >> И не знаю, можно ли как-то переделать. А вообще задача около 70 %SOURCE >> установить. В KiCAD посадочные места выделили в отдельные проекты на >> github и их желательно в пакет kicad-library включить. Хотел сделать как >> в Fedora. > А не проще в один архив их через gear запихать и приложить? Наверное, можно. Но как URLы указать в спеке? К тому же, если через git мерджить в каталог, то это занятие утомительное будет (70 с лишним раз). > Или задействовать %expand для подстановки %SOURCEXXXX? Можно примерчик, как это делается? -- С уважением Антон Мидюков <antohami@altlinux.org>
next prev parent reply other threads:[~2016-07-22 8:29 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-07-21 14:28 Антон Мидюков 2016-07-22 8:00 ` Andrey Cherepanov 2016-07-22 8:29 ` Антон Мидюков [this message] 2016-07-22 13:16 ` Andrey Cherepanov
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=9126e76e-58db-66bb-429c-3ebb7783e4a5@ya.ru \ --to=midyukov-anton@ya.ru \ --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