Skip to content
Anton Novojilov edited this page Jan 3, 2020 · 4 revisions

Description

Checks files section for %defattr.

Problematic code

%files
%{_bindir}/%{name}

Correct code

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}

Rationale

%defattr directive sets the default attributes for all files in the package and should be defined for every package.

Clone this wiki locally