Expanding rpmbuild variables
Expanding rpmbuild variables
If you want to see what those SPEC file variables expand to, try:
rpm --showrc
This will dump out all the variables the system knows about.
If you have a specific one you want to know its value, try:
rpm --eval %{_mandir}