The proper location for rpm macros files in rpm >= 4.11 is %{_rpmconfigdir}/macros.d, please move them there from /etc/rpm. If this package's specfile targets Fedora and EL >= 7 only, the location for macro files can be simply changed from /etc/rpm to %{_rpmconfigdir}/macros.d. If it is intended to work on EL 5 and/or 6 as well, you can define a macros dir for example as follows (all on one line) and install the macros to %{macrosdir}: %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
Completed in rawhide, able to be used in other branches.
http://pkgs.fedoraproject.org/cgit/drupal7.git/commit/?id=bd7dbcd0b0707769b15218a1abbe58ba98c660c4 This commit defines %{macrosdir} but doesn't use it but installs files to %{_rpmconfigdir}/macros.d so this won't work with EL 5 and 6. There's also some cosmetic macro/nonmacro mismatching where the macros files get installed as macros.%{name} but are referred to as macros.drupal7 in %files. But that's not introduced by the above change.
So in install and files it should simply be %{macrosdir} and not %{_rpmconfigdir}/macros.d?
Defining %{macrosdir} without using it doesn't do anything; either also use it or remove the definition. See the initial comment in this bug for more info.
Gotcha. Corrected that and the cosmetic issue.