[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: %files section of SPEC file
- From: Matthew Miller <mattdm mattdm org>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: %files section of SPEC file
- Date: Mon, 23 Jul 2007 13:21:51 -0400
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.
--
Matthew Miller mattdm mattdm org <http://mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]