I'm installing an RPM package with a package.spec that tries to use the %defattr to set permissions and ownership for all files. This is from package.spec:
The rpm installation is done with scsudo like this:
scsudo root -i --prefix /home/userId test-5-1.0.noarch.rpm
The files get created correctly, but the owner/group is root/root.
Does anyone understand what might be wrong here?