Use make macros
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
This commit is contained in:
parent
5f13f6da7c
commit
04e7ff631d
@ -3,7 +3,7 @@
|
||||
Name: spausedd
|
||||
Summary: Utility to detect and log scheduler pause
|
||||
Version: 20200323
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: ISC
|
||||
URL: https://github.com/jfriesse/spausedd
|
||||
Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||
@ -31,16 +31,15 @@ Utility to detect and log scheduler pause
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
make \
|
||||
%make_build \
|
||||
%if %{defined use_vmguestlib}
|
||||
WITH_VMGUESTLIB=1 \
|
||||
%else
|
||||
WITH_VMGUESTLIB=0 \
|
||||
%endif
|
||||
%{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" install
|
||||
%make_install PREFIX="%{_prefix}"
|
||||
|
||||
mkdir -p %{buildroot}/%{_unitdir}
|
||||
install -m 644 -p init/%{name}.service %{buildroot}/%{_unitdir}
|
||||
@ -64,6 +63,10 @@ install -m 644 -p init/%{name}.service %{buildroot}/%{_unitdir}
|
||||
%systemd_postun spausedd.service
|
||||
|
||||
%changelog
|
||||
* Wed Jul 22 2020 Jan Friesse <jfriesse@redhat.com> - 20200323-2
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
||||
* Mon Mar 23 2020 Jan Friesse <jfriesse@redhat.com> - 20200323-1
|
||||
- Enhance man page
|
||||
- Add CI tests
|
||||
|
Loading…
Reference in New Issue
Block a user