Mailinglist Archive: opensuse-buildservice (219 mails)

< Previous Next >
Re: [opensuse-buildservice] Is there an enviroment variable that point to Source root tree ??
  • From: Dirk Stoecker <opensuse@xxxxxxxxxxxx>
  • Date: Fri, 1 Feb 2008 15:11:24 +0100 (CET)
  • Message-id: <alpine.LNX.1.00.0802011509560.18096@xxxxxxxxxxxxxxxxx>
On Fri, 1 Feb 2008, G. Massera wrote:

Dirk Stoecker ha scritto:

on opensuse the source tree is
on mandriva
on Fedora
... :-S
is there an enviroment variable like $BUILD_ROOT ... (i.e. $SOURCE_ROOT)
that point to source tree ??

There is, but usually you want
%{SOURCE0}, %{SOURCE1}, access the source files directly.

How can I know which file is SOURCE0 and SOURCE1 ??? How they are
expanded ??

You specify it at the top of the spec file already:

Source: file is %{SOURCE)
Source1: file is %(SOURCE1}
Source1000: file is %{SOURCE1000}

Pretty easy.

-- (PGP key available)
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups