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

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





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