help with rpmbuild

X Y writeacomment at yahoo.com
Thu May 28 16:13:40 UTC 2009





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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090528/9cde2c26/attachment.htm>


More information about the Rpm-list mailing list