Re: Can I use nested macros in a .spec file ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 04.03.2014 20:22, Sébastien Boisvert wrote:
Hi,


My package (Ray) relies on mpich2. The new name for mpich2 is mpich, but the name is still
mpich2 in el6.

So I defined a variable named mpichName.

I was wondering why nested macros like this
one are not working:

%{_%{mpichName}_load}
However, this works, but it is longer: %if %mpichName == "mpich"
     %{_mpich_load}
%else
     %{_mpich2_load}
%endif


Is there a syntax to use "%{_%{mpichName}_load}" (or is there a better way to do it) ? 		 	   		
Yes, this should work:

%{expand:%%{_%{mpichName}_load}}


Sandro
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux