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.