Re: Deciphering Spec files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux