rpm spec file %define

Joseph L. Casale jcasale at activenetwerx.com
Mon Jan 11 13:52:58 UTC 2016


>> For the academic sake only, does a facility exist to defer evaluation
>> for this use case?
>
>It would get kinda ugly, but you could re-expand the macro body:
>
>%global foo-bar_dir %{expand:%(ls -d %{_builddir}/%{name}-%{version}/foo-bar-*-baz |grep -o '[^/]*$')}

Thanks Michael,
jlc


More information about the users mailing list