Use make macros

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
This commit is contained in:
Jan Friesse 2020-07-22 12:23:10 +02:00
parent 5f13f6da7c
commit 04e7ff631d

View File

@ -3,7 +3,7 @@
Name: spausedd Name: spausedd
Summary: Utility to detect and log scheduler pause Summary: Utility to detect and log scheduler pause
Version: 20200323 Version: 20200323
Release: 1%{?dist} Release: 2%{?dist}
License: ISC License: ISC
URL: https://github.com/jfriesse/spausedd URL: https://github.com/jfriesse/spausedd
Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz 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 %build
%set_build_flags %set_build_flags
make \ %make_build \
%if %{defined use_vmguestlib} %if %{defined use_vmguestlib}
WITH_VMGUESTLIB=1 \ WITH_VMGUESTLIB=1 \
%else %else
WITH_VMGUESTLIB=0 \ WITH_VMGUESTLIB=0 \
%endif %endif
%{?_smp_mflags}
%install %install
make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" install %make_install PREFIX="%{_prefix}"
mkdir -p %{buildroot}/%{_unitdir} mkdir -p %{buildroot}/%{_unitdir}
install -m 644 -p init/%{name}.service %{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 %systemd_postun spausedd.service
%changelog %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 * Mon Mar 23 2020 Jan Friesse <jfriesse@redhat.com> - 20200323-1
- Enhance man page - Enhance man page
- Add CI tests - Add CI tests