Use __make and make_install macros
This commit is contained in:
parent
72112e3c24
commit
fc299d3d1d
|
@ -10,7 +10,7 @@
|
|||
Summary: A collection of SNMP protocol tools and libraries
|
||||
Name: net-snmp
|
||||
Version: 5.8
|
||||
Release: 16%{?dist}
|
||||
Release: 17%{?dist}
|
||||
Epoch: 1
|
||||
|
||||
License: BSD
|
||||
|
@ -277,7 +277,7 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
|
||||
# the package is not %%_smp_mflags safe
|
||||
make
|
||||
%{__make}
|
||||
|
||||
# remove rpath from compiled perl libs
|
||||
find perl/blib -type f -name "*.so" -print -exec chrpath --delete {} \;
|
||||
|
@ -289,7 +289,7 @@ popd
|
|||
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
%{make_install}
|
||||
|
||||
# Determine which arch net-snmp-config.h is going to try to #include.
|
||||
basearch=%{_arch}
|
||||
|
@ -487,6 +487,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
|
|||
%{_libdir}/libnetsnmptrapd*.so.%{soname}*
|
||||
|
||||
%changelog
|
||||
* Wed Feb 19 2020 Tom Stellard <tstellar@redhat.com> - 1:5.8-17
|
||||
- Use __make and make_install macros
|
||||
|
||||
* Mon Feb 17 2020 Josef Ridky <jridky@redhat.com> - 1:5.8-16
|
||||
- set net-snmp-devel as requirement for net-snmp-perl
|
||||
|
||||
|
|
Loading…
Reference in New Issue