how to set/unset env variables in spec file

Jan Chaloupka jchaloup at redhat.com
Tue Sep 8 11:15:40 UTC 2015


Hi Arnaud,

I am assuming all scripts you are referring to are sourced and run in 
%build section. Can you be more specific which commands are you running? 
%build section is interpreted as a bash script so source and unset 
should work. Without the concrete example it is hard to guess what is 
going wrong.

Jan

On 09/08/2015 01:07 PM, arnaud gaboury wrote:
> I am building a rpm package. For make to success and have the correct
> env variables, I need to source a few scripts and unset a few
> variables.
> rpmbuild does not understand the source and unset commands.
>
> How shall I proceed to get the desired variables?
>
> Thank you
>



More information about the devel mailing list