[opensuse-buildservice] Is there an enviroment variable that point to Source root tree ??
Hello, on opensuse the source tree is /usr/src/packages/SOURCE on mandriva /usr/src/rpm/SOURCE on Fedora /usr/src/redhat/SOURCE ... :-S is there an enviroment variable like $BUILD_ROOT ... (i.e. $SOURCE_ROOT) that point to source tree ?? Thanks, Gianluca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hello,
Hello, on opensuse the source tree is /usr/src/packages/SOURCE on mandriva /usr/src/rpm/SOURCE on Fedora /usr/src/redhat/SOURCE ... :-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}, ...to access the source files directly. Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Dirk Stoecker ha scritto:
Hello,
Hello, on opensuse the source tree is /usr/src/packages/SOURCE on mandriva /usr/src/rpm/SOURCE on Fedora /usr/src/redhat/SOURCE ... :-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}, ...to access the source files directly.
Ciao How can I know which file is SOURCE0 and SOURCE1 ??? How they are expanded ??
Thank you, Gianluca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, 1 Feb 2008, G. Massera wrote:
Dirk Stoecker ha scritto:
Hello,
Hello, on opensuse the source tree is /usr/src/packages/SOURCE on mandriva /usr/src/rpm/SOURCE on Fedora /usr/src/redhat/SOURCE ... :-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}, ...to access the source files directly.
Ciao 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. Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, 1 Feb 2008 15:11:24 +0100 (CET), Dirk Stoecker wrote:
Source: file is %{SOURCE) Source1: file is %(SOURCE1}
And then there are them shortcuts for us lazybones :) : %{SOURCE} -> %{S:0} %{SOURCE1} -> %{S:1} %{SOURCE1000} -> %{S:1000} Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Dirk Stoecker wrote:
Hello,
Hello, on opensuse the source tree is /usr/src/packages/SOURCE on mandriva /usr/src/rpm/SOURCE on Fedora /usr/src/redhat/SOURCE ... :-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}, ...to access the source files directly.
or %{S:n} which expands to %{SOURCEn} or for %{P:n} -> %{PATCHn} which can also be seen from time to time. Best regrds Petr --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Freitag 01 Februar 2008 14:34:40 schrieb G. Massera:
Hello, on opensuse the source tree is /usr/src/packages/SOURCE on mandriva /usr/src/rpm/SOURCE on Fedora /usr/src/redhat/SOURCE ... :-S is there an enviroment variable like $BUILD_ROOT ... (i.e. $SOURCE_ROOT) that point to source tree ??
Sure, $RPM_SOURCE_DIR Gruesse / Regards, Marius Tomaschewski <mt@suse.de> -- Server Technologies Team, SUSE LINUX Products GmbH, Nuernberg; GF: Markus Rex; HRB 16746 (AG Nuernberg) PGP public key on: http://www.suse.de/~mt/mt.pgp DF17 271A AD15 006A 5BB9 6C96 CA2F F3F7 373A 1CC0 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (5)
-
Dirk Stoecker
-
G. Massera
-
Marius Tomaschewski
-
Petr Cerny
-
Philipp Thomas