Use make_build macro

The packaging guide[1] says that the make_build macro should be used. This
also makes it possible for a build root to inject arguments to make by
overriding the __make macro.

[1] https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
This commit is contained in:
Tom Stellard 2020-01-17 03:55:50 +00:00
parent 6ec338c54b
commit 0625640dff

View File

@ -1,6 +1,6 @@
Name: lm_sensors
Version: 3.6.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Hardware monitoring tools
%define upstream_version %(echo %{version} | sed -e 's/\\./-/g')
@ -95,7 +95,7 @@ sed -i "s|\@WRAPPER_DIR\@|%{_libexecdir}/%{name}|" lm_sensors.service
%build
%set_build_flags
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \
%{make_build} PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \
EXLDFLAGS="$LDFLAGS" PROG_EXTRA=sensord BUILD_STATIC_LIB=0 user
@ -199,6 +199,9 @@ fi
%changelog
* Fri Jan 17 2020 Tom Stellard <tstellar@redhat.com> - 3.6.0-2
- Use make_build macro
* Fri Oct 18 2019 Ondřej Lysoněk <olysonek@redhat.com> - 3.6.0-1
- New version