Re: help with rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rpm-list-bounces@xxxxxxxxxxxxx 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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux