Use %make_build and %make_install macros.
Signed-off-by: Filipe Brandenburger <filbranden@gmail.com>
This commit is contained in:
parent
d5b6ba4459
commit
75238a36b6
@ -48,13 +48,11 @@ Provides development headers for numa library calls
|
|||||||
# https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath
|
# https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath
|
||||||
sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
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
|
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
make clean
|
%make_build
|
||||||
make CFLAGS="$RPM_OPT_FLAGS -I."
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
%make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets libs
|
||||||
|
Loading…
Reference in New Issue
Block a user