From: Andrey Cherepanov <cas@altlinux.org> To: devel-newbies@lists.altlinux.org Subject: Re: [newbies] Макрос %sources Date: Fri, 22 Jul 2016 16:16:36 +0300 Message-ID: <8283236c-d773-108a-1fcb-5e0741f160b4@altlinux.org> (raw) In-Reply-To: <9126e76e-58db-66bb-429c-3ebb7783e4a5@ya.ru> 22.07.2016 11:29, Антон Мидюков пишет: > 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 с лишним раз). Это сабмодули? Можно обновлять их и паковать тарболом локально вручную (как у меня в chromium). Поддерживать такое в рамках одного Git-репозитория как Git-репозиториев тягомотно. >> Или задействовать %expand для подстановки %SOURCEXXXX? > Можно примерчик, как это делается? firefox-esr-l10n.spec %define langlist af ... %{expand:%(for lang in %{langlist}; do echo "%%global with_dict_$lang 1"; done)} -- Andrey Cherepanov cas@altlinux.org
prev parent reply other threads:[~2016-07-22 13:16 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 ` Антон Мидюков 2016-07-22 13:16 ` Andrey Cherepanov [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=8283236c-d773-108a-1fcb-5e0741f160b4@altlinux.org \ --to=cas@altlinux.org \ --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