]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Avoid using makeinstall relic
authorJiri Denemark <jdenemar@redhat.com>
Thu, 31 Jan 2013 14:31:37 +0000 (15:31 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 6 May 2013 20:55:17 +0000 (14:55 -0600)
The macro was made to help installing broken packages that did not use
DESTDIR correctly by overriding individual path variables (prefix,
sysconfdir, ...). Newer rpm provides fixed make_install macro that calls
make install with just the correct DESTDIR, however it is not available
everywhere (e.g., RHEL 5 does not have it). On the other hand the
make_install macro is simple and straightforward enough for us to use
its expansion directly.
(cherry picked from commit d45066a55f866a793f346bde1ac6d0f552aa9e52)

libvirt.spec.in

index 90e266bae94f68b33c50f555053697d80e3d435c..2b98c2463ee8d7d81f215edd8daf3722706a9995 100644 (file)
@@ -1315,7 +1315,11 @@ gzip -9 ChangeLog
 %install
 rm -fr %{buildroot}
 
-%makeinstall SYSTEMD_UNIT_DIR=%{buildroot}%{_unitdir}
+# 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 install DESTDIR=%{?buildroot} SYSTEMD_UNIT_DIR=%{_unitdir}
+
 for i in domain-events/events-c dominfo domsuspend hellolibvirt openauth python xml/nwfilter systemtap
 do
   (cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)