Environment variables within a spec file and related question
Paul Howarth
paul at city-fan.org
Mon Sep 12 15:26:56 UTC 2005
Paul F. Johnson wrote:
> z88dk is a Z80 cross compiler which is able to target a whole pile of
> Z80 based machines (such as the ZX81, Spectrum, Sam Coupe etc). Now, to
> compile it up, I need to set a couple of environment variables which
> aren't used after then.
>
> How do I set them up and is there any surefire way to test for the shell
> in use (export is fine for bash, but I need setenv for tcsh)?
RPMs are built using sh/bash, so use:
export VAR=VALUE
at the start of each spec section that needs the variables.
> Related to this. Is there a list anywhere of the groups available for
> installing into (such as development/library etc)?
/usr/share/doc/rpm-*/GROUPS
Paul.
More information about the fedora-extras-list
mailing list