[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Deciphering Spec files
- From: Ian Mortimer <ian physics uq edu au>
- To: redhat-list redhat com
- Subject: Re: Deciphering Spec files
- Date: Mon Feb 2 17:46:06 2004
> I figured out that the stuff with a % comes from '/usr/lib/rpm/macros'
> but I have yet to figure out where the other variables with the $
> (e.g. $RPM_BUILD_ROOT) get set.
%{buildroot} seems to be preferred these days over $RPM_BUILD_ROOT.
The value comes from either the spec file header:
BuildRoot: %{_tmppath}/%{name}-buildroot
or from the command line:
rpmbuild --buildroot DIRECTORY ...
or you could set it in ~/.rpmmacros.
Common practice is to set it in the spec file.
--
Ian
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]