[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: %{buildsubdir}
- From: Mathias Hjärtström <mathias hjartstrom telia com>
- To: <rpm-list redhat com>
- Subject: Re: %{buildsubdir}
- Date: Sun, 7 Jul 2002 11:29:53 +0200
Well, of course I realize that I can cd into the directories manually, that's what I've been doing! But if there is an automatic mechanism for doing this, I'd rather use that. The %setup macro initializes this mechanism, but I want to do it manually if possible.
The %setup macro sets a macro called %{buildsubdir}, or at least that is what it's called if I try to "echo %{buildsubdir}". There is no value defined for the %{_buildsubdir} macro you talk about when I use %setup...
%define doesn't seem to have any effect for any of these macros, at least %build doesn't cd automatically when I define it like that...
/M
----- Original Message -----
From: "Jeff Johnson" <jbj@redhat.com>
To: <rpm-list@redhat.com>
Sent: Saturday, July 06, 2002 6:37 PM
Subject: Re: %{buildsubdir}
> On Sat, Jul 06, 2002 at 02:28:29PM +0200, Mathias Hjärtström wrote:
> > Hello! I'd like to know if there is any way to define the %{buildsubdir} macro in the same way the %setup macro does, so that RPM automatically enters this directory below %{_builddir} every time %build, %install and %doc is executed? I have some special things I need to do in %prep that is not handled by %setup, but I essentially need to do the same things... I'd like to be able to define the macro in the specfile just by using %define, but that doesn't seem to work. Thank's for your input!
> >
>
> First of all, the macro is %_buildsubdir, not %buildsubdir
> and the macro was originally created to be overriden from
> a spec file, and "worked" at some point in time. <shrug>
>
> If you need to do what %setup does, then just do whatever, there's
> really no benefit to be had by trying to use %setup (or %patch) if
> the conventions are not what you wish. For example, if you wanted
> to build in a different sub-directory than what's in the tarball,
> then unpack your sources explicitly
> %prep
> tar xzvf %{SOURCE0}
> add a "cd wherever" to the top of %build/%install,
> %build
> cd wherever
> and change the paths in %doc to include "wherever".
> %doc wherever/foo
>
> 'Tain't hard.
>
> 73 de Jeff
>
> --
> Jeff Johnson ARS N3NPQ
> jbj@redhat.com (jbj@jbj.org)
> Chapel Hill, NC
>
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]