From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4.2)
Description of problem:
One of the basic rules to building rpms is not to be root when you do
it so you don't hammer your machine if there's a scripting mistake.
device-mapper-1.00.14-3 absolutely requires you to be root because of
the install phase.
However, there is a configure option where you can tell it to do it as
a normal user for packaging purposes. The %files section makes sure
everything gets root permission, so its completely unnecessary to have
to be root to build this package.
To solve the problem, change the build section to this:
%configure --enable-static_link --with-user=`whoami` --with-group=`whoami`
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. su - buildsys ( or any other non privileged account )
2. rpmbuild -bb device-mapper.spec
Actual Results: The package build dies during the %install phase with
permission denied messages.
Expected Results: A message indicating where the rpm was written to.
fixed in 1.00.17-2