From: Andrey Cherepanov <cas@altlinux.org>
To: devel-newbies@lists.altlinux.org
Subject: Re: [newbies] Макрос %sources
Date: Fri, 22 Jul 2016 11:00:48 +0300
Message-ID: <12603ad2-8075-7070-5bf7-e063240530c6@altlinux.org> (raw)
In-Reply-To: <dc7dea65-6ea8-1642-3201-3a49c42bfc7f@ya.ru>
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 запихать и приложить?
Или задействовать %expand для подстановки %SOURCEXXXX?
--
Andrey Cherepanov
cas@altlinux.org
next prev parent reply other threads:[~2016-07-22 8:00 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 [this message]
2016-07-22 8:29 ` Антон Мидюков
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=12603ad2-8075-7070-5bf7-e063240530c6@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