ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Spec file / %setup rpm macro


From: Stuart Hughes
Subject: Re: [Ltib] Spec file / %setup rpm macro
Date: Tue, 08 Jun 2010 17:43:23 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Franz,

No, %prep should not remove rpm/BUILD/_pkg-version_ area.

If this were the case, and you had been carefully working on
modifications to the package, you would lose all your work.  This is a
deliberate policy imposed by LTIB.

Think of it as warning you that you are trying to blow away your
rpm/BUILD/_pkg-version_ area.

You only need to prep once.  After that you can just run the other
stages, or ./ltib -p pkg(.spec) for all the stages.

I don't know of an easy way to print the value of "%setup ...", you need
to look at the documentation (maximum rpm is online).

Regards, Stuart

Franz TRIERWEILER wrote:
> Hi,
> 
> Each time I -prep my package, ltib says it cowardly refuses to clobber
> existing directory. Is-not the %setuo macro supposed to rm -rf the
> package directory ? Thus, I have to rm -rf myself.
> 
> According to rpm.org <http://rpm.org> the "classical" %setup macro
> should rm-rf the directory:
> http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-macros.html
> 
> I invoke it with: %setup -n %{name}
> 
> How can I know what's behind this macro?
> 
> Regards,
> Franz
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]