Skip to content
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ edited this page Jun 23, 2024 · 4 revisions

Description

Checks all spec data for empty sections.

Problematic code

%clean
rm -rf %{buildroot}

%check

%post
%{__chkconfig} --add %{name} &>/dev/null || :

Correct code

%clean
rm -rf %{buildroot}

%post
%{__chkconfig} --add %{name} &>/dev/null || :

Rationale

Empty sections are useless and should be removed from the spec file.

Clone this wiki locally