rpmbuild

Stephen Weeks MLton@sourcelight.com
Fri, 10 Aug 2001 01:33:41 -0700


> You can use
> 	rpm --showrc
> but the output, in addition to being butt ugly, doesn't expand macros.
> Thus, with my normal home, _topdir is listed as the full value, but with
> no ~/.rpmmacros file, it is listed as
> 	%{_usrsrc}/redhat
> and a fiew lines later _usrsrc is listed as
> 	%{_usr}/src
> and the line before that lists _usr as
> 	/usr
> so you could put this together to see that it is /usr/src/redhat
> (Barf)

This is crazy that rpm can't tell me this.  Blech.

> I claim that if you want to include make-rpms as part of the source, then you
> should probably include (maybe) the directory you build them in, along with a
> .rpmmacros file, and have the makefile change the home and run it.

This seems slightly messier than my current hack, which makes the rpms in a temp
dir, having set HOME and created a .rpmmacros on the fly.

But I still prefer making them wherever the user is used to making rpms.  How
about just catching the two possibilities we will see with --showrc?  Either a
full path or %{_usrsrc}/X