devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] TOra
Date: Sat, 2 Jan 2010 13:36:53 +0200
Message-ID: <20100102113653.GI21598@osdn.org.ua> (raw)
In-Reply-To: <4B3EF9C4.8030404@gmail.com>

On Sat, Jan 02, 2010 at 10:46:12AM +0300, Andrew Clark wrote:
> У нее странное желание пихать html документацию в %_libdir,
> поскольку это не правильно, то приходится указывать вручную
> места расположения файлов. Все-таки, есть сомнения как
> поступить, устанавливать туда, куда указано в Makefile, или
> устанавливать самому?

Самому, куда положено.  Но обычно лучше выполнить апстримный
make install и потом точечно rm или mv разложенное не туда.

> И еще, как правильно установить info файл вручную (какие
> действия необходимо сделать, что бы файл был скомпрессирован и
> содержал dir файл)?  Сейчас получаю такую ошибку:

Кажется, никого дёргать не надо, просто положить в %_infodir
-- сейчас install-info дёргается после транзакции, включающей
пакеты, имеющие файлы в /usr/share/info (rpm posttrans trigger).

> install-info: warning: no info dir entry in
> `/home/andy/tmp/tora-buildroot/usr/share/info/tora.info.bz2'

Сам в texinfo ноль, потому разве что обратил бы на такое
внимание апстрима.

> Summary: TOra is an open-source multi-platform database management GUI
> Group: Games/Other

Ух.  Всё-таки скорее Databases.

> Source: http://sourceforge.net/projects/tora/files/tora/2.1.1/%name-%version.tar.gz

Здесь вместо 2.1.1 на всякий тоже бы поставил %version --
кажется, rpmrb в таком случае сможет сам вытащить новый тарбол.

> %prep
> %setup -n %name-%version

Это просто %setup, ключи по умолчанию.

> %install
> #%makeinstall_std

Разремарил бы с учётом вышесказанного.  BTW ремарить надо иначе:
#makeinstall_std либо #%%makeinstall_std, поскольку макросы могут
иметь побочные эффекты при раскрытии, а препроцессор на символы
"#" внимания не обращает:

http://www.altlinux.org/TypicalPackagingErrors/StrikeOutMacro

> mkdir -p %buildroot/{%_bindir,%_libdir/%name,%_infodir,%_docdir/%name/{api,images}}
> install -pD -m 644 %_builddir/%name-%version/doc/help/%name/*.html  %buildroot%_docdir/%name/

Обычно в %_docdir/%name-%version/ (что обсуждалось в пользу
убирания версии по умолчанию, но ни к чему так и не пришли).
И тогда лучше не устанавливать руками, а просто добавить в
%files строчку %doc doc/help/%name/*.html -- само всё сделает.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      reply	other threads:[~2010-01-02 11:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-02  7:46 Andrew Clark
2010-01-02 11:36 ` 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=20100102113653.GI21598@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --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