Thanks for the help, Mathew.
If I understand what you're saying correctly, does this mean I can build
an RPM and specify the files in the %files section relative to their
final destination, without actually having them in the final destination
on the build host, but keeping them in the buildroot?
TIA,
--
Joshua M. Miller - RHCE,VCP
Matthew Miller wrote:
On Mon, Jul 23, 2007 at 10:02:14AM -0700, Joshua M. Miller wrote:
I have the following variables relevant to this discussion:
%define buildroot /usr/src/redhat
Err, don't do that. It doesn't do what you think it does. The buildroot is
the temporary directory where the files to be installed are placed. Then the
rpm archive is built from that layout.
When populating the %files section, how do I specify that a file should
be taken from the build root of:
%{buildroot}/etc/
...and placed in the final destination of:
/etc
Putting them into the buildroot is what the %install section is for. In the
%files section, list them relative to the final destination.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list