From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] gear - с чего начинать
Date: Sat, 6 May 2006 16:30:03 +0400
Message-ID: <20060506123003.GM17800@basalt.office.altlinux.org> (raw)
In-Reply-To: <445C913D.2080703@altlinux.com>
[-- Attachment #1: Type: text/plain, Size: 2129 bytes --]
On Sat, May 06, 2006 at 04:06:21PM +0400, Anton Farygin wrote:
> Stanislav Ievlev wrote:
> > On Sat, May 06, 2006 at 03:39:53PM +0400, Dmitry V. Levin wrote:
> >> On Sat, May 06, 2006 at 03:29:32PM +0400, Stanislav Ievlev wrote:
> >> [...]
> >>> Дима, ты мог бы расписать пробный вариант сценария работы с git + gear ?
> >>> Начиная с пункта "я решил собрать пакет в Сизиф", и заканчивая: "src.rpm готов".
> >> Каковы стартовые условия? У тебя есть собственный проект в
> >> git-репозитории (или в другом репозитории, который конвертируется в git),
> >> или у тебя есть только src.rpm прежней сборки?
> > Вариант #1, в CVS.
>
> На примере alterator-packages:
>
> # импортируем репозитарий
> git-cvsimport -d <cvs репозитарий, в синтаксисе cvs> alterator-packages
> pushd alterator-packages
> # создаём каталог для сорцов
> mkdir alterator-packages
> # добавляем этот каталог в репозитарий
> cg-add -r alterator-packages
> # перебрасываем всё что импортировано в каталог для сорцов
> cg-mv backend* help icons map po ui TODO Makefile config-packages*
> alterator-packages.* alterator-packages/
> # делаем правила для сборки gear'ом
> echo "spec: alterator-packages/alterator-packages.spec" >.gear-rules
> echo "tar.bz2: alterator-packages" >> .gear-rules
> cg-add .gear-rules
> # коммитим
> cg-commit -m "initial release for gear"
>
> # собираем
> gear .git/ --rpmbuild -- rpm -ba
Аналогично, на примере реальной истории импорта libutempter
(пишу по .bash_history):
$ cat ~/author-conv-file
ldv=Dmitry V. Levin <ldv@altlinux>
$ git-cvsimport -d cvsroot_в_синтаксисе_cvs -C libutempter -k -u -A ~/author-conv-file libutempter
$ pushd libutempter
$ git-ls-files |xargs -r fgrep -l '$Id' |xargs -r subst '/\$Id/ d' --
$ git-commit -a -m 'Removed cvsid tags.'
$ mkdir libutempter
$ git-mv -k * libutempter/
Warning: can not move directory 'libutempter' into itself; skipping
$ cat >.gear-rules
spec: libutempter/libutempter.spec
tar: libutempter
$ git-commit -a -m 'Renamed: * -> libutempter/; New file: .gear-rules'
$ gear .git --hasher -- hsh path/to/workdir
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
next prev parent reply other threads:[~2006-05-06 12:30 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-05 15:49 [devel] gear - проблема с парсингом SPEC-файла Anton Farygin
2006-05-05 16:05 ` Anton Farygin
2006-05-05 16:13 ` Dmitry V. Levin
2006-05-05 16:28 ` Anton Farygin
2006-05-05 16:36 ` Dmitry V. Levin
2006-05-05 21:25 ` Dmitry V. Levin
2006-05-05 22:42 ` Dmitry V. Levin
2006-05-06 9:16 ` Anton Farygin
2006-05-06 8:45 ` Anton Farygin
2006-05-06 11:00 ` Dmitry V. Levin
2006-05-06 11:17 ` Anton Farygin
2006-05-06 11:17 ` Dmitry V. Levin
2006-05-06 11:29 ` Stanislav Ievlev
2006-05-06 11:38 ` Stanislav Ievlev
2006-05-06 11:48 ` Anton Farygin
2006-05-06 11:47 ` Stanislav Ievlev
2006-05-06 11:51 ` [devel] gear - с чего начинать Dmitry V. Levin
2006-05-06 11:55 ` Stanislav Ievlev
2006-05-06 12:09 ` Anton Farygin
2006-05-06 12:18 ` Stanislav Ievlev
2006-05-06 12:24 ` Anton Farygin
2006-05-06 12:26 ` Aleksey Avdeev
2006-05-06 13:36 ` Dmitry V. Levin
2006-05-06 13:54 ` Stanislav Ievlev
2006-05-06 14:42 ` Dmitry V. Levin
2006-05-10 7:49 ` Stanislav Ievlev
2006-05-06 11:39 ` Dmitry V. Levin
2006-05-06 11:44 ` Stanislav Ievlev
2006-05-06 6:10 ` Kirill Maslinsky
2006-05-06 16:57 ` Dmitry V. Levin
2006-05-06 12:06 ` Anton Farygin
2006-05-06 12:30 ` Dmitry V. Levin [this message]
2006-05-06 12:08 ` Epiphanov Sergei
2006-05-06 12:19 ` Stanislav Ievlev
2006-05-06 12:26 ` Anton Farygin
2006-05-06 13:12 ` Alexey I. Froloff
2006-05-06 13:31 ` Anton Farygin
2006-05-06 14:51 ` Alexey I. Froloff
2006-05-06 15:29 ` Anton Farygin
2006-05-06 12:21 ` Anton Farygin
2006-05-06 12:56 ` Alexey I. Froloff
2006-05-06 13:00 ` Dmitry V. Levin
2006-05-07 6:47 ` Alexey I. Froloff
2006-05-07 14:39 ` Dmitry V. Levin
2006-05-07 14:43 ` Damir Shayhutdinov
2006-05-07 14:45 ` Dmitry V. Levin
2006-05-07 14:51 ` Damir Shayhutdinov
2006-05-07 14:53 ` Dmitry V. Levin
2006-05-07 15:00 ` Alexey I. Froloff
2006-05-07 19:48 ` Anton Farygin
2006-05-08 12:36 ` Dmitry V. Levin
2006-05-08 15:36 ` Anton Farygin
2006-05-06 11:44 ` [devel] gear - проблема с парсингом SPEC-файла Anton Farygin
2006-05-09 15:16 ` Alexey I. Froloff
2006-05-09 15:38 ` Dmitry V. Levin
2006-05-09 16:09 ` Alexey I. Froloff
2006-05-10 9:54 ` Dmitry V. Levin
2006-05-10 10:00 ` Alexey I. Froloff
2006-05-11 1:03 ` Dmitry V. Levin
2006-05-05 0:37 ` [devel] I: gear --hasher Dmitry V. Levin
2006-05-10 19:54 ` Alexey I. Froloff
2006-05-10 21:16 ` Dmitry V. Levin
2006-05-10 21:28 ` Alexey I. Froloff
2006-05-10 21:31 ` Dmitry V. Levin
2006-05-10 21:28 ` Alexey I. Froloff
2006-05-11 1:02 ` Dmitry V. Levin
2006-05-11 6:22 ` Alexey I. Froloff
2006-05-11 7:30 ` Alexey I. Froloff
2006-05-14 23:19 ` Dmitry V. Levin
2006-05-24 22:57 ` Dmitry V. Levin
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=20060506123003.GM17800@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@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
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