Description of problem: If i use %defattr(755,root,root-) and later %attr(644,-,-) foofile, the owner and group of foofile are not set to root. Version-Release number of selected component (if applicable): rpm-4.7.0-2.fc11 rpm-4.6.1-1.fc10 How reproducible: always Steps to Reproduce: 1. wget http://till.fedorapeople.org/tmp/attrtest.spec 2. rpmbuild -bb attrtest.spec 3. rpm -qp --qf "[%-8{fileusername} %-8{filegroupname} %{filenames}\n]" ~/rpmbuild/RPMS/noarch/attrtest-0-1.fc11.noarch.rpm | grep $USER Actual results: till till /attr Expected results: grep should not match / all contents should belong to root:root
I expected the beheaviour because of this documentation: http://www.rpm.org/max-rpm-snapshot/s1-rpm-specref-files-list-directives.html | Attributes that do not need to be set by %attr may be replaced with a dash [...] | The %defattr sets default %attr for RPM.
I would suggest there is a comma missing before the last dash in the %defattr
(In reply to comment #2) > I would suggest there is a comma missing before the last dash in the %defattr Thanks, but the spec does not have the typo.
Fixed upstream.