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

Description

Checks all spec data for useless binaries macroses.

Problematic code

%install
%{__rm} -rf %{buildroot}

Correct code

%install
rm -rf %{buildroot}

Rationale

There are some predefined macroses with paths to binaries (like make, rm, cp). Macro forms of system executables should not be used except when there is a need to allow the location of those executables to be configurable. For example, rm should be used in preference to %{__rm}, but %{__python3} is acceptable.

Clone this wiki locally