Panu Matilainen wrote:
There are no changes to rpm in this area that I recall. This could be done by just tweaking the build templates in redhat-rpm-config though, something like this in /usr/lib/rpm/redhat/macros:
%__spec_install_pre %{___build_pre}\ [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\ %{nil}
This is very good idea. With remove BuildRoot from spec it is brilliant. AltLinux guidelines prohibit use BuildRoot tag in spec.
Pavel.