[Rpm-maint] rpmrc format

Panu Matilainen pmatilai at redhat.com
Tue Jan 29 08:59:17 UTC 2008

On Mon, 28 Jan 2008, Lucas Brasilino wrote:

> Hi!
> I'm trying to setup an environment to build some RPMs as myselft
> but couldn't find the right ~/.rpmrc file format.
> I've tried many options:
> %{topdir}: /home/lucas/rpm
> %{tmppath}: /home/lucas/rpm/tmp
> %{_topdir}: /home/lucas/rpm
> %{_tmppath}: /home/lucas/rpm/tmp
> topdir: /home/lucas/rpm
> tmppath: /home/lucas/rpm/tmp
> _topdir: /home/lucas/rpm
> _tmppath: /home/lucas/rpm/tmp
> None works. Which can I set up ~/.rpmrc file?

You don't :) These things have moved to ~/.rpmmacros a very long time ago, 
rpmrc was used somewhere in the RPM 3.x days.

Just put the following in ~/.rpmmacros and forget you ever heard about 

%_topdir /home/lucas/rpm
%_tmppath /home/lucas/rpm/tmp

..or less "hardcoded":

%_topdir %(echo $HOME)/rpm
%_tmppath %{_topdir}/tmp

 	- Panu -

> Please CC direct to me.

More information about the Rpm-maint mailing list