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

Jim Galarowicz jeg at krellinst.org
Sat Dec 22 14:34:53 UTC 2007


Ville,

Thank you!  That works!  I appreciate the help!

Jim G

Ville Skyttä wrote:
> 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
> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
> https://lists.rpm.org/mailman/listinfo/rpm-maint



More information about the Rpm-maint mailing list