on 11.3 and factory rpm will override individially specified permissions for directories if %defattr is present with 4 parameters (the last one denoting the default direcory permissions).
# cat /usr/src/packages/SPECS/mini.spec Name: mini License: GPL Version: 1 Release: 0 Summary: foo %description foo %prep %build %install mkdir -m 777 $RPM_BUILD_ROOT/x %files %defattr(0644,root,root,0755) %dir %attr(0777,root,root) /x # rpm -qplv /usr/src/packages/RPMS/x86_64/mini-1-0.x86_64.rpm drwxr-xr-x 2 root root 0 Aug 6 12:22 /x
on 11.3 and factory rpm will override individially specified permissions
for directories if %defattr is present with 4 parameters (the last one denoting
the default direcory permissions).
# cat /usr/src/ packages/ SPECS/mini. spec 0644,root, root,0755) root,root) /x packages/ RPMS/x86_ 64/mini- 1-0.x86_ 64.rpm
Name: mini
License: GPL
Version: 1
Release: 0
Summary: foo
%description
foo
%prep
%build
%install
mkdir -m 777 $RPM_BUILD_ROOT/x
%files
%defattr(
%dir %attr(0777,
# rpm -qplv /usr/src/
drwxr-xr-x 2 root root 0 Aug 6 12:22 /x