Re: [libvirt] [PATCH] build: move file deleting action from %files list to %install

2013-01-10 Thread Eric Blake
On 01/10/2013 06:47 AM, Laine Stump wrote: >>> >>> It is triggerd by the %files list of libvirt daemon: >>> >>> %if 0%{?fedora} >= 14 || 0%{?rhel} >= 6 >>> %config(noreplace) %{_prefix}/lib/sysctl.d/libvirtd.conf >>> %else >>> rm -f $RPM_BUILD_ROOT%{_prefix}/lib/sysctl.d/libvirtd.c

Re: [libvirt] [PATCH] build: move file deleting action from %files list to %install

2013-01-10 Thread Laine Stump
On 01/09/2013 07:13 PM, Eric Blake wrote: > On 01/09/2013 05:18 AM, Yufang Zhang wrote: >> When building libvirt rpms on rhel5, I got the following error: >> >> File must begin with "/": rm >> File must begin with "/": -f >> File must begin with "/": $RPM_BUILD_ROOT/etc/sysctl.d/libvirt

Re: [libvirt] [PATCH] build: move file deleting action from %files list to %install

2013-01-09 Thread Eric Blake
On 01/09/2013 05:13 PM, Eric Blake wrote: > On 01/09/2013 05:18 AM, Yufang Zhang wrote: >> When building libvirt rpms on rhel5, I got the following error: >> >> File must begin with "/": rm >> File must begin with "/": -f >> File must begin with "/": $RPM_BUILD_ROOT/etc/sysctl.d/libvirt

Re: [libvirt] [PATCH] build: move file deleting action from %files list to %install

2013-01-09 Thread Eric Blake
On 01/09/2013 05:18 AM, Yufang Zhang wrote: > When building libvirt rpms on rhel5, I got the following error: > > File must begin with "/": rm > File must begin with "/": -f > File must begin with "/": $RPM_BUILD_ROOT/etc/sysctl.d/libvirtd > Installed (but unpackaged) file(s) found

[libvirt] [PATCH] build: move file deleting action from %files list to %install

2013-01-09 Thread Yufang Zhang
When building libvirt rpms on rhel5, I got the following error: File must begin with "/": rm File must begin with "/": -f File must begin with "/": $RPM_BUILD_ROOT/etc/sysctl.d/libvirtd Installed (but unpackaged) file(s) found: /etc/sysctl.d/libvirtd It is triggerd by the %file