]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Ensure to prefix %{buildroot} when overriding systemd install location
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 8 Dec 2011 13:29:22 +0000 (13:29 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 8 Dec 2011 15:48:49 +0000 (15:48 +0000)
The %makeinstall macro does not set DESTDIR, instead of explicitly
prefixes %{buildroot} onto all paths. Thus we need to do the same
when setting the systemd unit dir

* libvirt.spec.in: Prefix %{buildroot} onto %{unitdir}

libvirt.spec.in

index 4fe1c6ab190d3eb451eec107332c681d47ff2f57..80c5c1f37a3e65d4e658e0bbe0385d88a46f8fad 100644 (file)
@@ -776,7 +776,7 @@ gzip -9 ChangeLog
 %install
 rm -fr %{buildroot}
 
-%makeinstall SYSTEMD_UNIT_DIR=%{_unitdir}
+%makeinstall SYSTEMD_UNIT_DIR=%{buildroot}%{_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)