I want to build a group of rpm packages, and some of them need to have an additional compilation option (-my_own_option).
I tried this in ~/.rpmmacros, but the %{name}
is not getting expanded while building the rpm
<code>%if "%{name}" == "zip"
%__global_compiler_flags -my_own_option
%endif
</code>
<code>%if "%{name}" == "zip"
%__global_compiler_flags -my_own_option
%endif
</code>
%if "%{name}" == "zip"
%__global_compiler_flags -my_own_option
%endif
New contributor
Rufeer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.