On Sunday 26 May 2002 19.33, Borsenkow Andrej wrote:
> � ���, 26.05.2002, � 21:04, Oden Eriksson �������:
> > Hi,
> >
> > I think it would be nice to have:
> >
> > [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
> >
> > as default in %prep, %install and %clean.
> >
> > Would that be possible somehow? And if so, how to do it?
>
> AFAIK it is currently done automatically as part of %setup and it is not
> done if you use --short-circuit and it must not be done in this case :-)
>
> Which other case do you have in mind?
Well, as in "%prep, %install and %clean.". I can't seem to find this in the
macro files, or is it somewhere else?.
Most spec files looks like this:
%install
rm -rf %{buildroot}
%clean
rm -rf %{buildroot}
My thought was that you wouldn't have to do that because it would be done
from the %prep, %install and %clean macros as "[ "%{buildroot}" != "/" ] &&
rm -rf %{buildroot}" instead.
--
Regards // Oden Eriksson