On Wed, 2 Feb 2011 17:19:25 -0300, Sergio wrote:
Hi,
I've read in Packaging Guidelines that:
"Fedora (as of F-10) does not require the presence of the BuildRoot
tag in the spec and if one is defined it will be ignored. The provided
buildroot will automatically be cleaned before commands in %install
are called."
However if I run rpmdev-newspec myprog.spec it creates the tag:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
So what is the right approach about it?
You may delete that BuildRoot line and the "rm -rf $RPM_BUILD_ROOT" at
beginning of %install and the default %clean section. At least since
Fedora 12 they are not needed anymore, for sure. Don't worry about F-10
as it's even older. ;)