On Mon, Aug 27, 2007 at 02:35:14PM -0400, Jeff Johnson wrote: > The macro primitive %{expand:...} is like eval in shell. That's what I thought... > > When browsing through spec files, I have the impression that it is > > unnecessarily used in a lot of cases. > > Likely. Just some excerpts from RHEL5 spec files (some are even used frequently): %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} %{expand: %%define build_with_freetype %{?_with_freetype:1}%{!?_with_freetype:0}} I think this is an example of proper use (as there is a recursion), right? %{expand: %%define _includedir %{_includedir}/%{name}} -- -- Jos Vos <jos@xxxxxx> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list