From 35616d6e7e035c463571a7f5413dab175dec4411 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 24 Sep 2012 12:37:02 +0800 Subject: [PATCH] Fix an rpmbuild failure $RPM_BUILD_ROOT was embedded in /etc/rc.d/init.d/libvirt-guests --- libvirt.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index a392663767..ba49b1e744 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1356,6 +1356,8 @@ rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version} \ $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-docs-%{version} +sed -i -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/libvirt-guests + %clean rm -fr %{buildroot} -- GitLab