Skip to content
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ edited this page Jun 23, 2024 · 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