ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] yet another gear-bycicle
@ 2007-01-30 12:43 Igor Vlasenko
  2007-01-30 12:46 ` Alexey I. Froloff
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Igor Vlasenko @ 2007-01-30 12:43 UTC (permalink / raw)
  To: ALT Devel discussion list

Уважаемые коллеги, 
Я тут тоже изобрел велосипед педальный двухколесный 
для работы с gear.

Идея положена та же, что и в rpmwrapper, 
т. е. вызывать rpmbuild перед тем, как коммитить,
чтобы избавиться от затратных циклов 
вроде
for i in 1..10 do 
  make fixes;
  git-commit-garbage;
  gear --rpmbuild;
done;
store-changes;
git-reset --hard HEAD~10 
restore-changes;
git-commit real
которые приходится использовать, чтобы не засорять историю каждым чихом.

в отличие от rpmwrapper, 
это рабочая альтернатива для git/gear репозитария. 
(Насколько я понял, rpmwrapper пойдет на модифицированных
исходниках только если в gear-rules содержатся 
исключительно copy, tar и т.д. ему делать нечем),
не требует создания инфраструктуры .rpmwrapmacros,
работает напрямую с .git-rules.

алгоритм:
1) парсит спек -- выясняет name, version, release.
2) парсит ~/.rpmmacros -- выясняет %_sourcedir. (напр. SOURCES/%name)
3) парсит ./.gear-rules и выполняет директивы на текущих файлах,
помещая результат в %_sourcedir.
4) вызывает rpmbuild.

Вопросы 
1) как назвать (рабочее назв. gear-local-rpmbuild)
2) куда поместить (в gear вряд ли, программа то на перле).


-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine




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

end of thread, other threads:[~2007-01-30 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-30 12:43 [devel] yet another gear-bycicle Igor Vlasenko
2007-01-30 12:46 ` Alexey I. Froloff
2007-01-30 12:48 ` Damir Shayhutdinov
2007-01-30 13:23 ` Alexey Tourbin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git