devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: devel@where you _can_ ask <devel-newbies@lists.altlinux.org>
Subject: [newbies] Макрос %sources
Date: Thu, 21 Jul 2016 21:28:30 +0700
Message-ID: <dc7dea65-6ea8-1642-3201-3a49c42bfc7f@ya.ru> (raw)

Чем заменить макрос %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.

-- 
С уважением Антон Мидюков <antohami@altlinux.org>



             reply	other threads:[~2016-07-21 14:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-21 14:28 Антон Мидюков [this message]
2016-07-22  8:00 ` Andrey Cherepanov
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=dc7dea65-6ea8-1642-3201-3a49c42bfc7f@ya.ru \
    --to=midyukov-anton@ya.ru \
    --cc=devel-newbies@lists.altlinux.org \
    --cc=devel@where \
    /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