Description of problem: The %meson macro included in the EPEL meson package references %_vpath_srcdir and %_vpath_builddir, but those macros are not defined in RHEL. Version-Release number of selected component (if applicable): meson-0.47.2-1.el7 How reproducible: 100% Steps to Reproduce: 1. mock build a package using the %meson macro. Actual results: FTBFS, error message indicates that meson.build cannot be found in either directory. Expected results: Package builds. Additional info: The included macros should be changed along the lines of: - %{_vpath_srcdir} %{_vpath_builddir} \\\ + . %{_target_platform} \\\
That is problem of RHEL, not EPEL. Actually epel-rpm-macros contain those definitions.
Then EPEL meson should Requires: epel-rpm-macros.
No. You can provide those macros in your own foo-rpm-config. No packages should ever require redhat-rpm-config or epel-rpm-macros. It is automatically installed in the buildroot. If you are using RHEL buildroot, you shouldn't be using EPEL repo. Or if you want to use EPEL packages, you should get epel buildroot.