From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] SEvents
Date: Fri, 30 May 2008 23:48:57 +0300
Message-ID: <20080530204857.GZ5318@osdn.org.ua> (raw)
In-Reply-To: <f725ea640805301337j54558241x9d41bed42d30da58@mail.gmail.com>
On Sat, May 31, 2008 at 01:37:41AM +0500, Rinat Bikov wrote:
> У меня java-1.6.0-sun-devel
> 1.6.0 - это минимальные требования к версии ява, так как (как
> оказалось) я использую некоторые функции, которые присутствуют
> в яве именно с этой версии. Спек прилагаю.
Это действительно стоит фиксировать вручную, раз/пока автоматика
не в курсе. :)
> Да, кстати, вот некоторый вывод buildreq в конце:
> PANIC: attached pid 5746 exited
> PANIC: handle_group_exit: 5746 leader 5743
> PANIC: attached pid 5747 exited
> PANIC: handle_group_exit: 5747 leader 5743
> PANIC: attached pid 5749 exited
> PANIC: handle_group_exit: 5749 leader 5743
> PANIC: attached pid 5750 exited
> PANIC: handle_group_exit: 5750 leader 5743
> PANIC: attached pid 5744 exited
> PANIC: handle_group_exit: 5744 leader 5743
> + exit 0
> packagereq: optimized out: java
> packagereq: BuildRequires: java-devel unzip
Пока ещё вот что ловлю:
error: Macro %_javadir not found
Можете сделать
rpm -qf `grep -r ^%_javadir /etc/rpm/macros.d/ | cut -f1 -d:`
и добавить в BuildRequires или BuildPreReq вручную?
> # Automatically added by buildreq on Fri May 30 2008
> BuildRequires: java-devel unzip
Вот здесь лучше уточнить что-то вроде (не вглядывался
в версионирование)
BuildRequires: java-devel >= 1.6.0
> %prep
> %setup -q
-q уже с год по дефолту, хотя всё равно косметика... :)
> %install
> mkdir -p %buildroot/%_javadir
Здесь можно не ставить "/" (хотя не помешает и тоже косметика)
-- см. вывод rpm -bE sevents.spec
> mkdir -p %buildroot/%_bindir
> install -m 755 sevents %buildroot/%_bindir/sevents
Это можно сделать (если файл один) одним ходом:
install -pD -m755 sevents %buildroot/%_bindir/sevents
(-p заодно сохранит время модификации файла)
> mkdir -p %buildroot/%_man1dir/
> cp -r man/* %buildroot/%_man1dir/
Обычно с целью опять же сохранения времён модификации
использую cp -a (или -pr).
> %files
> %doc README README.RUS BNF
> %_man1dir/*
> %_javadir/*
> %_bindir/*
А в остальном весьма симпатичный
> %changelog
> * Fri May 30 2008 Rinat Bikov <bikr/mail.ru> 1.0-alt1
> - initial build
:)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
next prev parent reply other threads:[~2008-05-30 20:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 15:22 ` Michael Shigorin
2008-05-30 19:39 ` Michael Shigorin
2008-05-30 20:14 ` Eugene Ostapets
2008-05-31 8:31 ` Michael Shigorin
2008-05-30 20:48 ` Michael Shigorin [this message]
2008-05-30 21:23 ` Michael Shigorin
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=20080530204857.GZ5318@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=community@lists.altlinux.org \
--cc=shigorin@gmail.com \
/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