Use standard %make_build and %make_install macros in spec file.

This commit is contained in:
Jeff Makey 2020-07-26 23:15:53 -07:00
parent 5c4fc05d8d
commit 17e7abe647

View File

@ -70,14 +70,14 @@ export CFLAGS="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \
--with-mangrp=root \
--with-manmode=0644
make %{?_smp_mflags}
%make_build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8
%makeinstall INSTALL="install -p" \
%make_install \
SBINDIR=%{buildroot}%{_sbindir} \
BINDIR=%{buildroot}%{_sbindir} \
MANDIR=%{buildroot}%{_mandir}/man8 \