]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Use %make_install
authorCole Robinson <crobinso@redhat.com>
Tue, 31 Jul 2018 15:31:34 +0000 (11:31 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 8 Aug 2018 13:04:24 +0000 (09:04 -0400)
It's on RHEL7, saves a bit of typing, and lets us drop the comment

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
libvirt.spec.in

index 19ae55cdaf0fbf80de80d23862e553ba67a36999..f0c55554c3595a9a8eb144cf1fda0fca68050103 100644 (file)
@@ -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