From: Cole Robinson Date: Tue, 31 Jul 2018 15:31:34 +0000 (-0400) Subject: spec: Use %make_install X-Git-Tag: v4.7.0-rc1~282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff2bec49ecd404ea3c5b769a7a2105d1b3a9ccf8;p=thirdparty%2Flibvirt.git spec: Use %make_install It's on RHEL7, saves a bit of typing, and lets us drop the comment Reviewed-by: Martin Kletzander Signed-off-by: Cole Robinson --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 19ae55cdaf..f0c55554c3 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1257,10 +1257,7 @@ rm -fr %{buildroot} export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/%{name}.spec) -# Avoid using makeinstall macro as it changes prefixes rather than setting -# DESTDIR. Newer make_install macro would be better but it's not available -# on RHEL 5, thus we need to expand it here. -make %{?_smp_mflags} install DESTDIR=%{?buildroot} SYSTEMD_UNIT_DIR=%{_unitdir} V=1 +%make_install %{?_smp_mflags} SYSTEMD_UNIT_DIR=%{_unitdir} V=1 make %{?_smp_mflags} -C examples distclean V=1