Use %make_build and %make_install macros.

Signed-off-by: Filipe Brandenburger <filbranden@gmail.com>
This commit is contained in:
Filipe Brandenburger 2020-09-17 18:18:27 -07:00
parent d5b6ba4459
commit 75238a36b6
1 changed files with 2 additions and 4 deletions

View File

@ -48,13 +48,11 @@ Provides development headers for numa library calls
# https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath
sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make clean
make CFLAGS="$RPM_OPT_FLAGS -I."
%make_build
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%make_install
%ldconfig_scriptlets
%ldconfig_scriptlets libs