help with rpmbuild
Greg_Swift at aotx.uscourts.gov
Greg_Swift at aotx.uscourts.gov
Thu May 28 18:07:08 UTC 2009
rpm-list-bounces at lists.rpm.org wrote on 05/28/2009 11:13:40 AM:
> Hi,
>
> I have used the rpmbuild to build a binary rpm archive. But when
> I tried to
> extract it, it did not install to the directory that I intend it to
> be. Instead it installed
> to the directory but relative the the directory that the rpm was sitting
on.
>
> My spec file looks like
> Summary
> Prefix: /opt/mydir
>
> %files
> %{Product_root_d}/bin/*
> %{Product_root_d}/lib/*
> %{Product_root_d}/script/*
>
>
> And the rpm was generated in /usr/src/Packages/RPMS/i586/my.rpm
> but when my.rpm is extracted, it generates the directory /usr/src/
> Packages/RPMS/i586/opt/mydir instead of
> /opt/mydir
could you put the whole spec file?
You probably just need to adjust your %install and %files sections
-greg
More information about the Rpm-list
mailing list