a quick way of evaluating macros is rpm --eval, e.g.
$ rpm --eval '%{_datadir}'
/usr/share
Teilen mit
oder kopiere den Link