RPM package bundle problem.
devzero2000
pinto.elia at gmail.com
Thu Jul 23 09:25:56 UTC 2009
On Thu, Jul 23, 2009 at 4:00 AM, NgaNTH <nganth at fsoft.com.vn> wrote:
> Hello.
>
> I am building a RPM package bundle base on a spec.
>
> When I run separately abc-1.0-1.i386.rpm, my application file “abc” will
> appear in /usr/local/bin.
>
> But when I run this bundle rpm, I see no file in /usr/local/bin folder
> although rpm shows a successful message.
>
> What’s wrong with my spec? Please help me to try out this problem.
>
> Thanks in advance.
>
>
>
> MY SPEC HERE:
>
>
>
> %define bundledir /tmp
>
>
>
> Summary: abc tool
>
> Name: abc
>
> Version: 1.0
>
> Release: 1
>
> License: GPLv2
>
> Group: Development/Tools
>
> *Source0: log4c-1.2.1-1.i386.rpm*
>
> *Source1: abc-1.0-1.i386.rpm*
>
> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
>
> BuildArch: i386
>
>
>
> %description
>
> abc tool
>
>
>
> %prep
>
>
>
> %build
>
>
>
> %install
>
> rm -rf $RPM_BUILD_ROOT
>
> mkdir -p $RPM_BUILD_ROOT%{bundledir}
>
> install -m644 %{S:0} $RPM_BUILD_ROOT%{bundledir}
>
> install -m644 %{S:1} $RPM_BUILD_ROOT%{bundledir}
>
>
>
> exit 0
>
>
>
> %clean
>
>
>
> %post
>
>
>
> %if %{?_rpmlock_path:1}0
>
> [ -f "%{_rpmlock_path}" ] && %{__rm} -f %{_rpmlock_path}
>
> %endif
>
>
>
> %{__rm} -f /var/lock/rpm/transaction
>
>
>
> %{__rm} -f /var/run/yum.pid
>
> *rpm -Uvh
> %{_tmppath}/%{name}-%{version}-%{release}-root%{bundledir}/log4c-1.2.1-1.i386.rpm
> *
>
> *rpm -Uvh
> %{_tmppath}/%{name}-%{version}-%{release}-root%{bundledir}/abc-1.0-1.i386.rpm
> *
>
> A Typo perhaps? You are installing into bundledir and not in the rpm
buildroot :=)
*rpm -Uvh %{bundledir}/log4c-1.2.1-1.i386.rpm *
*rpm -Uvh %{bundledir}/abc-1.0-1.i386.rpm*
hth
PS
Let me guess: have you perhaps ALSO looked to my yum-pull-update ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090723/9d660b48/attachment.htm>
More information about the Rpm-list
mailing list