devel@ where you _can_ ask
 help / color / mirror / Atom feed
* [newbies] Макрос %sources
@ 2016-07-21 14:28 Антон Мидюков
  2016-07-22  8:00 ` Andrey Cherepanov
  0 siblings, 1 reply; 4+ messages in thread
From: Антон Мидюков @ 2016-07-21 14:28 UTC (permalink / raw)
  To: devel

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-22 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-21 14:28 [newbies] Макрос %sources Антон Мидюков
2016-07-22  8:00 ` Andrey Cherepanov
2016-07-22  8:29   ` Антон Мидюков
2016-07-22 13:16     ` Andrey Cherepanov

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