Ensure to prefix %{buildroot} when overriding systemd install location

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}
This commit is contained in:
Daniel P. Berrange 2011-12-08 13:29:22 +00:00
parent 608786fc52
commit 011a3350be

View 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)