From: "Алексей Волков" <alv@pisem.net>
To: community@altlinux.ru
Subject: [Comm] Сборка RPM пользователем
Date: Sat, 25 Jan 2003 04:22:25 +0300
Message-ID: <20030125012225.GA5173@alex> (raw)
Не удается собрать RPM из-под пользователя
~/.rpmmacros:
%_topdir /home/user/.rpm
%_tmppath %{_topdir}/TMP
%buildroot %_tmppath/%name-%version-build
some.spec:
<skipped/>
%build
perl Makefile.PL
make
make test
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall PREFIX="$RPM_BUILD_ROOT"%{_prefix} INSTALLDIRS=site
%files
%defattr (-,root,root)
%doc README
/usr/lib/perl5/site_perl/5.6.1/Some/Module.pm
Все стадии (до install) проходят успешно, make install
выполняется без проблем,
Обрабатываются файлы: perl-Some-Module-0.1-1
ошибка: Файл не найден: /usr/lib/perl5/site_perl/5.6.1/Some/Module.pm
Если изменить секцию %file таким образом:
%file
%builddir/usr/lib/perl5/site_perl/5.6.1/Some/Module.pm
рпм создаётся с файлами /home/user/.rpm/TMP/....
Куда копать? Заранее благодарен
PS:
atmsk.ru просветления не дал
система redhat-7.3
есть вариант:
%install
%makeinstall PREFIX="$RPM_BUILD_ROOT"%{_prefix} INSTALLDIRS=site
find %buildroot| sed 's/^%buildroot//g' > filelist
%files -f filelist
но он мне не кажется "правильным", да и изящным его не назовешь.
next reply other threads:[~2003-01-25 1:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-25 1:22 Алексей Волков [this message]
2003-01-25 9:51 ` Vitaly Lipatov
2003-01-26 11:53 ` alv
2003-01-26 18:39 ` Vitaly Lipatov
2003-01-28 1:52 ` [Comm] " Michael Shigorin
2003-01-29 0:11 ` jellyfish
2003-01-29 9:16 ` Alexander Bokovoy
2003-01-30 0:07 ` Michael Shigorin
2003-01-30 8:06 ` Alexander Bokovoy
2003-01-30 8:19 ` Michael Shigorin
2003-01-30 8:32 ` Alexander Bokovoy
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=20030125012225.GA5173@alex \
--to=alv@pisem.net \
--cc=community@altlinux.ru \
/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