ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Pozhidaev <msp@altlinux.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] rpm + java
Date: Wed, 21 May 2008 07:31:00 +0700
Message-ID: <m3wsloebwb.fsf@blard.localdomain> (raw)
In-Reply-To: <f725ea640805201441i528b3b67h52faaee4d253a23@mail.gmail.com> (Rinat Bikov's message of "Wed\, 21 May 2008 02\:41\:23 +0500")

Здравствуйте, Ринат!

> Мне нужно упаковать java-приложение в виде .jar архива в rpm для altlinux.
> Можете поделиться каким-нибудь примером подобных пакетов с исходными кодами?
> Просто думаю установку документации, скриптов, конфигов, исходников, приложения
> самому в .jar-архиве прописать или какими-нибудь другими средствами
> (autoconf+automake, к примеру настроить)? И ещё: принято ли исходные тексты,
Ринат, Ваш вопрос пока не очень ясен. Упаковывание java приложений уже довольно хорошо отработано. 
autoconf/automake тут мало используется (если вообще используется).
Документация кладётся в стандартное место в /usr/share/doc. 
javadoc документация кладётся в /usr/share/javadoc.
Подавляющее большинство java-пакетов собираются ant'ом, он всё делает. Бывает надо поправить 
пути в build.xml, чтобы вспомогательные библиотеки брались из Сизифа. Это рекомендуется.
Также можно пользоваться вспомогательными макросами %_javadir и %_javadocdir. Есть некоторая 
неопределённость с указанием зависимостей и выбором версии javac и виртуальной машины.
В Сизифе примеров больше чем достаточно. Сейчас ещё отправлю Вам 
лично какой-нибудь простой спек. :)

> документацию и прочие устанавливаемые данные держать в .jar архиве, или для
Держать такие вещи в jar-файле, как-то, думаю, будет не очень удобно. 
Так делается, если само приложение должно уметь доставать эту доку. 
А больше смысла, имхо, нет. :)
> этого лучше использовать сам rpm?
Ну конечно! :)

-- 
С уважением и наилучшими пожеланиями, Михаил Пожидаев. E-mail: msp@altlinux.ru.
Томский государственный университет. Факультет информатики. http://www.csd.tsu.ru
AltLinux Team. http://www.altlinux.ru



           reply	other threads:[~2008-05-21  0:31 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <f725ea640805201441i528b3b67h52faaee4d253a23@mail.gmail.com>]

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=m3wsloebwb.fsf@blard.localdomain \
    --to=msp@altlinux.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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