RPM Community Forums

Mailing List Message of <rpm-users>

Re: How do I set the _topdir ?

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 01 Jan 2011 - 19:00:30 CET
Message-id: <5ABB33EB-5CFA-4738-A885-D02E22CF2C51@mac.com>

On Jan 1, 2011, at 12:46 PM, Sriram Narayanan wrote:
<snip>

> /usr/local/lib/rpm/%{_target}/rpmpopt

Note the unexpanded macro here. That's "Have it your own way!"
flexibility as compiled.

<snip>

> 
>  0   2237                     open64:entry rpmbuild /home/sriram/.rpmmacros
> 

This SHOULD have read wyat is in ~/.rpmmacros.

You can verify with
	rpm --showrc | grep _topdir

> If I want to set /workspace/rpmwork as the topdir (which would contain
> SPECS, SOURCES, RPMS, etc), what should the contents of .rpmmacros be
> ?
> 
> I've tried the following:
> topdir=/workspace/rpmwork
> _topdir=/workspace/rpmwork
> topdir:/workspace/rpmwork
> _topdir:/workspace/rpmwork
> 

All macros in configuration file loads have to start with '%' in
1st column.

So you need this

%_topdir	/workspace/rpmwork

hth

73 de Jeff
Received on Sat Jan 1 19:00:53 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.