Example RPM macro:
%define hello() \
printf 'hello, %{1}.\\n';
I would like to be able to give it macros with spaces in it, as in:
%{hello "Dak Tyson"}
->
printf 'hello, Dak Tyson.\n'
However, it keeps doing this:
%{hello "Dak Tyson"}
->
printf 'hello, "Dak.\n'
In other words, it doesn't interpret the double quotes, but uses them as-is.
Single quotes don't work either:
%{hello 'Dak Tyson'}
->
printf 'hello, 'Dak\.\n'
Nor backslashes:
%{hello Dak\ Tyson}
->
printf 'hello, Dak\.\n'
Nor braces:
%{hello {Dak Tyson}}
->
printf 'hello, {Dak.\n'
Is there any way to give an RPM macro arguments with spaces?