[Rpm-maint] Using environment variables in spec files?

Ville Skyttä ville.skytta at iki.fi
Wed Dec 19 07:53:28 UTC 2007

On Wednesday 19 December 2007, Jim Galarowicz wrote:

> On some systems this works and on others we get blanks ( for
> %{depend_prefix} ) where we expected to get the path contained in the
> OPENSS_PREFIX environment variable. Is this a valid approach? Does anyone
> have a better scheme for this?

Pass depend_prefix on the command line to rpmbuild:

    rpmbuild --define "depend_prefix $OPENSS_PREFIX" -ba dyninst.spec

More information about the Rpm-maint mailing list