Support Center > Knowledgebase > DirectAdmin > System Level > rpmbuild is building in /root/rpmbuild instead of /usr/src/redhat
rpmbuild is building in /root/rpmbuild instead of /usr/src/redhat
We've noticed that on CentOS 6, the build path had changed for rpms to
/root/rpmbuild
instead of the previous value of
/usr/src/redhat
To change it back to the value we were used to, we edited:
/usr/lib/rpm/macros
and changed:
%_topdir %{getenv:HOME}/rpmbuild
to be:
%_topdir %{_usrsrc}/redhat
Also Read