Why does rpmbuild ignore BuildRoot in spec file?
Issue
- I used rpmdev-newspec to generate a sample .spec file to start my own .spec
BuildRoot in .spec file generated by rpmdev-newspec:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Actual BuildRoot used by RPM:
$HOME/rpmbuild/BUILDROOT/
Environment
- Red Hat Enterprise Linux 6
- rpmdevtools-7.5-1.el6.noarch
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
