So I already know how to define macros and include these in my main spec file. However, I also want to be able to include a set of constants; something like this:
hostnames.spec
%define HOST1 host1
%define HOST2 host2
...
main.spec
%include hostnames.spec
...
checkHost %{HOST1}
Is there a way to do this with RPM?