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

Description

Checks build, install and check scriptlets for using make which can be simplified.

Problematic code

%build
make -j2

%install
rm -rf %{buildroot}

make DESTDIR=%{buildroot} install

Correct code

%build
%{__make} %{?_smp_mflags}

%install
rm -rf %{buildroot}

%{make_install}

Links

Clone this wiki locally