From: Michael Shigorin <mike@altlinux.org>
To: devel-newbies@lists.altlinux.org
Subject: Re: [newbies] Сборка пакета Robomongo
Date: Wed, 8 Oct 2014 22:51:40 +0400
Message-ID: <20141008185140.GJ28052@imap.altlinux.org> (raw)
In-Reply-To: <452151412789611@web26g.yandex.ru>
On Wed, Oct 08, 2014 at 09:33:31PM +0400, Константин wrote:
> Теперь собирать пытаюсь вот это: https://github.com/paralect/robomongo/tree/v0.8.4
> Хотел пойти простым способом - импортировать srpm, но нигде ее не нашел, придется делать с нуля.
Похоже на то. Вот моя "пустышка", если что:
http://ftp.altlinux.org/pub/people/mike/SPECS/_minimal.spec
> 1. Вот тут написано про огранизацию git-а:
> http://www.altlinux.org/Git/gitnotes
> В примере код upstream импортируется из архива. Можно (и нужно
> ли) его просто склонировать из git-а upstream со всей историй
> версий или не надо так делать?
Можно и так, но обычно удобней оформить чуть иначе:
$ git init
$ git remote add upstream git://...
$ git remote update upstream
При этом образуется набор удалённых веток, которые можно git merge
или git cherry-pick по коммитам, смотря что требуется.
Ещё для создания "пустых" веток может пригодиться
http://www.altlinux.org/Файл:Git-empty-branch.sh
-- тогда git rebase можно делать от первого коммита,
который в таком случае оказывается только "якорем".
> Ниже написано, что потом обновить код можно будет с помощью
> gear-update. Как gear-update узнает откуда его брать, если мы
> до этого просто скормили git архив?
Его пока не осваивал, всё как-то врукопашную...
> 2. Не очень уверен, что правильно понял по поводу веток:
Вообще говоря, тренироваться может быть проще на тарболе и спеке.
А когда уже будет наработан спек -- тогда переключиться на вопросы
упаковки из гита.
> 3. В папке src лежит папка 3rd party - ее же нельзя тащить в
> srpm, вместо нее надо использовать библиотеки из репозитория?
Лучше не тащить, но те библиотеки могут быть патчеными или
заданных версий -- надо разбираться.
> 4. Есть папка build скриптов. Нормально ли при сборке rpm
> просто вызвать build scrpit или надо его переписать внутрь
> spec?
Лучше вызвать, чем переписывать и затем поддерживать.
> 5. Все, что относиться к windows и osx выпиливается естественно?
Да, ведь в пакете оно будет мусором.
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
prev parent reply other threads:[~2014-10-08 18:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-08 17:33 Константин
2014-10-08 18:51 ` Michael Shigorin [this message]
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=20141008185140.GJ28052@imap.altlinux.org \
--to=mike@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