Some packages install software which needs to run with root privileges, such as the sudo package. Others, such as vim, do not inherently need to run with root privileges.
Is there a generic way to tell, by looking at either a specfile, config file, or other file in the sources of an SRPM, whether or not a package will install software that will be run with root privileges or is setuid, without actually installing the binary rpm package on the system first?
rpm -qp --dump foo.rpm
. You can find setuid this way, but "requires root" is nothing something that is flagged in any way